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); } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"