NetBSD/sys
reinoud 6e09afa9be vfs_mountedon() can only and only handle special device nodes and will
otherwise generate an UVM trap or will access random memory. This is due to
the dereference of vp->v_specmountpoint that is really
vp->v_specinfo->si_mountpoint. The field v_specinfo is multiplexed with
other structs in the vun union in struct vnode like struct socket.

The patch adds a sanity check for accessing the specinfo fields by only
allowing VBLK nodes to be passed. In theory also VCHR could be valid since
its also a special node though mounting is only done on VBLK so be strict.

Ok'd by yamt.
2006-01-18 14:26:55 +00:00
..
altq Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
arch Prune CPPDEF_LIST from unnecessary defines. 2006-01-18 01:08:57 +00:00
coda In coda_lookup, add LK_RETRY to locking of child vnode. The previous 2006-01-12 14:57:06 +00:00
compat More ktrace-lwp merge fallout: netbsd_elf32_signature's prototype has 2005-12-27 00:36:00 +00:00
conf Conditionalize firmload.c on the firmload attribute. 2006-01-17 06:52:43 +00:00
contrib merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
crypto merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
ddb merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
dev From OpenBSD: 2006-01-17 12:30:00 +00:00
dist Include netinet/in.h, for compatibility with OpenBSD (we #ifdef'ed out a 2006-01-17 12:24:53 +00:00
fs Protect against uio_lwp being NULL from Pavel Cahyna 2006-01-14 23:49:59 +00:00
gdbscripts merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
ipkdb Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
kern vfs_mountedon() can only and only handle special device nodes and will 2006-01-18 14:26:55 +00:00
lib Define indp_t as signed int32_t, like ffsv1.c does. 2006-01-18 02:52:22 +00:00
lkm Move the code that checks for a powernow capable cpu to pnowk7_init(), 2006-01-15 04:12:09 +00:00
miscfs Add genfs support for directories and softlinks next to regular files and 2006-01-16 19:45:00 +00:00
net Make sure that breq is also cleared (from Xin LI) 2006-01-17 13:23:02 +00:00
net80211 Apply patch from FreeBSD-SA-06:05. This avoids the overflow during the 2006-01-18 14:01:16 +00:00
netatalk merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
netccitt merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
netinet change comment from __const__ to const 2005-12-24 23:43:17 +00:00
netinet6 Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
netipsec Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
netisdn Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
netiso compile with no options INET 2005-12-28 09:18:46 +00:00
netkey merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
netnatm merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
netns merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
netsmb Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
nfs - tweak RUN_ONCE api to allow init_func returns an error. 2006-01-16 21:45:38 +00:00
opencrypto - tweak RUN_ONCE api to allow init_func returns an error. 2006-01-16 21:45:38 +00:00
stand merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
sys - tweak RUN_ONCE api to allow init_func returns an error. 2006-01-16 21:45:38 +00:00
ufs Protect against uio_lwp being NULL from Pavel Cahyna 2006-01-14 23:49:59 +00:00
uvm make some debug statistics evcnt. 2006-01-15 08:31:31 +00:00
Makefile merge ktrace-lwp. 2005-12-11 12:16:03 +00:00