From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 17 May 2013 08:31:36 -0700 From: Greg Kroah-Hartman To: Alexander Holler Cc: linux-kernel@vger.kernel.org, Peter Hurley , Jiri Slaby , stable@vger.kernel.org Subject: Re: [PATCH] tty: make sure a BUG is hit if tty_port will be destroyed before tty Message-ID: <20130517153136.GC19541@kroah.com> References: <5195B561.3090503@ahsoftware.de> <1368774728-4817-1-git-send-email-holler@ahsoftware.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1368774728-4817-1-git-send-email-holler@ahsoftware.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: On Fri, May 17, 2013 at 09:12:08AM +0200, Alexander Holler wrote: > tty depends on tty_port until tty_release() was called. Make sure a BUG > will be hit, if tty_port will be destroyed before tty. So you want to ensure that we crash a machine? No, please never add BUG() statements to the kernel, unless something _really_ bad is going to happen if we don't call it. I never want to stop a machine from running, do you? I can't take this as-is, why not just fix the root problem? thanks, greg k-h