freebsd-nq/sys/fs
Konstantin Belousov aca4bb9112 Do not leak mount references for dying threads.
Thread might create a condition for delayed SU cleanup, which creates
a reference to the mount point in td_su, but exit without returning
through userret(), e.g. when terminating due to single-threading or
process exit.  In this case, td_su reference is not dropped and mount
point cannot be freed.

Handle the situation by clearing td_su also in the thread destructor
and in exit1().  softdep_ast_cleanup() has to receive the thread as
argument, since e.g. thread destructor is executed in different
context.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2017-02-25 10:38:18 +00:00
..
autofs Remove spurious space. 2016-11-13 12:06:25 +00:00
cd9660 cd9660: fix up compilation on sparc after r311665 2017-01-10 04:17:53 +00:00
cuse Prevent cuse4bsd.ko and cuse.ko from loading at the same time by 2016-09-23 07:41:23 +00:00
deadfs Style changes for deadfs: 2014-10-15 13:22:33 +00:00
devfs Simplify devfs_fsync() by removing it. This might also be a minor 2017-02-20 16:18:33 +00:00
ext2fs ext2fs: Remove unused assignment. 2017-02-17 20:56:43 +00:00
fdescfs Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
fifofs Rewrite sigdeferstop(9) and sigallowstop(9) into more flexible 2016-06-26 20:07:24 +00:00
fuse If a local (AF_LOCAL, AF_UNIX) socket creation (bind) is attempted 2016-05-18 22:23:20 +00:00
msdosfs Use buffer pager for msdosfs. 2016-10-28 11:46:15 +00:00
nandfs prefix UFS symbols with UFS_ to reduce namespace pollution 2017-02-15 19:50:26 +00:00
nfs Do not allocate struct statfs on kernel stack. 2017-01-05 17:19:26 +00:00
nfsclient Do not access memory past the buffer end. 2017-02-16 06:36:16 +00:00
nfsserver Do not leak mount references for dying threads. 2017-02-25 10:38:18 +00:00
nullfs Do not allocate struct statfs on kernel stack. 2017-01-05 17:19:26 +00:00
procfs Hide the boottime and bootimebin globals, provide the getboottime(9) 2016-07-27 11:08:59 +00:00
pseudofs Forcibly remove the cached items from pseudofs vncache on module unload. 2017-01-09 20:14:18 +00:00
smbfs Replace all remaining calls to vprint(9) with vn_printf(9), and remove 2016-08-10 16:12:31 +00:00
tmpfs Remove mistakenly merged field. 2017-01-19 20:03:26 +00:00
udf On error, bread(9) zeroes buffer pointer, do not dereference it. 2016-11-22 13:24:57 +00:00
unionfs Do not allocate struct statfs on kernel stack. 2017-01-05 17:19:26 +00:00