Files
erofs-linux/drivers/tee
Matthew Wilcox 08d9a4580f tee: shm: Remove refcounting of kernel pages
Earlier TEE subsystem assumed to refcount all the memory pages to be
shared with TEE implementation to be refcounted. However, the slab
allocations within the kernel don't allow refcounting kernel pages.

It is rather better to trust the kernel clients to not free pages while
being shared with TEE implementation. Hence, remove refcounting of kernel
pages from register_shm_helper() API.

Fixes: b9c0e49abf ("mm: decline to manipulate the refcount on a slab page")
Reported-by: Marco Felsch <[email protected]>
Reported-by: Sven Püschel <[email protected]>
Signed-off-by: Matthew Wilcox <[email protected]>
Co-developed-by: Sumit Garg <[email protected]>
Signed-off-by: Sumit Garg <[email protected]>
Tested-by: Sven Püschel <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
2026-03-03 09:03:04 +01:00
..
2025-09-15 17:34:06 +02:00