Re: [PATCH 1/4] seccomp: wake poll waiters after failed addfd send

From: Tycho Andersen

Date: Thu Nov 05 2026 - 12:44:48 EST


On Thu, Nov 05, 2026 at 06:35:28PM +0100, Andrea Parri wrote:
> On Thu, Nov 05, 2026 at 09:25:17AM -0700, Tycho Andersen wrote:
> > Seems like a solution in search of a problem to me.
> >
> > Is there a sane action a supervisor can take on failure here besides
> > killing the thread that made the syscall? If so, perhaps it's
> > worthwhile. Or maybe it's worth it "for completeness" and I'm just
> > being grumpy :)
>
> There is: seccomp_handle_addfd() puts the notification back in SENT on
> failure, so the supervisor can still reply.

But what would it reply with other than EMFILE as you note or SIGKILL,
both of which it would do inline with the ioctl?

Tycho