kmsan-fix-is_bad_asm_addr-on-arches-with-overlapping-address-spaces.patch removed from -mm tree
The quilt patch titled
Subject: kmsan: fix is_bad_asm_addr() on arches with overlapping address spaces
has been removed from the -mm tree. Its filename was
kmsan-fix-is_bad_asm_addr-on-arches-with-overlapping-address-spaces.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Ilya Leoshkevich <[email protected]>
Subject: kmsan: fix is_bad_asm_addr() on arches with overlapping address spaces
Date: Fri, 21 Jun 2024 13:34:49 +0200
Comparing pointers with TASK_SIZE does not make sense when kernel and userspace overlap. Skip the comparison when this is the case.
---
mm/kmsan/instrumentation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/kmsan/instrumentation.c renamed from mm/kmsan/instrumentation.c~kmsan-fix-is_bad_asm_addr-on-arches-with-overlapping-address-spaces +2 -1
@@ -20,7 +20,8 @@static inline bool is_bad_asm_addr (void *addr,uintptr_t size,bool is_store) { -if ((u64 )addr <TASK_SIZE ) +if (IS_ENABLED (CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE ) && + (u64 )addr <TASK_SIZE )return true;if (!kmsan_get_metadata (addr,KMSAN_META_SHADOW ))return true;
_
Patches currently in -mm which might be from [email protected] are