The patch titled Subject: kasan-fix-kasan-unit-tests-for-tag-based-kasan-v4 has been added to the -mm tree. Its filename is kasan-fix-kasan-unit-tests-for-tag-based-kasan-v4.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kasan-fix-kasan-unit-tests-for-tag-based-kasan-v4.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kasan-fix-kasan-unit-tests-for-tag-based-kasan-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: Walter Wu <walter-zh.wu@xxxxxxxxxxxx> Subject: kasan-fix-kasan-unit-tests-for-tag-based-kasan-v4 use KASAN_SHADOW_SCALE_SIZE instead of 13 Link: http://lkml.kernel.org/r/20200708132524.11688-1-walter-zh.wu@xxxxxxxxxxxx Signed-off-by: Walter Wu <walter-zh.wu@xxxxxxxxxxxx> Suggested-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Acked-by: Dmitry Vyukov <dvyukov@xxxxxxxxxx> Reviewed-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx> Cc: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Cc: Alexander Potapenko <glider@xxxxxxxxxx> Cc: Matthias Brugger <matthias.bgg@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/test_kasan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/lib/test_kasan.c~kasan-fix-kasan-unit-tests-for-tag-based-kasan-v4 +++ a/lib/test_kasan.c @@ -23,7 +23,9 @@ #include <asm/page.h> -#define OOB_TAG_OFF (IS_ENABLED(CONFIG_KASAN_GENERIC) ? 0 : 13) +#include "../mm/kasan/kasan.h" + +#define OOB_TAG_OFF (IS_ENABLED(CONFIG_KASAN_GENERIC) ? 0 : KASAN_SHADOW_SCALE_SIZE) /* * We assign some test results to these globals to make sure the tests _ Patches currently in -mm which might be from walter-zh.wu@xxxxxxxxxxxx are kasan-fix-kasan-unit-tests-for-tag-based-kasan.patch kasan-fix-kasan-unit-tests-for-tag-based-kasan-v4.patch rcu-kasan-record-and-print-call_rcu-call-stack.patch kasan-record-and-print-the-free-track.patch kasan-add-tests-for-call_rcu-stack-recording.patch kasan-update-documentation-for-generic-kasan.patch