From owner-cvs-src-old@FreeBSD.ORG Mon Jul 6 09:31:14 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B289B1065782 for ; Mon, 6 Jul 2009 09:31:14 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9F2A98FC18 for ; Mon, 6 Jul 2009 09:31:14 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n669VExQ029424 for ; Mon, 6 Jul 2009 09:31:14 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n669VECl029423 for cvs-src-old@freebsd.org; Mon, 6 Jul 2009 09:31:14 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200907060931.n669VECl029423@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Mon, 6 Jul 2009 09:31:04 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/thread thr_rtld.c thr_rwlock.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2009 09:31:15 -0000 attilio 2009-07-06 09:31:04 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_rtld.c thr_rwlock.c Log: SVN rev 195403 on 2009-07-06 09:31:04Z by attilio In the current code, rdlock_count is not correctly handled for some cases. The most notable is that it is not bumped in rwlock_rdlock_common() when the hard path (__thr_rwlock_rdlock()) returns successfully. This can lead to deadlocks in libthr when rwlocks recursion in read mode happens. Fix the interested parts by correctly handling rdlock_count. PR: threads/136345 Reported by: rink Tested by: rink Reviewed by: jeff Approved by: re (kib) MFC: 2 weeks Revision Changes Path 1.12 +2 -0 src/lib/libthr/thread/thr_rtld.c 1.16 +2 -1 src/lib/libthr/thread/thr_rwlock.c