diff options
| author | Jan Kiszka <[email protected]> | 2025-08-25 16:07:10 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <[email protected]> | 2025-08-26 12:47:53 +0000 |
| commit | c5e81e672699e0c5557b2b755cc8f7a69aa92bff (patch) | |
| tree | c380524326d1a59c5e82286155473a958c1b9266 /scripts/lib/kdoc/kdoc_item.py | |
| parent | Linux 6.17-rc1 (diff) | |
| download | kernel-c5e81e672699e0c5557b2b755cc8f7a69aa92bff.tar.gz kernel-c5e81e672699e0c5557b2b755cc8f7a69aa92bff.zip | |
efi: stmm: Fix incorrect buffer allocation method
The communication buffer allocated by setup_mm_hdr() is later on passed
to tee_shm_register_kernel_buf(). The latter expects those buffers to be
contiguous pages, but setup_mm_hdr() just uses kmalloc(). That can cause
various corruptions or BUGs, specifically since commit 9aec2fb0fd5e
("slab: allocate frozen pages"), though it was broken before as well.
Fix this by using alloc_pages_exact() instead of kmalloc().
Fixes: c44b6be62e8d ("efi: Add tee-based EFI variable driver")
Signed-off-by: Jan Kiszka <[email protected]>
Acked-by: Ilias Apalodimas <[email protected]>
Acked-by: Sumit Garg <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_item.py')
0 files changed, 0 insertions, 0 deletions
