Re: [RFC PATCH] um: mark rodata read-only and implement _nofault accesses

2024-11-03 Thread Berg, Benjamin
Hi, there is a small bug that causes issues with this patch, see below. On Thu, 2024-10-10 at 23:12 +0200, Johannes Berg wrote: > [SNIP] > diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c > index cdaee3e94273..378e6e1815b9 100644 > --- a/arch/um/kernel/trap.c > +++ b/arch/um/kernel/trap

[RFC PATCH] um: mark rodata read-only and implement _nofault accesses

2024-10-10 Thread Johannes Berg
From: Johannes Berg Mark read-only data actually read-only (simple mprotect), and to be able to test it also implement _nofault accesses. This works by setting up a new "segv_continue" pointer in current, and then when we hit a segfault we change the signal return context so that we continue at t