Re: [RFC PATCH 4/9] um: Add stub side of SECCOMP/futex based process handling

2024-10-10 Thread Benjamin Berg
On Thu, 2024-10-10 at 13:51 +0200, Johannes Berg wrote: > On Wed, 2024-09-25 at 22:32 +0200, Benjamin Berg wrote: > > > > --- /dev/null > > +++ b/arch/x86/um/shared/sysdep/stub-data.h > > @@ -0,0 +1,18 @@ > > +/* SPDX-License-Identifier: GPL-2.0 */ > > That new file should possibly have double-in

Re: [RFC PATCH 4/9] um: Add stub side of SECCOMP/futex based process handling

2024-10-10 Thread Johannes Berg
On Wed, 2024-09-25 at 22:32 +0200, Benjamin Berg wrote: > > --- /dev/null > +++ b/arch/x86/um/shared/sysdep/stub-data.h > @@ -0,0 +1,18 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ That new file should possibly have double-include guards as common. Can we use #pragma once yet? ;) > +static __al

[RFC PATCH 4/9] um: Add stub side of SECCOMP/futex based process handling

2024-09-25 Thread Benjamin Berg
This adds the stub side for the new seccomp process management code. In this case we do register save/restore through the signal handler mcontext. For the FS_BASE/GS_BASE register we need special handling. Co-authored-by: Johannes Berg Signed-off-by: Benjamin Berg Signed-off-by: Benjamin Berg -