Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754669AbZI3Qpr (ORCPT ); Wed, 30 Sep 2009 12:45:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754480AbZI3Qpr (ORCPT ); Wed, 30 Sep 2009 12:45:47 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:35205 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754344AbZI3Qpq (ORCPT ); Wed, 30 Sep 2009 12:45:46 -0400 Date: Wed, 30 Sep 2009 17:47:04 +0100 From: Alan Cox To: Tilman Schmidt Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Alan Cox Subject: Re: N_PPP_SYNC ldisc BUG: sleeping function called from invalid context Message-ID: <20090930174704.796b24b9@lxorguk.ukuu.org.uk> In-Reply-To: <4AC37032.4030901@imap.cc> References: <4AC37032.4030901@imap.cc> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.14.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 31 > [] tty_unthrottle+0x10/0x38 > [] ppp_sync_receive+0x168/0x170 [ppp_synctty] > [] handle_minor_recv+0x187/0x1cd [capi] > [] capi_recv_message+0x1d9/0x24e [capi] Really need to see the rest of the call trace to be sure > Turns out the ppp_sync_receive() function (drivers/net/ppp_synctty.c > line 385ff.) has a comment in front stating: > > /* > * This can now be called from hard interrupt level as well > * as soft interrupt level or mainline. > */ Which is wrong. The flip_buffer_push -> rx processing path should never be called from IRQ context and that was fixed for various drivers that mis-set tty->low_latency, as well as in the PPP rework. The PPP case is actually unrelated in many was. > Opinions? See how we got into that code direct from an IRQ path. The expectation of the tty logic is that it gets processed from work queues either specifically in driver or via tty_flip_buffer_push when tty->low_latency = 0 -- 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/