Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix libbpf-tools/sigsnoop segment fault (iovisor#4228)
Running without -n: [rongtao@RT-NUC libbpf-tools]$ sudo ./sigsnoop TIME PID COMM SIG TPID RESULT ... 16:32:48 0 swapper/1 34 2658 0 Running with -n, access sig_name[34] cause SEGV, this patch fix it, check that whether sig_name access is OOB, if yes, print signal number instead: [rongtao@RT-NUC libbpf-tools]$ sudo ./sigsnoop -n TIME PID COMM SIG TPID RESULT 19:01:38 0 swapper/11 34 2658 0 19:01:46 50019 id SIGCHLD 50018 0 Signed-off-by: Rong Tao <[email protected]>
- Loading branch information