[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250118150500.GB21464@redhat.com>
Date: Sat, 18 Jan 2025 16:05:01 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: Andrii Nakryiko <andrii.nakryiko@...il.com>
Cc: Masami Hiramatsu <mhiramat@...nel.org>,
Eyal Birger <eyal.birger@...il.com>, kees@...nel.org,
luto@...capital.net, wad@...omium.org, andrii@...nel.org,
jolsa@...nel.org, alexei.starovoitov@...il.com, olsajiri@...il.com,
cyphar@...har.com, songliubraving@...com, yhs@...com,
john.fastabend@...il.com, peterz@...radead.org, tglx@...utronix.de,
bp@...en8.de, daniel@...earbox.net, ast@...nel.org,
rostedt@...dmis.org, rafi@....io, shmulik.ladkani@...il.com,
bpf@...r.kernel.org, linux-api@...r.kernel.org,
linux-trace-kernel@...r.kernel.org, x86@...nel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
"Dmitry V. Levin" <ldv@...ace.io>
Subject: Re: [PATCH] seccomp: passthrough uretprobe systemcall without
filtering
On 01/17, Andrii Nakryiko wrote:
>
> On Fri, Jan 17, 2025 at 6:10 AM Oleg Nesterov <oleg@...hat.com> wrote:
> >
> > We can, and this is what I tried to suggest from the very beginning.
> > But I agree with Eyal who decided to send the most trivial fix for
> > -stable, we can add the helper later.
> >
> > I don't think it should live in uprobes.h and I'd prefer something
> > like arch_seccomp_ignored(int) but I won't insist.
>
> yep, I think this is the way, keeping it as a general category. Should
> we also put rt_sigreturn there explicitly as well? Also, wouldn't it
> be better to have it as a non-arch-specific function for something
> like rt_sigreturn where defining it per each arch is cumbersome, and
> have the default implementation also call into an arch-specific
> function?
I personally don't think we should exclude rt_sigreturn. and I guess
we can't do it in a arch-agnostic way, think of __NR_ia32_sigreturn.
However. These are all good questions that need a separate discussion.
Plus the SECCOMP_RET_TRACE/strace issue raised by Dmitry. And probably
even more.
But IMO it would be better to push the trivial (and urgent) fix to
-stable first, then discuss the possible cleanups/improvements.
What do you think?
Oleg.
Powered by blists - more mailing lists