]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
exec: Introduce the PROC_PS_STRINGS() macro
authorMark Johnston <markj@FreeBSD.org>
Mon, 17 Jan 2022 16:42:28 +0000 (11:42 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 17 Jan 2022 21:11:54 +0000 (16:11 -0500)
commit706f4a81a81250a326ea25914e7effe1768f1a37
tree6469ec477e16fab1cf9932ab4821b05cc31036ae
parent5a8413e779a2258b02f92bad69a03d283c4bf2a6
exec: Introduce the PROC_PS_STRINGS() macro

Rather than fetching the ps_strings address directly from a process'
sysentvec, use this macro.  With stack address randomization the
ps_strings address is no longer fixed.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D33704
14 files changed:
sys/amd64/ia32/ia32_signal.c
sys/amd64/ia32/ia32_syscall.c
sys/amd64/linux/linux_sysvec.c
sys/arm/arm/exec_machdep.c
sys/arm64/arm64/freebsd32_machdep.c
sys/arm64/linux/linux_sysvec.c
sys/compat/freebsd32/freebsd32_misc.c
sys/i386/i386/exec_machdep.c
sys/i386/linux/linux_sysvec.c
sys/kern/imgact_elf.c
sys/kern/kern_exec.c
sys/kern/kern_proc.c
sys/riscv/riscv/exec_machdep.c
sys/sys/exec.h