[PATCH RFC 3/3] drivers/misc: add test driver and selftest for proclocal allocator

2024-06-21 Thread Roman Kagan
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

[PATCH RFC 2/3] mm/secretmem: implement mm-local kernel allocations

2024-06-21 Thread Roman Kagan
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|

[PATCH RFC 1/3] mseal: expose interface to seal / unseal user memory ranges

2024-06-21 Thread Roman Kagan
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

[PATCH RFC 0/3] add support for mm-local memory allocations

2024-06-21 Thread Roman Kagan
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|