+ usercopy-no-check-page-span-for-stack-objects-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: usercopy: improve comments after reorder
has been added to the -mm tree.  Its filename is
     usercopy-no-check-page-span-for-stack-objects-fix.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/usercopy-no-check-page-span-for-stack-objects-fix.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/usercopy-no-check-page-span-for-stack-objects-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
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>
---

 mm/usercopy.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- 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-fix.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux