Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965859AbbKFTNW (ORCPT ); Fri, 6 Nov 2015 14:13:22 -0500 Received: from atl4mhfb03.myregisteredsite.com ([209.17.115.61]:51520 "EHLO atl4mhfb03.myregisteredsite.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756192AbbKFTNV (ORCPT ); Fri, 6 Nov 2015 14:13:21 -0500 X-TCPREMOTEIP: 68.185.59.186 X-Authenticated-UID: joshua.clayton@uniwest.com From: Joshua Clayton To: linux-arm-kernel@lists.infradead.org Cc: Jean-Michel Hautbois , Fabio Estevam , Jon Nettleton , Russell King - ARM Linux , linux-kernel Subject: Re: i.MX6: Oops when unplugging a USB key Date: Fri, 06 Nov 2015 11:12:39 -0800 Message-ID: <2393919.Res6zC5Fd5@jclayton-pc> Organization: Uniwest User-Agent: KMail/5.0.2 (Linux/4.2.0-16-generic; KDE/5.15.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1236 Lines: 37 On Friday, November 06, 2015 05:32:30 PM Jean-Michel Hautbois wrote: > Hi ! > > I have an issue on my i.MX6 board I don't understand (kernel is a 4.2)... > When I connect a USB key, and then disconnect it, it oopses and > reboots (as I have panic on oops, and reboot on panic). > Seems to be on the umount part... > The USB is connected through a smsc95xx but I don't think this is related... > > Any idea is welcome :) > I have seen a similar issue intermitently on my imx6 based board. I would also like to find a fix. Specifically: unplugging usb storage occasionally causes an oops. I'm guessing a race with use-after-free, but I haven't tracked it down. In my environment it has been hard to reproduce, and I wasn't able to grok anything useful in the trace. Are you seeing this behavior consistently? Perhaps the driver is freeing more than it should when a device is disconnected. -- Joshua Clayton Software Engineer UniWest 122 S. 4th Avenue Pasco, WA 99301 (509) 544-0720 -- 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/