diff options
author | Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com> | 2021-08-14 01:54:27 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-08-14 02:09:31 +0200 |
commit | 340caf178ddc2efb0294afaf54c715f7928c258e (patch) | |
tree | 35b2553ed5eb3d14585e1ea308d4129370753b46 /Documentation/arm | |
parent | kasan, kmemleak: reset tags when scanning block (diff) | |
download | linux-340caf178ddc2efb0294afaf54c715f7928c258e.tar.xz linux-340caf178ddc2efb0294afaf54c715f7928c258e.zip |
kasan, slub: reset tag when printing address
The address still includes the tags when it is printed. With hardware
tag-based kasan enabled, we will get a false positive KASAN issue when
we access metadata.
Reset the tag before we access the metadata.
Link: https://lkml.kernel.org/r/20210804090957.12393-3-Kuan-Ying.Lee@mediatek.com
Fixes: aa1ef4d7b3f6 ("kasan, mm: reset tags when accessing metadata")
Signed-off-by: Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Reviewed-by: Marco Elver <elver@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chinwen Chang <chinwen.chang@mediatek.com>
Cc: Nicholas Tang <nicholas.tang@mediatek.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/arm')
0 files changed, 0 insertions, 0 deletions