NetBSD/sys
manu 7ac57848aa Fix use-after-free on failed unmount with extended attribute enabled
When unmount failed, for instance because the mount is still busy,
UFS1 extended attributes structures were left freed while the kernel
assumes extended attributes were still enabled. This led to using
UFS1 extended attributes structures after free. With LOCKDEBUG, with
quickly triggers a panic.

The problem is fixed by:
1) clear MNT_EXTATTR flag after extended attributes structures are freed
2) attempt to restart extended attributes after failed unmount
2) set MNT_EXTATTR correctly after extended attributes restart

As a side effect, extended attribute structures are now only initialized
when extended attributes are started for the filesystem.
2014-11-14 10:09:50 +00:00
..
altq src is too big these days to tolerate superfluous apostrophes. It's 2014-10-18 08:33:23 +00:00
arch IPL_SCHED -> IPL_VM 2014-11-14 08:20:22 +00:00
coda src is too big these days to tolerate superfluous apostrophes. It's 2014-10-18 08:33:23 +00:00
compat Do not uselessly include <sys/malloc.h>. 2014-11-09 18:23:28 +00:00
conf `ld -r' needs ${LINKFORMAT}. This fixes the experimental config(1) modular 2014-11-13 13:44:31 +00:00
crypto Fix inconsistent use of inline in prototype and definition 2014-08-11 22:36:49 +00:00
ddb Add description of inst_return 2014-09-19 17:29:01 +00:00
dev more _KERNEL_OPT 2014-11-12 03:12:35 +00:00
dist/pf
external apply several changes from intelfb.c revs 1.7 through 1.9: 2014-11-12 16:07:17 +00:00
fs Change ntfs to vcache. 2014-11-13 16:51:53 +00:00
gdbscripts
ipkdb
kern Fix use-after-free on failed unmount with extended attribute enabled 2014-11-14 10:09:50 +00:00
lib prefer our own unwind.h 2014-10-23 17:51:22 +00:00
miscfs Do not uselessly include <sys/malloc.h>. 2014-11-10 18:46:33 +00:00
modules Adjust flags to allow building with clang. 2014-11-13 16:37:39 +00:00
net PR/49373: Ryota Ozaki: Running if_clone_create and if_clone_destroy in 2014-11-07 12:57:42 +00:00
net80211 src is too big these days to tolerate superfluous apostrophes. It's 2014-10-18 08:33:23 +00:00
netatalk src is too big these days to tolerate superfluous apostrophes. It's 2014-10-18 08:33:23 +00:00
netbt split PRU_CONNECT2 & PRU_PURGEIF function out of pr_generic() usrreq 2014-08-09 05:33:00 +00:00
netinet Add sysctl to selectively log arp packets from unknown network. (Adrien URBAN). 2014-11-13 16:11:18 +00:00
netinet6 Ensure callout isn't running and pending before callout_destroy 2014-11-12 03:24:25 +00:00
netipsec Don't use C++ keyword new 2014-09-05 09:26:44 +00:00
netisdn src is too big these days to tolerate superfluous apostrophes. It's 2014-10-18 08:33:23 +00:00
netkey
netmpls split PRU_CONNECT2 & PRU_PURGEIF function out of pr_generic() usrreq 2014-08-09 05:33:00 +00:00
netnatm split PRU_CONNECT2 & PRU_PURGEIF function out of pr_generic() usrreq 2014-08-09 05:33:00 +00:00
netsmb Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get 2014-09-05 09:26:16 +00:00
nfs Define filesystem attributes with vfs dependency. 2014-10-11 06:42:18 +00:00
opencrypto Try not to use f_data, use f_fcrypt to get a correctly typed pointer. 2014-09-05 09:23:40 +00:00
rump Move rump kernel man pages from various sources to sys/rump 2014-11-09 17:39:37 +00:00
secmodel Do not release secmodels_lock when it is not held. 2014-11-04 16:01:58 +00:00
stand
sys Add ioctl to autodiscover wedges. 2014-11-04 07:41:37 +00:00
ufs Fix use-after-free on failed unmount with extended attribute enabled 2014-11-14 10:09:50 +00:00
uvm s/0/KERNEL_PID/ for correctness 2014-10-29 10:53:41 +00:00
Makefile