Go to file
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
bin simplify and eliminate TOCTOU. 2014-10-23 21:03:25 +00:00
common Provide prototypes to fix build with clang. 2014-11-04 19:56:44 +00:00
compat Add RISC-V support 2014-09-19 17:38:46 +00:00
crypto xor32 may be unused, mark it so. 2014-10-28 21:36:30 +00:00
dist/pf Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
distrib Minimal linker script test. 2014-11-14 09:03:39 +00:00
doc Document "extsrc". This was added to src/BUILDING in revision 1.90 2014-11-13 08:25:31 +00:00
etc Minimal linker script test. 2014-11-14 09:03:39 +00:00
external Fix build with "USE_SSP" set to "yes". 2014-11-11 11:30:55 +00:00
extsrc
games English 2014-10-18 06:42:31 +00:00
gnu few more. 2014-10-04 15:54:53 +00:00
include add open_{,w}memstream 2014-10-13 00:47:03 +00:00
lib add erfl erfcl 2014-11-14 03:31:41 +00:00
libexec update the example to use dty00 instead of ttyd0 to reflect a current practice 2014-11-12 21:56:48 +00:00
regress Replace manual realdepend dependency with DPSRCS. 2014-09-19 21:35:42 +00:00
rescue Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8). 2014-09-11 13:10:03 +00:00
sbin PR/47704: Takahiro HAYASHI: Add -L flag 2014-11-12 03:34:08 +00:00
share adapt to modern ISO image naming conventions 2014-11-13 22:32:53 +00:00
sys Fix use-after-free on failed unmount with extended attribute enabled 2014-11-14 10:09:50 +00:00
tests Minimal linker script test. 2014-11-14 09:03:39 +00:00
tools If the internals are not explicitly requested, use #include_next to pick 2014-11-12 15:08:52 +00:00
usr.bin Revise a plan about link-set. 2014-11-13 15:25:48 +00:00
usr.sbin Use VAX_LABELOFFSET here; It needs to be the machine-specific one. Thanks 2014-11-13 16:02:25 +00:00
x11 Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly 2014-08-05 15:40:58 +00:00
build.sh Replace '.' and '-' in ${op} with '_', before setting d_${op}=true. 2014-11-10 09:59:33 +00:00
BUILDING regen from doc/BUILDING.mdoc revision 1.107. 2014-11-13 08:42:35 +00:00
Makefile iso -> images 2014-11-05 08:19:17 +00:00
Makefile.inc
UPDATING Fix typo. 2014-10-27 11:21:28 +00:00