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@xxxxxxxxxx> 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@xxxxxxxxxx Signed-off-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Cc: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Cc: Alexander Potapenko <glider@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- 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@xxxxxxxxxx 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 -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html