aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorBarry Song <[email protected]>2025-05-08 22:09:12 +0000
committerAndrew Morton <[email protected]>2025-05-12 00:29:55 +0000
commit75cb1cca2c880179a11c7dd9380b6f14e41a06a4 (patch)
tree2321e15327932be58750b91f008ccc42104f3147 /scripts/gcc-plugins/sancov_plugin.c
parentzsmalloc: don't underflow size calculation in zs_obj_write() (diff)
downloadkernel-75cb1cca2c880179a11c7dd9380b6f14e41a06a4.tar.gz
kernel-75cb1cca2c880179a11c7dd9380b6f14e41a06a4.zip
mm: userfaultfd: correct dirty flags set for both present and swap pte
As David pointed out, what truly matters for mremap and userfaultfd move operations is the soft dirty bit. The current comment and implementation—which always sets the dirty bit for present PTEs and fails to set the soft dirty bit for swap PTEs—are incorrect. This could break features like Checkpoint-Restore in Userspace (CRIU). This patch updates the behavior to correctly set the soft dirty bit for both present and swap PTEs in accordance with mremap. Link: https://lkml.kernel.org/r/[email protected] Fixes: adef440691ba ("userfaultfd: UFFDIO_MOVE uABI") Signed-off-by: Barry Song <[email protected]> Reported-by: David Hildenbrand <[email protected]> Closes: https://lore.kernel.org/linux-mm/[email protected]/ Acked-by: Peter Xu <[email protected]> Reviewed-by: Suren Baghdasaryan <[email protected]> Cc: Lokesh Gidra <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions