[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250905205731.1961288-1-jolsa@kernel.org>
Date: Fri, 5 Sep 2025 22:57:28 +0200
From: Jiri Olsa <jolsa@...nel.org>
To: Oleg Nesterov <oleg@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Andrii Nakryiko <andrii@...nel.org>
Cc: bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-trace-kernel@...r.kernel.org,
x86@...nel.org,
Song Liu <songliubraving@...com>,
Yonghong Song <yhs@...com>,
John Fastabend <john.fastabend@...il.com>,
Hao Luo <haoluo@...gle.com>,
Steven Rostedt <rostedt@...dmis.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
Alan Maguire <alan.maguire@...cle.com>,
David Laight <David.Laight@...LAB.COM>,
Thomas Weißschuh <thomas@...ch.de>,
Ingo Molnar <mingo@...nel.org>,
Jann Horn <jannh@...gle.com>,
Alejandro Colomar <alx@...nel.org>
Subject: [PATCH perf/core 0/3] uprobes/x86: change error path for uprobe syscall
hi,
as suggested by Andrii [1] it'd be helpful for uprobe syscall
detection to return error value for the !in_uprobe_trampoline
check instead of forcing SIGILL.
This way we could just call uprobe syscall and based on return
value we will find out if the kernel supports it.
Alejandro,
I included the full man page change from [2], because IIUC this
was not applied yet, and as usual I butchered the wording, so I'd
appreciate your review on that.
thanks,
jirka
[1] https://lore.kernel.org/bpf/CAEf4BzaxtW_W1M94e3q0Qw4vM_heHqU7zFeH-fFHOQBwy5+7LQ@mail.gmail.com/
[2] https://lore.kernel.org/bpf/20250720112133.244369-23-jolsa@kernel.org/
---
Jiri Olsa (2):
uprobes/x86: Return error from uprobe syscall when not called from trampoline
selftests/bpf: Fix uprobe_sigill test for uprobe syscall error value
arch/x86/kernel/uprobes.c | 2 +-
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c | 34 ++++++----------------------------
2 files changed, 7 insertions(+), 29 deletions(-)
Jiri Olsa (1):
man2: Add uprobe syscall page
man/man2/uprobe.2 | 1 +
man/man2/uretprobe.2 | 42 +++++++++++++++++++++++++++++-------------
2 files changed, 30 insertions(+), 13 deletions(-)
create mode 100644 man/man2/uprobe.2
Powered by blists - more mailing lists