[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120322.193341.331032344338370166.davem@davemloft.net>
Date: Thu, 22 Mar 2012 19:33:41 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: gregkh@...uxfoundation.org
Cc: tom.leiming@...il.com, netdev@...r.kernel.org,
linux-usb@...r.kernel.org, stable@...nel.org,
stern@...land.harvard.edu, oliver@...kum.org
Subject: Re: [PATCH 2/2] usbnet: don't clear urb->dev in tx_complete
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Date: Thu, 22 Mar 2012 07:36:07 -0700
> 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>
Applied.
--
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