driver.
Signed-off-by: Roman Kagan
---
drivers/misc/Makefile | 1 +
tools/testing/selftests/proclocal/Makefile| 6 +
drivers/misc/proclocal-test.c | 200 ++
.../selftests/proclocal/proclocal-test.c | 150 +
drivers/misc
no unmapping is necessary
The rest is taken care of by secretmem file cleanup, including returning
the pages to the kernel direct map.
Signed-off-by: Fares Mehanna
Signed-off-by: Roman Kagan
---
include/linux/secretmem.h | 8 ++
mm/gup.c | 4 +-
mm/secretmem.c|
done with the secret memory, it will unseal the VMA to be
able to unmap and free it.
Unseal operation is not exposed to userspace.
Signed-off-by: Fares Mehanna
Signed-off-by: Roman Kagan
---
mm/internal.h | 7 +
mm/mseal.c| 81 ---
2
expose interface to seal / unseal user memory ranges
mm/secretmem: implement mm-local kernel allocations
Roman Kagan (1):
drivers/misc: add test driver and selftest for proclocal allocator
drivers/misc/Makefile | 1 +
tools/testing/selftests/proclocal/Makefile|