The patch titled Subject: kasan-stop-tests-being-eliminated-as-dead-code-with-fortify_source-v4 has been added to the -mm tree. Its filename is kasan-stop-tests-being-eliminated-as-dead-code-with-fortify_source-v4.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kasan-stop-tests-being-eliminated-as-dead-code-with-fortify_source-v4.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kasan-stop-tests-being-eliminated-as-dead-code-with-fortify_source-v4.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: Daniel Axtens <dja@xxxxxxxxxx> Subject: kasan-stop-tests-being-eliminated-as-dead-code-with-fortify_source-v4 drop patch 3 Link: http://lkml.kernel.org/r/20200424145521.8203-2-dja@xxxxxxxxxx Fixes: 0c96350a2d2f ("lib/test_kasan.c: add tests for several string/memory API functions") Signed-off-by: Daniel Axtens <dja@xxxxxxxxxx> Reviewed-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Tested-by: David Gow <davidgow@xxxxxxxxxx> Cc: Daniel Micay <danielmicay@xxxxxxxxx> Cc: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Cc: Alexander Potapenko <glider@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/test_kasan.c | 1 + 1 file changed, 1 insertion(+) --- a/lib/test_kasan.c~kasan-stop-tests-being-eliminated-as-dead-code-with-fortify_source-v4 +++ a/lib/test_kasan.c @@ -645,6 +645,7 @@ static noinline void __init kasan_memcmp if (!ptr) return; + memset(arr, 0, sizeof(arr)); kasan_int_result = memcmp(ptr, arr, size + 1); kfree(ptr); } _ Patches currently in -mm which might be from dja@xxxxxxxxxx are kasan-stop-tests-being-eliminated-as-dead-code-with-fortify_source.patch kasan-stop-tests-being-eliminated-as-dead-code-with-fortify_source-v4.patch stringh-fix-incompatibility-between-fortify_source-and-kasan.patch