From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932774AbcI1OrC (ORCPT ); Wed, 28 Sep 2016 10:47:02 -0400 Received: from x127155.tudelft.net ([131.180.127.155]:54306 "EHLO djo.tudelft.nl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932600AbcI1OrA (ORCPT ); Wed, 28 Sep 2016 10:47:00 -0400 Date: Wed, 28 Sep 2016 16:46:57 +0200 From: Wim Osterholt To: Oliver Neukum Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Wim Osterholt Subject: Re: crash by cdc_acm driver in kernels 4.8-rc1/5 Message-ID: <20160928144657.GA21068@djo.tudelft.nl> Reply-To: wim@djo.tudelft.nl References: <20160908125850.GC28274@djo.tudelft.nl> <1473339915.32073.3.camel@suse.com> <20160912024340.GA16266@djo.tudelft.nl> <1474376714.4358.28.camel@suse.com> <20160920154520.GA12174@djo.tudelft.nl> <1474460477.2675.19.camel@suse.com> <20160921164122.GB18823@djo.tudelft.nl> <1474555250.30534.1.camel@suse.com> <20160927163414.GA21487@djo.tudelft.nl> <1475054164.4635.7.camel@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475054164.4635.7.camel@suse.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 28, 2016 at 11:16:04AM +0200, Oliver Neukum wrote: > > Very good. This is a valid oops. We can do two things. When I > decode it, seems to crash in acm_alloc_minor() which does not make > sense. It is likely that our kernels or compilers are a bit different. > Could you please call gdb on your kernel module cdc-acm.ko > and do: > > list *(acm_probe+0x4ee) > > this should show you where it crashes. Currently gcc-4.9.3-rc3. This is from vanilla kernel 4.8-rc8 # gdb ./cdc-acm.ko GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./cdc-acm.ko...done. (gdb) list *(acm_probe+0x4ee) 0x1c9b is in acm_probe (drivers/usb/class/cdc-acm.c:1346). 1341 acm->control = control_interface; 1342 acm->data = data_interface; 1343 acm->minor = minor; 1344 acm->dev = usb_dev; 1345 if (h.usb_cdc_acm_descriptor) 1346 acm->ctrl_caps = h.usb_cdc_acm_descriptor->bmCapabilities; 1347 if (quirks & NO_CAP_LINE) 1348 acm->ctrl_caps &= ~USB_CDC_CAP_LINE; 1349 acm->ctrlsize = ctrlsize; 1350 acm->readsize = readsize; (gdb) quit A new kernel is compiling now. Regards, Wim.