Re: [RFC PATCH v3 2/3] seccomp: add kernel-installed pinned-memfd redirect

From: Cong Wang

Date: Tue Jun 23 2026 - 19:30:00 EST


Hi Kees,

On Tue, Jun 23, 2026 at 12:11 PM Kees Cook <kees@xxxxxxxxxx> wrote:
>
> On Tue, Jun 23, 2026 at 12:02:32PM -0700, Andy Lutomirski wrote:
> > I'm really not convinced that the min is needed to preserve any useful
> > behavior. But Kees is very conservative about these things, with good
> > reason.
>
> What is going to use this feature? I'd rather not try to have a USER_NOTIF
> security boundary since there are so many corner cases.

Sandlock [1] will be the first user once accepted by upstream. Currently
I had to workaround this with an ugly ptrace (which is also obviously slow).

1. https://github.com/multikernel/sandlock

Regards,
Cong