aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorBjörn Töpel <[email protected]>2024-06-05 13:40:50 +0200
committerPalmer Dabbelt <[email protected]>2024-06-26 08:42:43 -0700
commit37992b7f1097ba79ca75ba5a26ddcf0f54f91a08 (patch)
tree1ce9ec619c6370a7915fa43a52522ada801d39f2 /lib/test_fortify/write_overflow-strncpy-src.c
parentc75a74f4ba19c904c0ae1e011ae2568449409ae4 (diff)
riscv: mm: Take memory hotplug read-lock during kernel page table dump
During memory hot remove, the ptdump functionality can end up touching stale data. Avoid any potential crashes (or worse), by holding the memory hotplug read-lock while traversing the page table. This change is analogous to arm64's commit bf2b59f60ee1 ("arm64/mm: Hold memory hotplug lock while walking for kernel page table dump"). Reviewed-by: David Hildenbrand <[email protected]> Reviewed-by: Oscar Salvador <[email protected]> Signed-off-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions