Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755467AbZGUQRI (ORCPT ); Tue, 21 Jul 2009 12:17:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752679AbZGUQRH (ORCPT ); Tue, 21 Jul 2009 12:17:07 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:37872 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751850AbZGUQRG (ORCPT ); Tue, 21 Jul 2009 12:17:06 -0400 Date: Tue, 21 Jul 2009 17:18:11 +0100 From: Alan Cox To: Alan Stern Cc: Daniel Mack , Kernel development list , USB list Subject: Re: [PATCH] [usb-serial] fix Ooops on uplug Message-ID: <20090721171811.278a2c62@lxorguk.ukuu.org.uk> In-Reply-To: References: <20090721170055.10cce812@lxorguk.ukuu.org.uk> X-Mailer: Claws Mail 3.7.1 (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: 1045 Lines: 33 On Tue, 21 Jul 2009 12:11:39 -0400 (EDT) Alan Stern wrote: > On Tue, 21 Jul 2009, Alan Cox wrote: > > > > The problem is that freed resources are accessed, and that can lead to > > > any kind of strange kernel faults from crashing to other subsequent > > > errors. > > > > > > Did you try my patch? > > No. > > > We've already established your patch is wrong. So trying it isn't at all > > helpful. > > I'll take your word for it. It will take some time to figure out > exactly which buffers are getting used after they are freed, although > the most likely is the usb_serial_port structure itself. > > Let you know what I find... On the tty side if you look in tty_io.c there is a define TTY_DEBUG_HANGUP which exists especially for these sorts of events.. -- 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/