summaryrefslogtreecommitdiffstats
path: root/sys/fs/cd9660/cd9660_vnops.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-01-23 22:11:18 +0000
committermarius <marius@FreeBSD.org>2010-01-23 22:11:18 +0000
commitaa7c04ce461184acdfe00f51c04e5e1834dd6601 (patch)
tree68cc46f4a56a1ffada29db8d6900ca296c810a2e /sys/fs/cd9660/cd9660_vnops.c
parent042b9762358313c74efdffea26059301544b6174 (diff)
downloadFreeBSD-src-aa7c04ce461184acdfe00f51c04e5e1834dd6601.zip
FreeBSD-src-aa7c04ce461184acdfe00f51c04e5e1834dd6601.tar.gz
Merge r202882 from amd64/i386:
For PT_TO_SCE stop that stops the ptraced process upon syscall entry, syscall arguments are collected before ptracestop() is called. As a consequence, debugger cannot modify syscall or its arguments. In syscall(), reread syscall number and arguments after ptracestop(), if debugger modified anything in the process environment. Since procfs stopevent requires number of syscall arguments in p_xstat, this cannot be solved by moving stop/trace point before argument fetching. Move the code to read arguments into separate function fetch_syscall_args() to avoid code duplication. Note that ktrace point for modified syscall is intentionally recorded twice, once with original arguments, and second time with the arguments set by debugger. PT_TO_SCX stop is executed after cpu_syscall_set_retval() already. Reviewed by: kib
Diffstat (limited to 'sys/fs/cd9660/cd9660_vnops.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud