[PATCH] cred: remove RCU initializer for init_task.cred

Paul Moore paul at paul-moore.com
Wed Aug 12 15:48:32 UTC 2026


On Wed, Aug 12, 2026 at 10:51 AM Jann Horn <jannh at google.com> wrote:
>
> sparse noticed that an RCU initializer was left behind for init_task.cred,
> which is no longer marked __rcu. Fix it up.
>
> Fixes: a4229a2a16a8 ("cred: clarify that task_struct::cred is only for the current task")
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202608121153.nzs6HZg7-lkp@intel.com/
> Signed-off-by: Jann Horn <jannh at google.com>
> ---
> maybe squash this into the original commit, if that is a thing you do on
> the dev-staging branch?

Yep, I'll go ahead and do that.  The lsm/dev-staging branch isn't a
stable/reliable branch like some of the others, it can change
frequently; see the doc below if you are interested.

https://github.com/LinuxSecurityModule/kernel/blob/main/README.md#dev-staging-branch

-- 
paul-moore.com



More information about the Linux-security-module-archive mailing list