Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 12 Mar 2003 03:18:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 12 Mar 2003 03:18:12 -0500 Received: from csl.Stanford.EDU ([171.64.73.43]:34699 "EHLO csl.stanford.edu") by vger.kernel.org with ESMTP id ; Wed, 12 Mar 2003 03:18:10 -0500 From: Dawson Engler Message-Id: <200303120828.h2C8SkY17826@csl.stanford.edu> Subject: Re: [CHECKER] more potential deadlocks To: jmorris@intercode.com.au (James Morris) Date: Wed, 12 Mar 2003 00:28:46 -0800 (PST) Cc: linux-kernel@vger.kernel.org, mc@cs.stanford.edu In-Reply-To: from "James Morris" at Mar 12, 2003 07:22:53 PM X-Mailer: ELM [version 2.5 PL0pre8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1552 Lines: 37 > James Morris writes: > > BUG: seems like it, if they can point to the same thing. ERROR: 1 thread deadlock. > > :0)>->:0)> occurred 5 times > > :0)>->:0)> occurred 5 times > > See below. > > > BUG? very hard to follow, but interesting if a real bug. unfortunately, > > could also be a false positive because of > > 1. infeasible callchain path or > > > > 2. the various in_dev and im pointers never actually point to > > the same object. > > > > requires three threads: > > thread 1: acquires im->lock then tries to get inetdev_lock > > thread 2: acquires inetdev_lock and tries to get in_dev->lock. > > thread 3: acquires in_dev->lock and tries to get im->lock. > > > > ERROR: 2 thread deadlock. > > :0)>-><&inetdev_lock> occurred 5 times > > <&inetdev_lock>->:0)> occurred 4 times > > These are indeed potential deadlock cases, caused by holding im->lock for > too long, now fixed by Alexey (in 2.5 bk at least). great! Thanks very much for the feedback. I'd given up on anyone looking at these. If people are interested, I can release more deadlock bugs pretty easily. Dawson - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/