v2
2026-08-21
修复page_isolation移位越界 · v2
修复 isolate_single_pageblock 的 UBSAN 移位越界:PageBuddy 分支直接 -EBUSY,PageCompound 分支保护 compound_order 竞态。
原始补丁链接
子 Patch(2)
1/2
mm/page_isolation: fix UBSAN shift-out-of-bounds warning
A contig-range allocation racing with buddy allocation on the adjacent pageblock can trigger: UBSAN: shift-out-of-bounds in mm/page_isolation.c:393:15 shift exponent -749042176 is negative Call tr
2/2
mm/page_isolation: guard compound_order() against racing
The PageCompound branch reads compound_head() without holding a reference. A racing split or free can cause compound_head() to return a stale pointer, and compound_nr() reads the order from that stale