diff options
| author | Srish Srinivasan <ssrish@linux.ibm.com> | 2026-09-23 23:58:12 +0530 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-09-29 22:09:45 +0530 |
| commit | abcccecf4aa4b681f50eb7d7de93fc9a0a61c181 (patch) | |
| tree | 6c56d0d154b0293f92e89690a76a80cdfb6013b5 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 217ba01e5b9096091acc2c1a3776cb3eb88c00ff (diff) | |
pseries/plpks: fix self-reference in plpks_var initializer
In plpks_gen_wrapping_key() and plpks_wrap_object(), strlen(var.name) is
used to initialize var.namelen within the same struct initializer. This
references a member of var before initialization of var is complete.
Use the compile-time length of PLPKS_WRAPKEY_NAME instead.
Reported-by: R Nageswara Sastry <rnsastry@linux.ibm.com>
Fixes: 133aa79e211d ("pseries/plpks: add HCALLs for PowerVM Key Wrapping Module")
Cc: stable@vger.kernel.org # 7.0
Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>
Tested-by: R Nageswara Sastry <rnsastry@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260923182816.151451-9-ssrish@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
