Re: [REGRESSION] fs: validate_fs_switch() rewrites fs_struct under PID 1 threads
From: Christian Brauner
Date: Thu Nov 19 2026 - 08:33:47 EST
On Thu, Nov 19, 2026 at 12:30:21AM +1100, Akisaira wrote:
> Skipping the set_fs_root()/set_fs_pwd() reset when old_fs->users > 1
> (one reference is held by userspace_init_fs itself) clears the denials
> and lets init proceed on v7.4-rc3 (tested on arm64, Qualcomm SC8280XP),
> though that leaves kthreads using the old fs_struct via
> scoped_with_init_fs() rather than switching them to nullfs. Happy to
> test a proper fix.
If there's a legitimate case like Android's here then we should just
restore v7.2 behavior. I've sent a fix with you in Cc.
Thanks for the report.
--