svn commit: r319518 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Sat Jun 3 14:12:18 UTC 2017


Author: kib
Date: Sat Jun  3 14:12:17 2017
New Revision: 319518
URL: https://svnweb.freebsd.org/changeset/base/319518

Log:
  Ensure that cached struct thread does not keep spurious td_su
  reference on an UFS mount point.
  
  Reported and tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/kern/kern_proc.c

Modified: head/sys/kern/kern_proc.c
==============================================================================
--- head/sys/kern/kern_proc.c	Sat Jun  3 14:10:09 2017	(r319517)
+++ head/sys/kern/kern_proc.c	Sat Jun  3 14:12:17 2017	(r319518)
@@ -226,6 +226,8 @@ proc_dtor(void *mem, int size, void *arg)
 #endif
 		/* Free all OSD associated to this thread. */
 		osd_thread_exit(td);
+		td_softdep_cleanup(td);
+		MPASS(td->td_su == NULL);
 
 		/* Make sure all thread destructors are executed */
 		EVENTHANDLER_INVOKE(thread_dtor, td);


More information about the svn-src-head mailing list