`SECCOMP_RET_KILL` under rr reports the terminating signal as `SIGKILL` instead of `SIGSYS`
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- cpp, linux
- Domain
- devtools, operating-systems, security
Research direction
Start by tracing how rr handles SECCOMP_RET_KILL and how waitpid status is reported, with particular attention to RecordTask::emulated_stop_code. The fix must make termination report SIGSYS rather than SIGKILL while preserving behavior when SIGSYS is blocked or handled and when the syscall is buffered.
Written by the indexing model from the issue text.
Description
This is tricky to fix because SIGSYS can be blocked or handled, unlike SIGKILL, so we can't just send SIGSYS instead of SIGKILL. We can try unblocking SIGSYS and setting its handler to default, and then sending it or stashing it, but that could behave oddly when SECCOMP_RET_KILL is used for a buffered syscall.
We could try to send SIGKILL and then try to lie about the waitpid status using RecordTask::emulated_stop_code. That is perhaps the best approach.
- Dominant language
- C++
- Stars
- 10.7k
- Forks
- 662
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rr-debugger/rr
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
rr-debugger/rr#4096 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rr-debugger/rr#4093 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rr-debugger/rr#4090 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rr-debugger/rr#4060 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
rr-debugger/rr#4059 · 1 comment ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Sensor initialization takes very long when `--initial-sim-time` is set to current UNIX timestamp Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gazebosim/gz-sensors#662 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LadybirdBrowser/ladybird#12123 ·