[PW_SID:1083121] riscv: check leaf entry alignment in pageattr_pxd_entry()#1791
[PW_SID:1083121] riscv: check leaf entry alignment in pageattr_pxd_entry()#1791linux-riscv-bot wants to merge 2 commits into
Conversation
During page table walking, ensure the range being processed matches the expected size of a leaf entry (P4D, PUD, or PMD). While pxd_addr_end() functions handle boundary checks, they do not inherently validate whether the entry is a leaf node of the expected size. Add WARN_ON_ONCE() to detect misalignments or partial updates of huge pages. If a mismatch is detected, return -EINVAL to prevent potential corruption of page table entries. Signed-off-by: Austin Kim <austindh.kim@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
|
Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()" |
506e7f6 to
01805bc
Compare
PR for series 1083121 applied to workflow__riscv__fixes
Name: riscv: check leaf entry alignment in pageattr_pxd_entry()
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1083121
Version: 1