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

From: Paul Moore

Date: Wed Aug 12 2026 - 12:09:20 EST


On Wed, Aug 12, 2026 at 10:51 AM Jann Horn <jannh@xxxxxxxxxx> 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@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202608121153.nzs6HZg7-lkp@xxxxxxxxx/
> Signed-off-by: Jann Horn <jannh@xxxxxxxxxx>
> ---
> 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