You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 9aec2fb
("slab: allocate frozen pages"), though it was broken before as well.
Fix this by using alloc_pages_exact() instead of kmalloc().
Fixes: c44b6be ("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]>
0 commit comments