kmsan-use-align_down-in-kmsan_get_metadata.patch removed from -mm tree
The quilt patch titled
Subject: kmsan: use ALIGN_DOWN() in kmsan_get_metadata()
has been removed from the -mm tree. Its filename was
kmsan-use-align_down-in-kmsan_get_metadata.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: use ALIGN_DOWN() in kmsan_get_metadata()
Date: Fri, 21 Jun 2024 13:34:58 +0200
Improve the readability by replacing the custom aligning logic with ALIGN_DOWN(). Unlike other places where a similar sequence is used, there is no size parameter that needs to be adjusted, so the standard macro fits.
---
mm/kmsan/shadow.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
mm/kmsan/shadow.c renamed from mm/kmsan/shadow.c~kmsan-use-align_down-in-kmsan_get_metadata +3 -5
@@ -123,14 +123,12 @@ return_dummy:*/ void *kmsan_get_metadata (void *address,bool is_origin) { -u64 addr = (u64 )address, pad, off; +u64 addr = (u64 )address, off;struct page *page;void *ret; -if (is_origin && !IS_ALIGNED (addr,KMSAN_ORIGIN_SIZE )) { - pad = addr %KMSAN_ORIGIN_SIZE ; - addr -= pad; - } +if (is_origin) + addr =ALIGN_DOWN (addr,KMSAN_ORIGIN_SIZE ); address = (void *)addr;if (kmsan_internal_is_vmalloc_addr (address) ||kmsan_internal_is_module_addr (address))
_
Patches currently in -mm which might be from [email protected] are