Skip to content

[PW_SID:1083121] riscv: check leaf entry alignment in pageattr_pxd_entry()#1791

Closed
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1083121
Closed

[PW_SID:1083121] riscv: check leaf entry alignment in pageattr_pxd_entry()#1791
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1083121

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

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

Linux RISC-V bot and others added 2 commits April 5, 2026 01:35
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>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 139.01 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1110.58 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1634.43 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 25.64 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 26.72 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.89 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 84.33 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
kdoc
Desc: Detects for kdoc errors
Duration: 0.85 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "riscv: check leaf entry alignment in pageattr_pxd_entry()"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 506e7f6 to 01805bc Compare April 24, 2026 14:53
@linux-riscv-bot linux-riscv-bot deleted the pw1083121 branch April 28, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants