[PATCH v2 0/2] mm/page_isolation: fix UBSAN shift-out-of-bounds in isolate_single_pageblock
Qi Xi <[email protected]>
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Patch 1 fixes a UBSAN shift-out-of-bounds warning in the PageBuddy branch of isolate_single_pageblock() triggered by concurrent buddy allocation. Patch 2 addresses the same class of issue in the PageCompound branch, where racy compound_order() and compound_head() reads could lead to out-of-range shifts or incorrect page skipping. Changes since v1: - Patch 1: drop VM_WARN_ON_ONCE, bail out with -EBUSY instead - Patch 2: new patch addressing PageCompound branch race Qi Xi (2): mm/page_isolation: fix UBSAN shift-out-of-bounds warning mm/page_isolation: guard compound_order() against racing mm/page_isolation.c | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) -- 2.33.0