| 58a50eab | 16-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: improve conditional for 32-bit compat
Include support for translating 32-bit auxv vectors on non-64-bit platforms that aren't riscv (which has no 32-bit ABI support and probably never w
libprocstat: improve conditional for 32-bit compat
Include support for translating 32-bit auxv vectors on non-64-bit platforms that aren't riscv (which has no 32-bit ABI support and probably never will).
Reviewed by: markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D42201
(cherry picked from commit 248fe3d3483cb3ec2c78dd31dc02a467060a6577)
show more ...
|
| ff907440 | 16-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: copy all the 32-bit auxv entries
Use source struct size not the destination struct size so we copy all the auxv entries, not just the first half of them.
Fix a style issue on an adjace
libprocstat: copy all the 32-bit auxv entries
Use source struct size not the destination struct size so we copy all the auxv entries, not just the first half of them.
Fix a style issue on an adjacent line.
Reviewed by: markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D42200
(cherry picked from commit 8f06fabe39ac3ebca4ab448a456945008305a23f)
show more ...
|
| 9b48cb8e | 16-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: make sv_name not static
Making this variable static makes is_elf32_sysctl() and callers thread unsafe.
Use a less absurd length for sv_name. The longest name in the system is "FreeBSD
libprocstat: make sv_name not static
Making this variable static makes is_elf32_sysctl() and callers thread unsafe.
Use a less absurd length for sv_name. The longest name in the system is "FreeBSD ELF64 V2" which tips the scales at 16+1 bytes. We'll almost certainly have other problems if we exceed 32 characters.
Reviewed by: markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D42199
(cherry picked from commit 72a4ee26a7c665ae1c31abe1c6feeaa7ccaba140)
show more ...
|
| d65a002d | 16-Oct-2023 |
Brooks Davis <[email protected]> |
libprocstat: simplify auxv value conversion
Avoid a weird dance through the union and treat all 32-bit values as unsigned integers. This avoids sign extension of flags and userspace pointers.
Revi
libprocstat: simplify auxv value conversion
Avoid a weird dance through the union and treat all 32-bit values as unsigned integers. This avoids sign extension of flags and userspace pointers.
Reviewed by: markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D42198
(cherry picked from commit 9735cc0e41825bb9e95d16433d381ffe4c190f38)
show more ...
|
| 7a9423d6 | 02-Dec-2021 |
Konstantin Belousov <[email protected]> |
procstat_getfiles_sysctl: do not require non-null ki_fd
ki_fd is legitimately NULL when 32bit process requests process data from 64bit host kernel. The field is not used by the code for sysctl case
procstat_getfiles_sysctl: do not require non-null ki_fd
ki_fd is legitimately NULL when 32bit process requests process data from 64bit host kernel. The field is not used by the code for sysctl case; procstat_getfiles_kvm() checks ki_fd.
PR: 260174 Reported by: Damjan Jovanovic <[email protected]> Sponsored by: The FreeBSD Foundation MFC after: 1 week
show more ...
|