diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-06-01 15:56:56 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-06-29 10:54:43 +0200 |
| commit | 32750c77e811dba81eb92abf9182b1f424255d3a (patch) | |
| tree | e55fabbdce51c60e3ca926c867ba33301d8f024e /drivers/phy/axiado/git@git.tavy.me:linux.git | |
| parent | e435696d57593248fce921a7a3ec2b57b61ac5fe (diff) | |
fs: start all kthreads in nullfs
Point init_task's fs_struct (root and pwd) at a private nullfs instance
instead of the mutable rootfs. All kthreads now start isolated in nullfs
and must use scoped_with_init_fs() for any path resolution.
PID 1 is moved from nullfs into the initramfs by init_userspace_fs().
Usermodehelper threads use userspace_init_fs via the umh flag in
copy_fs(). All subsystems that need init's filesystem state for path
resolution already use scoped_with_init_fs() from earlier commits in
this series.
This isolates kthreads from userspace filesystem state and makes it
hard to perform filesystem operations from kthread context.
Link: https://patch.msgid.link/20260601-work-kthread-nullfs-v4-23-77ee053060e0@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'drivers/phy/axiado/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
