# Re: \[PATCH v6 1/9\] keys/trusted\_keys: propagate wrapping key generation errors

- From: sashiko-bot@kernel.org
- Date: 2026-11-05 14:53:05 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17871303
- Thread: https://ratatoskr.run/linux-security-module/2026/11/17871225/t.md

```text
> plpks_gen_wrapping_key() returns a negative errno when default wrapping key
> generation fails. However, trusted_pkwm_init() returns -EINVAL for all such
> failures, discarding the original error.
> 
> Propagate the error returned by plpks_gen_wrapping_key() unchanged.
> 
> Fixes: c99fcb0d735b ("keys/trusted_keys: establish PKWM as a trusted source")
> Cc: <redacted> # 7.0
> Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261105144320.357260-1-ssrish@linux.ibm.com?part=1

```
