summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/interrupts.py
diff options
context:
space:
mode:
authorYunseong Kim <ysk@kzalloc.com>2025-09-03 22:16:43 +0900
committerHerbert Xu <herbert@gondor.apana.org.au>2025-09-13 12:11:05 +0800
commit2b0dc40ac6ca16ee0c489927f4856cf9cd3874c7 (patch)
tree90899cda5ecc913292c6afec45e1f571cdd9c3f1 /scripts/gdb/linux/interrupts.py
parentf5d643156ef62216955c119216d2f3815bd51cb1 (diff)
crypto: ccp - Fix incorrect payload size calculation in psp_poulate_hsti()
payload_size field of the request header is incorrectly calculated using sizeof(req). Since 'req' is a pointer (struct hsti_request *), sizeof(req) returns the size of the pointer itself (e.g., 8 bytes on a 64-bit system), rather than the size of the structure it points to. This leads to an incorrect payload size being sent to the Platform Security Processor (PSP), potentially causing the HSTI query command to fail. Fix this by using sizeof(*req) to correctly calculate the size of the struct hsti_request. Signed-off-by: Yunseong Kim <ysk@kzalloc.com> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>> --- Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions