Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757314Ab3CEUew (ORCPT ); Tue, 5 Mar 2013 15:34:52 -0500 Received: from shards.monkeyblade.net ([149.20.54.216]:54093 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756258Ab3CEUew (ORCPT ); Tue, 5 Mar 2013 15:34:52 -0500 Date: Tue, 05 Mar 2013 15:34:50 -0500 (EST) Message-Id: <20130305.153450.1686180125402560098.davem@davemloft.net> To: jslaby@suse.cz Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: WARNING at tty_buffer.c:428 process_one_work() From: David Miller In-Reply-To: <20130305.153358.503062411029894196.davem@davemloft.net> References: <20130305.150338.470704111422696046.davem@davemloft.net> <5136554F.3060006@suse.cz> <20130305.153358.503062411029894196.davem@davemloft.net> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (shards.monkeyblade.net [0.0.0.0]); Tue, 05 Mar 2013 12:34:55 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1419 Lines: 34 From: David Miller Date: Tue, 05 Mar 2013 15:33:58 -0500 (EST) > From: Jiri Slaby > Date: Tue, 05 Mar 2013 21:27:59 +0100 > >> On 03/05/2013 09:03 PM, David Miller wrote: >>> From: Jiri Slaby >>> Date: Tue, 05 Mar 2013 20:44:49 +0100 >>> >>>> Hi, I must admit I don't understand. I now checked both of them and they >>>> call uart_handle_sysrq_char unconditionally, or? >>> >>> Nope, in the sunsab.c receive function, we used to handle the SYSRQ >>> stuff before break checking when TTY is NULL, now we don't. >> >> But how could tty be NULL in there? subsab enables interrupts after the >> TTY is open and disables before it is closed/hupped. So the tty couldn't >> be NULL there, right? > > TTY is NULL until bootup and SYSRQ works perfectly fine during this > time when sunsab is the console, which via sunsab_console_setup() > invokes sunsab_startup() which requests the IRQ. And let's be honest about the fact that it's very possible that you've overlooked many issues like this in the extremely large number of drivers that you made changes of this nature. All of those commits need serious auditing :-( -- 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/