Re: [RFC PATCH] fs: binfmt_misc: introduce eBPF-based matching and interpreter selection

From: Christian Brauner

Date: Tue Jul 07 2026 - 15:48:42 EST


On 2026-07-07 13:34 +0200, Christian Brauner wrote:
> On 2026-07-06 09:47:53-07:00, Farid Zakaria wrote:
> > On Mon, Jul 6, 2026 at 9:01 AM Christian Brauner <brauner@xxxxxxxxxx> wrote:
> >
> > > Ignoring the blatant bpf abuse here I think this is quite workable. So
> > > this can be turned into an actual design and patch imho...
> >
> > Glad to see you think this proposal is in the right direction.
> > Just for my edification, when you say "balatant bpf abuse", you mean
> > how it abuses the socket bpf type?
> > If so, do you have any guidance on a new type or should I just take a
> > stab at it.

I drafted a POC for you that should be closer to how this should look
like with the bpf people in Cc. I'll let you lead from now on. I just
wanted to help you out and illustrate a more viable direction. Might be
that the bpf people want it done differentely. Let's see.