mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christian Brauner <brauner@kernel.org>
To: Eneshan Karaca <Eneshan-Karaca@yandex.com>
Cc: kees@kernel.org, rostedt@goodmis.org, viro@zeniv.linux.org.uk,
	 jack@suse.cz, mhiramat@kernel.org,
	mathieu.desnoyers@efficios.com,  jkoolstra@xs4all.nl,
	farid.m.zakaria@gmail.com, linux-fsdevel@vger.kernel.org,
	 linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org,  bpf@vger.kernel.org
Subject: Re: [RFC PATCH v2] binfmt_misc: add binfmt_misc_select tracepoint
Date: Tue, 10 Nov 2026 16:55:32 +0100	[thread overview]
Message-ID: <20261110-gefruchtet-singt-allabendlich-ff8653eb8631@brauner> (raw)
In-Reply-To: <20261029185849.8016-1-Eneshan-Karaca@yandex.com>

On Thu, Oct 29, 2026 at 09:58:49PM +0300, Eneshan Karaca wrote:
> From: Eneshan Erdoğan Karaca <BoxStrikesTeam@proton.me>
> 
> A binfmt_misc entry can select an interpreter for an exec.  With a BPF
> 'B' handler, that selection can be made by a BPF struct_ops program.
> The kernel commits the decision in bprm->interp and bprm->flags, but it
> does not emit an event at the selection point.
> 
> Existing observers have to reconstruct the decision from
> /proc/PID/exe, AT_EXECFD, AT_FLAGS, or /proc/PID/maps.  These sources
> are mode-dependent: a transparent dispatch still reports the original
> binary in /proc/PID/exe, and a short-lived process can exit before the
> observer reads it.  A classic dispatch reports the interpreter, but
> not which handler selected it or which invocation flags were used.
> 
> Add a tracepoint after the interpreter and the invocation flags are
> selected.  The caller passes the matched entry and the raw flags; the
> trace event resolves the handler name and masks the flags with
> MISC_FMT_INVOCATION_FLAGS.  The event reports the binary filename, the
> selected interpreter, the handler name, the invocation flags, and the
> pid.
> 
> The tracepoint is observability only; it does not change exec
> behavior.
> 
> Assisted-by: LLM
> Signed-off-by: Eneshan Erdoğan Karaca <BoxStrikesTeam@proton.me>
> ---

This is whitespace damaged. So Sashiko can't look at it.
Resend it properly, please.

      reply	other threads:[~2026-11-10 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29 18:58 Eneshan Karaca
2026-11-10 15:55 ` Christian Brauner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261110-gefruchtet-singt-allabendlich-ff8653eb8631@brauner \
    --to=brauner@kernel.org \
    --cc=Eneshan-Karaca@yandex.com \
    --cc=bpf@vger.kernel.org \
    --cc=farid.m.zakaria@gmail.com \
    --cc=jack@suse.cz \
    --cc=jkoolstra@xs4all.nl \
    --cc=kees@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®