[PATCH RESEND v2 30/30] selftests/proc: check that unloading configs doesn't wait for a reader
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 11:58:29 PST 2026
> Read /proc/config.gz into a buffer whose first page is backed by
> userfaultfd and unload configs.ko while procfs copies what was read to
> userspace:
>
> - removing the entry doesn't wait for the reader
>
> - the reader still gets the page that was read before the removal, and
> nothing more
>
> - and the next read fails with -EIO
>
> The test loads configs.ko if it isn't there, skips if configs is built
> in or can't be unloaded, and loads it again afterwards. It needs
> CONFIG_IKCONFIG=m. kselftest-merge keeps the =y that other fragments
> ask for, so it skips there.
>
> 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-fs-v2-0-319e0f9a8aae@kernel.org?part=30
More information about the kexec
mailing list