| bb726462 | 29-Oct-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Make PTRACE_GETREGSET return proper buffer size
This fixes Chrome warning:
[1022/152319.328632:ERROR:ptracer.cc(476)] Unexpected registers size 0 != 216, 68
Reviewed By: emaste Sponsored By
linux: Make PTRACE_GETREGSET return proper buffer size
This fixes Chrome warning:
[1022/152319.328632:ERROR:ptracer.cc(476)] Unexpected registers size 0 != 216, 68
Reviewed By: emaste Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32616
(cherry picked from commit f939dccfd770df2f9070cd30aa52105b7afe1bde)
show more ...
|
| f89bad7c | 29-Oct-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Fix ptrace panic with ERESTART
Translate ERESTART into Linux "internal" errno ERESTARTSYS. This fixes the erestartsys.gen.test from strace(1).
Reviewed By: kib Sponsored By: EPSRC Differenti
linux: Fix ptrace panic with ERESTART
Translate ERESTART into Linux "internal" errno ERESTARTSYS. This fixes the erestartsys.gen.test from strace(1).
Reviewed By: kib Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32623
(cherry picked from commit 6547153e4618c3b57e5f76062de006a04ecbd64b)
show more ...
|
| 3b7841de | 23-Oct-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Make PTRACE_GET_SYSCALL_INFO handle EJUSTRETURN
This fixes panic when trying to run strace(8) from Focal.
Reviewed By: kib Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.
linux: Make PTRACE_GET_SYSCALL_INFO handle EJUSTRETURN
This fixes panic when trying to run strace(8) from Focal.
Reviewed By: kib Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32355
(cherry picked from commit 2558bb8e9166395dce26afcfac91fc692621de7b)
show more ...
|
| 98e26c32 | 17-Oct-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Improve debugging for PTRACE_GETREGSET
It's triggered by gdb(1).
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32456
(cherry picked from commit a03d4d73e4c7c734472
linux: Improve debugging for PTRACE_GETREGSET
It's triggered by gdb(1).
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32456
(cherry picked from commit a03d4d73e4c7c73447263294df6ebd1791ab01f2)
show more ...
|
| d33684f3 | 17-Oct-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Implement some bits of PTRACE_PEEKUSER
This makes Linux gdb from Bionic a little less broken.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32455
(cherry picked fr
linux: Implement some bits of PTRACE_PEEKUSER
This makes Linux gdb from Bionic a little less broken.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32455
(cherry picked from commit f9246e14848820664539763b72b6fdef408d20e4)
show more ...
|
| 36ff5ce0 | 17-Oct-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: Adjust PTRACE_GET_SYSCALL_INFO buffer size semantics
The tests/ptrace_syscall_info test from strace(1) complained about this.
Sponsored By: EPSRC Differential Revision: https://reviews.freeb
linux: Adjust PTRACE_GET_SYSCALL_INFO buffer size semantics
The tests/ptrace_syscall_info test from strace(1) complained about this.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D32368
(cherry picked from commit 75a9d95b4d0a043ac0f3f8d1efc0982156337eac)
show more ...
|
| 4cae9d80 | 15-Sep-2021 |
Konstantin Belousov <[email protected]> |
Remove PT_GET_SC_ARGS_ALL
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 i
Remove PT_GET_SC_ARGS_ALL
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().
Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D31968
(cherry picked from commit f575573ca57716395ad88b962388a55d755cf6a7)
show more ...
|
| 0737ef6f | 24-Apr-2021 |
Edward Tomasz Napierala <[email protected]> |
linux: make ptrace(2) return EIO when trying to peek invalid address
Previously we've returned the error from native ptrace(2), ENOMEM. This confused Linux strace(2).
Reviewed By: emaste Sponsored
linux: make ptrace(2) return EIO when trying to peek invalid address
Previously we've returned the error from native ptrace(2), ENOMEM. This confused Linux strace(2).
Reviewed By: emaste Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D29925
(cherry picked from commit 77651151f3caec7d2440404f8c0f1819757d1d5d)
show more ...
|
| 26105b4c | 06-May-2021 |
Edward Tomasz Napierala <[email protected]> |
linux(4): make arch_prctl(2) support GET_CET_STATUS, report unknown codes
This is largely a no-op, to make future debugging slightly easier.
Sponsored By: EPSRC Differential Revision: https://revie
linux(4): make arch_prctl(2) support GET_CET_STATUS, report unknown codes
This is largely a no-op, to make future debugging slightly easier.
Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D30035
(cherry picked from commit 916f3dba4523d1b2d478538875d45df56b20bcdb)
show more ...
|