[PATCH v6 06/13] KEYS: trusted: Update static calls before init
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 12 04:31:31 UTC 2026
> Given that the static calls are updated only after ->init() returns, an
> added trusted key can race with the callback initializations. This can
> ultimately lead into null dereference as static_call() is used unchecked.
>
> Address the bug by updating the static calls before invoking ->init(), and
> roll back on failure.
>
> Cc: stable at vger.kernel.org # v5.15+
> Fixes: 31de287345f4 ("KEYS: trusted: Rollback init_trusted() consistently")
> Signed-off-by: Jarkko Sakkinen <jarkko at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261112040242.247168-1-jarkko@kernel.org?part=6
More information about the Linux-security-module-archive
mailing list