]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Implement x86 ptrace(2) requests PT_{GET,SET}{FS,GS}BASE.
authorkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Aug 2015 08:17:10 +0000 (08:17 +0000)
committerkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Aug 2015 08:17:10 +0000 (08:17 +0000)
commit37b4df36af944f3721cc530a19883cfcfe4b762d
treef70aca8415c813f994a4316cf700171adaff2fc5
parentd9f7d6f6c454b4a90368dc48724323be554fe0c3
Implement x86 ptrace(2) requests PT_{GET,SET}{FS,GS}BASE.

MFC r284918:
Add helper fill_based_sd(9).

MFC r284919:
Add x86 PT_GETFSBASE, PT_GETGSBASE machine-depended ptrace requests to
obtain the thread %fs and %gs bases.  Add x86 PT_SETFSBASE and
PT_SETGSBASE requests to set the bases from debuggers.  The set
requests, similarly to the sysarch({I386,AMD64}_SET_FSBASE), override
the corresponding segment registers.

MFC r284965:
Document x86 machine-specific ptrace(2) requests.

MFC r285011:
Disallow a debugger on 64bit system to set fs/gs bases of the 32bit
process beyond the end of the process address space.

MFC r285104:
Grammar and language fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@286311 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/ptrace.2
sys/amd64/amd64/ptrace_machdep.c
sys/i386/i386/ptrace_machdep.c
sys/i386/i386/sys_machdep.c
sys/i386/include/md_var.h
sys/x86/include/ptrace.h