Re: [PATCH RFC v2 15/23] fs: add real_fs to track task's actual fs_struct
From: Askar Safin
Date: Fri Mar 06 2026 - 19:51:55 EST
Christian Brauner <brauner@xxxxxxxxxx>:
> Also fix the argument passed to nullfs_userspace_init() in
> switch_fs_struct(): pass the old fs_struct itself rather than the
> conditional return value which is NULL when other users still hold
> a reference, ensuring the PID 1 unshare detection actually works.
This description doesn't match actual patch.
Your patch doesn't change what is passed to nullfs_userspace_init in
switch_fs_struct. Code before this patch already passed fs.
--
Askar Safin