From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <5196887A.2010906@ahsoftware.de> Date: Fri, 17 May 2013 21:43:54 +0200 From: Alexander Holler MIME-Version: 1.0 To: Peter Hurley CC: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] tty: make sure a BUG is hit if tty_port will be destroyed before tty References: <5195B561.3090503@ahsoftware.de> <1368774728-4817-1-git-send-email-holler@ahsoftware.de> <20130517153136.GC19541@kroah.com> <51965DC0.7030901@ahsoftware.de> <5196718D.30904@hurleysoftware.com> <5196835B.4060100@ahsoftware.de> In-Reply-To: <5196835B.4060100@ahsoftware.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: Am 17.05.2013 21:22, schrieb Alexander Holler: > The case that the machine didn't die, but just the process, only happens > when my proposed patch is applied, which prevents the memory corruption. In short, the proposed BUG_ON() prevents the memory corruption because it is hit before something bad can happen. The result is that just the process in question will be killed (and a tty is not released), but only that BUG_ON() prevents that something _really_ bad happens. I hope I could describe it now clearly. ;) Regards, Alexander