Re: [PATCH RFC DRAFT POC 00/11] fs,kthread: isolate all kthreads in nullfs
From: Askar Safin
Date: Fri Mar 06 2026 - 02:27:05 EST
Christian Brauner <brauner@xxxxxxxxxx>:
> Instead of sharing fs_struct between kernel threads and pid 1 we give
> pid a separate userspace_init_fs struct.
You meant "we give pid 1 a separate"
> The only remaining kernel tasks that actually share init's filesystem
> state are usermodhelpers
This sounds like usermodhelpers actually *share* init's fs_struct.
This is false, otherwise usermodhelpers could just do "chdir" and change
cwd of pid 1. So, please, rephrase this sentence.
> Be aggressive about this: We simply reject operating on stale
> fs_struct state by reverting userspace_init_fs to nullfs.
I think in this case unshare should simply fail and return error to
userspace.
> PID 1 uses pid1_fs which points to the initramfs
You meant userspace_init_fs, not pid1_fs. (pid1_fs is mentioned two times
in cover letter. Also in comments in patch 06/11.)
> `init_chroot_to_overmount()` at the start of `kernel_init()`)
There is no function named "init_chroot_to_overmount".
I hope you are not offended. I just did some proof-reading.
--
Askar Safin