Re: [PATCH] [usb-serial] fix Ooops on uplug

From: Alan Cox
Date: Tue Jul 21 2009 - 12:17:13 EST


On Tue, 21 Jul 2009 12:11:39 -0400 (EDT)
Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/