Page MenuHomeFreeBSD

Remove PT_GET_SC_ARGS_ALL
ClosedPublic

Authored by kib on Sep 15 2021, 1:29 PM.
Tags
None
Referenced Files
F156730667: D31968.id95235.diff
Fri, May 15, 11:34 PM
F156730663: D31968.id95193.diff
Fri, May 15, 11:34 PM
F156730662: D31968.id95256.diff
Fri, May 15, 11:34 PM
F156730639: D31968.id95225.diff
Fri, May 15, 11:34 PM
F156730595: D31968.diff
Fri, May 15, 11:33 PM
Unknown Object (File)
Wed, Apr 29, 4:13 AM
Unknown Object (File)
Wed, Apr 29, 4:07 AM
Unknown Object (File)
Apr 12 2026, 4:51 AM
Subscribers

Details

Summary

Reimplement bdf0f24bb16d556a5b by checking for the caller' ABI in the implementation of PT_GET_SC_ARGS, and copying out everything if it is Linuxolator.

Also fix a minor information leak: if PT_GET_SC_ARGS_ALL is done on the thread reused after other process, it allows to read some number of that thread last syscall arguments. Clear td_sa.args in thread_alloc().

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Sep 15 2021, 1:29 PM
jhb added inline comments.
sys/amd64/linux/linux_ptrace.c
547–554
This revision is now accepted and ready to land.Sep 15 2021, 5:25 PM
rew added inline comments.
sys/amd64/linux/linux_ptrace.c
559
kib marked 2 inline comments as done.

Update comment.

This revision now requires review to proceed.Sep 15 2021, 7:14 PM

Correct the right place.

This revision is now accepted and ready to land.Sep 15 2021, 11:15 PM
This revision was automatically updated to reflect the committed changes.