kmsan-disable-physical-page-merging-in-biovec.patch removed from -mm tree
The quilt patch titled
Subject: kmsan: disable physical page merging in biovec
has been removed from the -mm tree. Its filename was
kmsan-disable-physical-page-merging-in-biovec.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: Alexander Potapenko <[email protected]>
Subject: kmsan: disable physical page merging in biovec
Date: Thu, 15 Sep 2022 17:04:01 +0200
KMSAN metadata for adjacent physical pages may not be adjacent, therefore accessing such pages together may lead to metadata corruption. We disable merging pages in biovec to prevent such corruptions.
---
block/blk.h | 7 +++++++ 1 file changed, 7 insertions(+)
block/blk.h renamed from block/blk.h~kmsan-disable-physical-page-merging-in-biovec +7 -0
@@ -88,6 +88,13 @@ static inline bool biovec_phys_mergeablephys_addr_t addr1 =page_to_phys (vec1->bv_page) + vec1->bv_offset;phys_addr_t addr2 =page_to_phys (vec2->bv_page) + vec2->bv_offset; +/* +* Merging adjacent physical pages may not work correctly under KMSAN +* if their metadata pages aren't adjacent. Just disable merging. +*/ +if (IS_ENABLED (CONFIG_KMSAN )) +return false; +if (addr1 + vec1->bv_len != addr2)return false;if (xen_domain () && !xen_biovec_phys_mergeable (vec1, vec2->bv_page))
_
Patches currently in -mm which might be from [email protected] are