Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 26 Feb 2002 11:09:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 26 Feb 2002 11:09:24 -0500 Received: from krynn.axis.se ([193.13.178.10]:41860 "EHLO krynn.axis.se") by vger.kernel.org with ESMTP id ; Tue, 26 Feb 2002 11:09:07 -0500 Date: Tue, 26 Feb 2002 17:09:00 +0100 (CET) From: Bjorn Wesen Reply-To: Bjorn Wesen To: linux-kernel@vger.kernel.org Subject: __skb_dequeue irq race ? In-Reply-To: <20020226164044.A7726@stud.ntnu.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org I'm trying to debug what looks like a race-condition I reach with heavy interrupt traffic, including heavy ethernet traffic. The result of the race (if it is one) is that the pointers in skb_head_pool in the network code get corrupted, like the list heads ->next pointer points to the zero-page and other nasty things. I've gotten an oops from different codepaths but one caught my eye especially in that there seems to be a codepath with IRQ's enabled which calls __skb_dequeue, namely do_softirq calls net_tx_action which uses qdisc_restart which calls q->dequeue, which contains pfifo_fast_dequeue which calls __skb_dequeue directly. Trace; c009a508 Trace; c009a16e Trace; c0094b44 Trace; c0008a8c Before diving deeper into the fray, is this normal ? If __skb_dequeue is called with irq's enabled, couldn't another network interrupt cause a race, corrupting the skb_head_pool linked structure ? /BW - 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/