svn commit: r364328 - head/sys/compat/linux

Mark Johnston markj at FreeBSD.org
Mon Aug 17 21:30:16 UTC 2020


Author: markj
Date: Mon Aug 17 21:30:15 2020
New Revision: 364328
URL: https://svnweb.freebsd.org/changeset/base/364328

Log:
  Fix a lock leak when emulating futex(FUTEX_WAIT_BITSET).
  
  Reported by:	syzkaller
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/compat/linux/linux_futex.c

Modified: head/sys/compat/linux/linux_futex.c
==============================================================================
--- head/sys/compat/linux/linux_futex.c	Mon Aug 17 20:18:01 2020	(r364327)
+++ head/sys/compat/linux/linux_futex.c	Mon Aug 17 21:30:15 2020	(r364328)
@@ -643,6 +643,7 @@ futex_wait(struct futex *f, struct waiting_proc *wp, s
 
 	if (bitset == 0) {
 		LIN_SDT_PROBE1(futex, futex_wait, return, EINVAL);
+		futex_put(f, wp);
 		return (EINVAL);
 	}
 


More information about the svn-src-all mailing list