kasan-slub-reset-tag-when-printing-address.patch removed from -mm tree
The patch titled
Subject: kasan, slub: reset tag when printing address
has been removed from the -mm tree. Its filename was
kasan-slub-reset-tag-when-printing-address.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Kuan-Ying Lee <[email protected]>
Subject: 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.
Fixes aa1ef4d7b3f6 ("kasan, mm: reset tags when accessing metadata")
Signed-off-by Kuan-Ying Lee <[email protected]>
Reviewed-by Marco Elver <[email protected]>
Reviewed-by Andrey Konovalov <[email protected]>
Cc Alexander Potapenko <[email protected]>
Cc Andrey Ryabinin <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Chinwen Chang <[email protected]>
Cc Nicholas Tang <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/slub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/slub.c renamed from mm/slub.c~kasan-slub-reset-tag-when-printing-address +2 -2
@@ -576,8 +576,8 @@ static void print_section(char *level, c unsigned int length) {metadata_access_enable (); -print_hex_dump (level,kasan_reset_tag (text),DUMP_PREFIX_ADDRESS , -16 ,1 , addr, length,1 ); +print_hex_dump (level, text,DUMP_PREFIX_ADDRESS , +16 ,1 ,kasan_reset_tag ((void *)addr), length,1 );metadata_access_disable (); }
_
Patches currently in -mm which might be from [email protected] are