Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033192AbbKFT3L (ORCPT ); Fri, 6 Nov 2015 14:29:11 -0500 Received: from mail-ob0-f171.google.com ([209.85.214.171]:35580 "EHLO mail-ob0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031856AbbKFT3F (ORCPT ); Fri, 6 Nov 2015 14:29:05 -0500 MIME-Version: 1.0 In-Reply-To: <2393919.Res6zC5Fd5@jclayton-pc> References: <2393919.Res6zC5Fd5@jclayton-pc> From: Jean-Michel Hautbois Date: Fri, 6 Nov 2015 20:28:45 +0100 Message-ID: Subject: Re: i.MX6: Oops when unplugging a USB key To: Joshua Clayton Cc: linux-arm-kernel , Fabio Estevam , Jon Nettleton , Russell King - ARM Linux , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1465 Lines: 36 2015-11-06 20:12 GMT+01:00 Joshua Clayton : > 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? I can see it every time I unplug my device. I must conduct some tests, but seems to be somehow related to cpufreq and maybe the PMIC too (I have cherry-picked the patches allowing anatop to use a vin-supply). I didn't have time to bisect, I am sure I didn't have it when cpufreq was not used at all... JM -- 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/