Skip to content

[PW_SID:1140771] mm/page_table_check: add explicit pmd_none check in pte_clear_range - #2416

Open
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1140771
Open

[PW_SID:1140771] mm/page_table_check: add explicit pmd_none check in pte_clear_range#2416
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1140771

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1140771 applied to workflow__riscv__fixes

Name: mm/page_table_check: add explicit pmd_none check in pte_clear_range
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1140771
Version: 1

Linux RISC-V bot and others added 2 commits August 4, 2026 02:48
In __page_table_check_pte_clear_range(), the condition to determine
whether to iterate over PTEs only checked pmd_bad() and pmd_leaf().
This relies on the implicit assumption that pmd_none() is always a
subset of pmd_bad() on all architectures supporting PAGE_TABLE_CHECK.

While this assumption currently holds for x86_64, arm64, s390, riscv,
and powerpc, it is an architecture-dependent behavior that may not
hold for future architectures. Add an explicit pmd_none() check to
make the intent clear and avoid calling pte_offset_map() on an empty
PMD, which could lead to undefined behavior.

Signed-off-by: Ye Liu <liuye@kylinos.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 116.35 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1408.36 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1665.49 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 19.77 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 20.97 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.59 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 78.09 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
kdoc
Desc: Detects for kdoc errors
Duration: 0.69 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
module-param
Desc: Detect module_param changes
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
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: "mm/page_table_check: add explicit pmd_none check in pte_clear_range"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.27 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch 2 times, most recently from abf8962 to 9fa746d Compare August 8, 2026 18:30
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