[PATCH RESEND v2 49/51] selftests/proc: check that faulting sysctl accesses don't hold up removal

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 5 11:30:29 PST 2026


> Read, write and list /proc/sys/net/ipv6/conf/<dev>/ of a tun device
> with a buffer whose first page is backed by userfaultfd and remove the
> device while the task sleeps in its copy from or to userspace:
> 
> - unregistering the table doesn't wait for a faulting read(), write()
>   or getdents64()
> 
> - the read still gets the value that was produced before the removal
>   and the next read fails with -ENOENT
> 
> - the write is copied in after the removal and fails with -ENOENT
> 
> - getdents64() still lists what it looked up before the removal and
>   fails with -ENOENT afterwards
> 
> The tables are unregistered under RTNL, so a regression stalls each
> 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-bugfixes-v2-0-021c84d852e0@kernel.org?part=49




More information about the kexec mailing list