Skip to contentSkip to conversation

kasan-adjust-kasan_stack_oob-for-tag-based-mode.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 10, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kasan: adjust kasan_stack_oob for tag-based mode
has been removed from the -mm tree. Its filename was
kasan-adjust-kasan_stack_oob-for-tag-based-mode.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Andrey Konovalov <[email protected]>
Subject: kasan: adjust kasan_stack_oob for tag-based mode

Use OOB_TAG_OFF as access offset to land the access into the next granule.

---

 lib/test_kasan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/test_kasan.c renamed from lib/test_kasan.c~kasan-adjust-kasan_stack_oob-for-tag-based-mode +1 -1
@@ -488,7 +488,7 @@ static noinline void __init kasan_global
 static noinline void __init kasan_stack_oob(void)
 {
 	char stack_array[10];
-	volatile int i = 0;
+	volatile int i = OOB_TAG_OFF;
 	char *p = &stack_array[ARRAY_SIZE(stack_array) + i];
 
 	pr_info("out-of-bounds on stack\n");

_

Patches currently in -mm which might be from [email protected] are