[PATCH RESEND v2 11/23] selftests/proc: check that a faulting reader doesn't hold up removal
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 11:35:35 PST 2026
> Read /proc/net/dev_snmp6/<dev> of a tun device into a buffer whose first
> page is backed by userfaultfd and remove the device while the reader
> sleeps in its copy to userspace:
>
> - removing the entry doesn't wait for the reader
>
> - the reader still gets what was printed before the removal
>
> - and the next read fails with -EIO
>
> The entry is removed under RTNL, so a regression stalls the test for
> five seconds before it fails.
>
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-core-v2-0-76ace653a773@kernel.org?part=11
More information about the kexec
mailing list