-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libbpf-tools/sigsnoop : reporting signal number '17' for all signal sent by kill utility. #5057
Comments
even tracepoint from tracefs shows same.
|
surprisingly with So Now in my setup tracepoint version of code is not performing as expected. Can @chenhengqi please verify if its working in your setup ? |
Could I ask what platform you used to discover this problem? I reproduced this on X86 vm by BTW I don't think this is a bug, just something we haven't understood in kernel. And
|
I'm working on x86 platform. // include/uapi/asm/signal.h
#define SIGCHLD 17
#define SIGCONT 18
#define SIGSTOP 19 And // include/linux/signal.h
* | SIGCHLD | ignore |
* | SIGCONT | ignore(*) |
* | SIGSTOP | stop(*)(+) | So when I test When I
syscall I'm using a 5.15 kernel. |
to test a PR I used
sigsnoop
with kill utility.got signal value 17.
So I reverted that patch.
same result.
so I added
bpf_printk
and verified that value.it was 17 even with
bpf_printk
.Value in ctx-sig. is 17.
I am using Debian 11 with 6.1.0-11-amd64 kernel.
Steps to reproduce.
kill -n 19 1234
kill -n 18 1234
The text was updated successfully, but these errors were encountered: