freebsd-dev/sys/fs
Konstantin Belousov 847e02e941 For non-stopped threads, td_frame pointer is undefined. As a
consequence, fill_regs() and fill_fpregs() access random data, usually
on the thread kernel stack. Most often the td_frame points to the
previous frame saved by last kernel entry sequence, but this is not
guaranteed.

For /proc/<pid>/{regs,fpregs} read access, require the thread to be in
stopped state. Otherwise, return EBUSY as is done for write case.

Reported and tested by:	pho
Approved by:	des (procfs maintainer)
MFC after:	1 week
2010-12-02 12:44:51 +00:00
..
cd9660 Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
coda Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
deadfs Add function vop_rename_fail(9) that performs needed cleanup for locks 2010-04-02 14:03:01 +00:00
devfs Format prototypes to follow style(9) more closely. 2010-10-12 15:58:52 +00:00
ext2fs Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
fdescfs Fix a long standing regression of readdir(3) in fdescfs(5) introduced 2010-03-16 19:59:14 +00:00
fifofs - Improve comments about locking of the "struct fifoinfo" which is a bit 2009-11-06 22:29:46 +00:00
hpfs Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
msdosfs Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
nfs Add a flag to the experimental NFSv4 client to indicate when 2010-10-26 23:18:37 +00:00
nfsclient Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
nfsserver Modify the experimental NFSv4 server's file handle hash function 2010-10-23 22:28:29 +00:00
ntfs Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
nullfs Add a null_remove() function to nullfs, so that the v_usecount 2010-08-31 01:16:45 +00:00
nwfs Remove unused includes of <sys/mutex.h> and <machine/mutex.h>. 2010-11-09 20:41:10 +00:00
portalfs Don't use ap->a_td->td_ucred when we were passed ap->a_cred. 2009-12-02 18:09:22 +00:00
procfs For non-stopped threads, td_frame pointer is undefined. As a 2010-12-02 12:44:51 +00:00
pseudofs Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and 2010-08-20 19:46:50 +00:00
smbfs M_USE_RESERVE has been deprecated for a decade. Eliminate any uses that 2010-10-02 17:58:57 +00:00
tmpfs tmpfs + sendfile: do not produce partially valid pages for vnode's tail 2010-10-12 17:16:51 +00:00
udf Revert the previous commit. The race is not applicable to the lockmgr 2010-07-16 19:52:03 +00:00
unionfs Allowed unionfs to use whiteout not supporting file system as 2010-09-05 04:58:16 +00:00