# Re: \[PATCH v6 3/9\] keys/trusted\_keys: clear sensitive PKWM buffers

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

```text
> The input buffer to PKWM seal and the output buffer from PKWM unseal
> contain plaintext trusted-key payload data. Freeing these buffers with
> kfree(), without wiping the contents, can leave sensitive key material
> in memory.
> 
> Use kfree_sensitive() to wipe the sensitive key material when freeing
> these buffers.
> 
> 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=3

```
