Skip to contentSkip to conversation

kasan-slub-reset-tag-when-printing-address.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 16, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

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")
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]>

---

 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