| Date | Tue, 10 Mar 2026 17:03:01 +0100 | | From | Christian Brauner <> | | Subject | Re: [PATCH RFC v2 01/23] fs: notice when init abandons fs sharing |
| |
> +struct fs_struct *switch_fs_struct(struct fs_struct *new_fs) > +{ > + struct fs_struct *fs; > + > + fs = current->fs; > + read_seqlock_excl(&fs->seq); > + current->fs = new_fs; > + if (--fs->users) > + new_fs = NULL; > + else > + new_fs = fs; > + read_sequnlock_excl(&fs->seq); > + > + nullfs_userspace_init(fs);
This is called under task_lock() and nullfs_userspace_init() may sleep. Oversight on my part.
|