# Re: \[PATCH v6 6/9\] pseries/plpks: fix length types for wrapping operations

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

```text
> The object wrapping and unwrapping HCALLs use 64-bit length values, but
> plpks_wrap_object() and plpks_unwrap_object() currently use u32 for the
> input and output length parameters.
> 
> Use u64 for the length parameters to match the underlying HCALL interfaces,
> and update the PKWM consumer accordingly. Validate input lengths against
> the HCALL-defined limits before calculating output buffer sizes.
> 
> Fixes: 133aa79e211d ("pseries/plpks: add HCALLs for PowerVM Key Wrapping Module")
> 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=6

```
