v1
2026-10-30
RISC-V KFENCE池修复 · v1
修复 RISC-V 线性映射拆分时 P4D 叶子识别,并用 PTE 映射准备 late KFENCE 池,避免保留失败导致无法启动。
原始补丁链接
子 Patch(2)
1/2
riscv: Recognize P4D leaves when splitting the linear mapping
From: Jackie Liu liuyun01@kylinos.cn The linear mapping can contain P4D leaves on Sv57, but p4d_leaf() uses the generic definition which always returns false. Splitting a partial P4D range therefor
2/2
riscv: Prepare late KFENCE pools with PTE mappings
From: Jackie Liu liuyun01@kylinos.cn RISC-V preallocates a PTE-mapped KFENCE pool, but pools allocated after boot may use huge mappings. arch_kfence_init_pool() leaves those mappings unchanged, whi