mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + kasan-support-use-after-scope-detection-v3.patch added to -mm tree
@ 2016-11-29 23:27 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-11-29 23:27 UTC (permalink / raw)
  To: dvyukov, aryabinin, glider, mm-commits


The patch titled
     Subject: kasan-support-use-after-scope-detection-v3
has been added to the -mm tree.  Its filename is
     kasan-support-use-after-scope-detection-v3.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/kasan-support-use-after-scope-detection-v3.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/kasan-support-use-after-scope-detection-v3.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/SubmitChecklist when testing your code ***

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

------------------------------------------------------
From: Dmitry Vyukov <dvyukov@google.com>
Subject: kasan-support-use-after-scope-detection-v3

 - added comment to test_kasan.c re noinline
 - fixed a typo in comment: s/go into of scope/go into scope/
 - added cc stable

Link: http://lkml.kernel.org/r/1479998292-144502-1-git-send-email-dvyukov@google.com
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Alexander Potapenko <glider@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 lib/test_kasan.c |    5 +++++
 mm/kasan/kasan.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff -puN lib/test_kasan.c~kasan-support-use-after-scope-detection-v3 lib/test_kasan.c
--- a/lib/test_kasan.c~kasan-support-use-after-scope-detection-v3
+++ a/lib/test_kasan.c
@@ -20,6 +20,11 @@
 #include <linux/uaccess.h>
 #include <linux/module.h>
 
+/*
+ * Note: test functions are marked noinline so that their names appear in
+ * reports.
+ */
+
 static noinline void __init kmalloc_oob_right(void)
 {
 	char *ptr;
diff -puN mm/kasan/kasan.c~kasan-support-use-after-scope-detection-v3 mm/kasan/kasan.c
--- a/mm/kasan/kasan.c~kasan-support-use-after-scope-detection-v3
+++ a/mm/kasan/kasan.c
@@ -776,7 +776,7 @@ void __asan_poison_stack_memory(const vo
 }
 EXPORT_SYMBOL(__asan_poison_stack_memory);
 
-/* Emitted by compiler to unpoison large objects when they go into of scope. */
+/* Emitted by compiler to unpoison large objects when they go into scope. */
 void __asan_unpoison_stack_memory(const void *addr, size_t size)
 {
 	kasan_unpoison_shadow(addr, size);
_

Patches currently in -mm which might be from dvyukov@google.com are

kasan-update-kasan_global-for-gcc-7.patch
kasan-support-use-after-scope-detection.patch
kasan-support-use-after-scope-detection-v3.patch
kasan-support-panic_on_warn.patch
kasan-eliminate-long-stalls-during-quarantine-reduction.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-29 23:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-29 23:27 + kasan-support-use-after-scope-detection-v3.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).