summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.ibm.com>2026-08-25 18:01:54 +0200
committerHeiko Carstens <hca@linux.ibm.com>2026-09-01 12:44:48 +0200
commit98d23edcd41432286cf03672252507a841323c8c (patch)
tree88c36bda510252a5927aa7a572cda4785d953eff /tools/perf/scripts/python/stackcollapse.py
parent33123ff9cbcb35640f56efb8ede1d6f0d97376fd (diff)
s390/zcrypt: Fix uninitialized padding in CRT key structure
The zcrypt_type6_crt_key() function leaves padding bytes uninitialized between key components and the modulus in the CCA CRT key token. These padding bytes are sent to the crypto card, potentially leaking kernel memory contents. The initial memset() only zeros fixed structure fields, not the flexible array member key_parts[] where the padding resides. While key components are properly copied from userspace, the calculated pad_len bytes between them remain uninitialized. Fix by explicitly zeroing the padding bytes after copying the CRT key components. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Finn Callies <fcallies@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions