[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120322143607.GD19835@kroah.com>
Date: Thu, 22 Mar 2012 07:36:07 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Ming Lei <tom.leiming@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
linux-usb@...r.kernel.org, stable@...nel.org,
Alan Stern <stern@...land.harvard.edu>,
Oliver Neukum <oliver@...kum.org>
Subject: Re: [PATCH 2/2] usbnet: don't clear urb->dev in tx_complete
On Thu, Mar 22, 2012 at 09:22:38PM +0800, Ming Lei wrote:
> URB unlinking is always racing with its completion and tx_complete
> may be called before or during running usb_unlink_urb, so tx_complete
> must not clear urb->dev since it will be used in unlink path,
> otherwise invalid memory accesses or usb device leak may be caused
> inside usb_unlink_urb.
>
> Cc: stable@...nel.org
> Cc: Alan Stern <stern@...land.harvard.edu>
> Cc: Oliver Neukum <oliver@...kum.org>
> Signed-off-by: Ming Lei <tom.leiming@...il.com>
Acked-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists