freebsd-nq/sys
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
..
amd64 Calling fill_fpregs() for curthread is legitimate, and ELF coredump 2010-11-28 17:56:34 +00:00
arm Provide a mutex around the read/modify/write of the IXP425_GPIO_* 2010-11-14 20:41:22 +00:00
boot Give a bit of a hint of the failure (read != expected) but don't make 2010-11-25 03:16:31 +00:00
bsm
cam Add Serial Management Protocol (SMP) passthrough support to CAM. 2010-11-30 22:39:46 +00:00
cddl Don't panic when we read an empty ACL from ZFS. Apparently this may happen 2010-11-30 21:04:05 +00:00
compat Add a dummy for IoOpenDeviceRegistryKey(). 2010-11-29 10:21:45 +00:00
conf Add Serial Management Protocol (SMP) passthrough support to CAM. 2010-11-30 22:39:46 +00:00
contrib Merge Cavium Octeon SDK 2.0 Simple Executive; this brings some fixes and new 2010-11-28 08:18:16 +00:00
crypto Remove DEBUG sections. 2010-11-27 15:41:44 +00:00
ddb
dev If RX lockup workaround is enabled, fxp(4) will periodically reset 2010-12-02 03:53:29 +00:00
fs For non-stopped threads, td_frame pointer is undefined. As a 2010-12-02 12:44:51 +00:00
gdb
geom - Report an error when a label with invalid name is attempted to be 2010-12-01 19:24:07 +00:00
gnu Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
i386 Fix bug introduced by r194784: Under XEN, the page(s) allocated to dpcpu 2010-11-29 06:50:30 +00:00
ia64 phys_avail[] is correctly defined as an array of vm_paddr_t's in 2010-12-01 05:52:27 +00:00
isa
kern removed tag is '-', not '+'. 2010-12-02 04:28:01 +00:00
kgssapi
libkern Add support for asterisk characters when filling in the GELI password 2010-11-14 14:12:43 +00:00
mips Add interrupt describing and binding to CIU. 2010-12-01 05:24:29 +00:00
modules Import a clean-room implementation of the experimental H-TCP congestion control 2010-12-02 06:40:21 +00:00
net o Swap descriptions for net.bpf.bufsize and net.bpf.maxbufsize. 2010-11-24 05:50:19 +00:00
net80211 The meshid element is memcpy()'ed into se_meshid if included in either 2010-11-22 19:01:47 +00:00
netatalk
netgraph Simplify ng_pipe locking model by relying on the netgraph framework 2010-11-24 16:02:58 +00:00
netinet Import a clean-room implementation of the experimental H-TCP congestion control 2010-12-02 06:40:21 +00:00
netinet6 Plug well observed races on la_hold entries with the callout handler. 2010-11-29 00:04:08 +00:00
netipsec After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
netipx
netnatm
netncp
netsmb
nfs
nfsclient Remove prtactive variable and related printf()s in the vop_inactive 2010-11-19 21:17:34 +00:00
nfsserver
nlm
opencrypto Let cryptosoft(4) add its pseudo-device with a specific unit number and its 2010-11-14 13:09:32 +00:00
pc98 Remove npxgetregs(), npxsetregs(), fpugetregs() and fpusetregs() 2010-11-26 14:50:42 +00:00
pci
powerpc Several chipset drivers alter parameters relevant for the DMA tag creation, 2010-11-30 20:54:14 +00:00
rpc
security
sparc64 Change VM_KMEM_SIZE_MAX to be just (VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) 2010-11-30 16:49:06 +00:00
sun4v Fix a few more places to use cpumask_t rather than 'u_int'. These are 2010-11-11 16:06:47 +00:00
sys Add Serial Management Protocol (SMP) passthrough support to CAM. 2010-11-30 22:39:46 +00:00
teken
tools
ufs Journal start looks up .sujournal file by doing lookup on the root dvp. 2010-12-01 21:19:11 +00:00
vm Correct an error in the allocation of the vm_page_dump array in 2010-12-01 03:35:19 +00:00
x86 Merge amd64/i386 _align.h by aligning on the size of register_t (copied 2010-11-26 10:59:20 +00:00
xdr
xen
Makefile Add lex and yacc sources to things cscope'd. 2010-11-21 03:58:11 +00:00