Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2020 21:30:15 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r364328 - head/sys/compat/linux
Message-ID:  <202008172130.07HLUFl8076859@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008172130.07HLUFl8076859>