All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Daniel Mack <daniel@caiaq.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
	stern@rowland.harvard.edu
Subject: Re: [PATCH] tty: Fix a USB serial crash/scribble
Date: Fri, 24 Jul 2009 21:48:44 -0700	[thread overview]
Message-ID: <20090725044844.GC19432@kroah.com> (raw)
In-Reply-To: <20090722101631.GG13236@buzzloop.caiaq.de>

On Wed, Jul 22, 2009 at 12:16:31PM +0200, Daniel Mack wrote:
> On Wed, Jul 22, 2009 at 10:39:51AM +0100, Alan Cox wrote:
> > See if this one looks sensible. It does leave a tiny race window but that
> > semes wiser than hacking up the tty kref_put path in the middle of an -rc
> > series.
> > 
> > Thanks to Daniel and Alan Stern for chasing this down and getting traces. Also
> > to Daniel for being persistent when I took it as a random odd "only seen by one
> > user" error which it wasn't.
> 
> Thanks Alan for your patience. You know the tty layer well which I have
> no clue of, so I missed the bits in the close callback.
> 
> I tested your patch and can confirm it fixes the problem for me.
> 
> Daniel
> 
> 
> 
> > The port lock is used to protect the port state. However the port structure
> > is freed on a hangup, then the lock taken on a close. The right fix is to
> > drop the port on tty->shutdown() but we can't yet do that due to sleep v
> > non-sleeping rules. Instead do the next best thing and fix it up when we are
> > not in -rc season.
> > 
> > Reported-by: Daniel Mack <daniel@caiaq.de>
> > Signed-off-by: Alan Cox <alan@linux.intel.com>
> 
> Tested-by: Daniel Mack <daniel@caiaq.de>

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>

Alan, do you want me to send this to Linus, or will you?

thanks,

greg k-h

  reply	other threads:[~2009-07-25  4:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22  9:39 [PATCH] tty: Fix a USB serial crash/scribble Alan Cox
2009-07-22 10:16 ` Daniel Mack
2009-07-25  4:48   ` Greg KH [this message]
2009-07-25 11:56     ` Alan Cox
2009-07-25 16:55       ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090725044844.GC19432@kroah.com \
    --to=greg@kroah.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=daniel@caiaq.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.