The patch titled Subject: usercopy: improve comments after reorder has been removed from the -mm tree. Its filename was usercopy-no-check-page-span-for-stack-objects-fix.patch This patch was dropped because it was folded into usercopy-no-check-page-span-for-stack-objects.patch ------------------------------------------------------ From: Kees Cook <keescook@xxxxxxxxxxxx> Subject: usercopy: improve comments after reorder This updates the comments to better reflect the order and purpose of the checks. Link: http://lkml.kernel.org/r/20190103165151.GA32845@beast Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx> Cc: Qian Cai <cai@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/mm/usercopy.c~usercopy-no-check-page-span-for-stack-objects-fix +++ a/mm/usercopy.c @@ -247,7 +247,8 @@ static DEFINE_STATIC_KEY_FALSE_RO(bypass /* * Validates that the given object is: * - not bogus address - * - known-safe heap or stack object + * - fully contained by stack (or stack frame, when available) + * - fully within SLAB object (or object whitelist area, when available) * - not in kernel text */ void __check_object_size(const void *ptr, unsigned long n, bool to_user) _ Patches currently in -mm which might be from keescook@xxxxxxxxxxxx are usercopy-no-check-page-span-for-stack-objects.patch