[PATCH v5 3/9] pseries/plpks: fix length types for wrapping operations

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sun Oct 18 17:18:21 UTC 2026


> 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: stable at vger.kernel.org # 7.0
> Signed-off-by: Srish Srinivasan <ssrish at linux.ibm.com>

Sashiko has reviewed this patch and found no issues.

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




More information about the Linux-security-module-archive mailing list