[PATCH v2 26/47] mm/userfaultfd: compare exact registration modes before skipping
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Oct 29 20:41:33 PDT 2026
> From: Gregory Price <gourry at gourry.net>
>
> Changing registration from MISSING|WP to WP returns success but leaves
> MISSING enabled. The no-op check sees that WP is already set and skips
> the update, so later accesses to missing pages still wait for userspace.
>
> Skip the update only when the current and requested UFFD modes match
> exactly.
>
> Fixes: 63b2d4174c4a ("userfaultfd: wp: add the writeprotect API to userfaultfd ioctl")
> Cc: stable at vger.kernel.org
> Signed-off-by: Gregory Price (Meta) <gourry at gourry.net>
> [ david: apply fixup from Lorenzo ]
> Signed-off-by: David Hildenbrand (Arm) <david at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261029-fixes_core-v2-0-a64ce7f83abb@kernel.org?part=26
More information about the kexec
mailing list