Repository navigation
Commit 32750c7
committed
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/[email protected]
Signed-off-by: Christian Brauner (Amutable) <[email protected]>1 parent e435696 commit 32750c7
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6184 | 6184 | | |
6185 | 6185 | | |
6186 | 6186 | | |
6187 | | - | |
| 6187 | + | |
6188 | 6188 | | |
6189 | 6189 | | |
6190 | 6190 | | |
| 6191 | + | |
6191 | 6192 | | |
6192 | | - | |
| 6193 | + | |
| 6194 | + | |
6193 | 6195 | | |
6194 | 6196 | | |
6195 | 6197 | | |
| |||
6229 | 6231 | | |
6230 | 6232 | | |
6231 | 6233 | | |
| 6234 | + | |
| 6235 | + | |
| 6236 | + | |
| 6237 | + | |
| 6238 | + | |
| 6239 | + | |
6232 | 6240 | | |
6233 | 6241 | | |
6234 | | - | |
6235 | | - | |
6236 | | - | |
6237 | | - | |
6238 | 6242 | | |
6239 | 6243 | | |
6240 | 6244 | | |
| |||
0 commit comments