Commit c2f6107
tee: shm: Remove refcounting of kernel pages
[ Upstream commit 08d9a45 ]
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: b9c0e49 ("mm: decline to manipulate the refcount on a slab page")
Reported-by: Marco Felsch <m.felsch@pengutronix.de>
Reported-by: Sven Püschel <s.pueschel@pengutronix.de>
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Co-developed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Tested-by: Sven Püschel <s.pueschel@pengutronix.de>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 294e0c8 commit c2f6107
1 file changed
+0
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 26 | | |
43 | 27 | | |
44 | 28 | | |
45 | 29 | | |
46 | 30 | | |
47 | | - | |
48 | | - | |
49 | 31 | | |
50 | 32 | | |
51 | 33 | | |
| |||
477 | 459 | | |
478 | 460 | | |
479 | 461 | | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | 462 | | |
488 | 463 | | |
489 | 464 | | |
| |||
499 | 474 | | |
500 | 475 | | |
501 | 476 | | |
502 | | - | |
503 | | - | |
504 | 477 | | |
505 | 478 | | |
506 | 479 | | |
| |||
0 commit comments