Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752435AbcKOLNG (ORCPT ); Tue, 15 Nov 2016 06:13:06 -0500 Received: from mx2.suse.de ([195.135.220.15]:36877 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752230AbcKOLNC (ORCPT ); Tue, 15 Nov 2016 06:13:02 -0500 Message-ID: <1479208023.2210.2.camel@suse.com> Subject: Re: crash by cdc_acm driver in kernels 4.8-rc1/5 From: Oliver Neukum To: wim@djo.tudelft.nl Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Date: Tue, 15 Nov 2016 12:07:03 +0100 In-Reply-To: <20161115001619.GA21030@djo.tudelft.nl> References: <20160908115803.GA28274@djo.tudelft.nl> <1473337238.32073.2.camel@suse.com> <20160908125850.GC28274@djo.tudelft.nl> <1476713445.3938.1.camel@suse.com> <20161017152042.GA26559@djo.tudelft.nl> <1476793123.2637.3.camel@suse.com> <20161115001619.GA21030@djo.tudelft.nl> Content-Type: multipart/mixed; boundary="=-B45ttNfUu+nbpISeKd/9" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8859 Lines: 141 --=-B45ttNfUu+nbpISeKd/9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Tue, 2016-11-15 at 01:16 +0100, Wim Osterholt wrote: Hi, > Whell, yes. > The only thing that appears you'll have to do is unset 'CONFIG_SMP'. OK. I haven't tested that, nor would I ever considered it. > My machines didn't have the luxury of multicore processors (until recently), > so there never has been any reason to deliberately switch these options on! > > In the process of searching, many options may have changed. The crash/OOPS > has now mitigated into just a WARNING with a call trace. > (Or it could be a totally different bug?) > After the call trace the device is working normally and a shutdown > completes to the end now. > That is with the config given here: > http://webserver.djo.tudelft.nl/.config-4.9-rc4.OK (CONFIG_SMP=y) > http://webserver.djo.tudelft.nl/WARNING-4.9-rc4 (call trace for C_S unset) > > Tests on other machines with (slightly) different configs all seem to > confirm that the problems are gone when CONFIG_SMP is set. OK, something extremely strange is going on. And I think it is time to get the big hammer out. I made an extremely stupid debugging patch. Could you test with it? Regards Oliver --=-B45ttNfUu+nbpISeKd/9 Content-Disposition: attachment; filename="0001-acm-insane-debugging.patch" Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name="0001-acm-insane-debugging.patch"; charset="UTF-8" RnJvbSBkOWM2NzE3MjYxMTI1N2MyNjJhMTllOWQzZDRkOWU2YjlhNjllODhjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuZGU+CkRhdGU6 IFR1ZSwgOCBOb3YgMjAxNiAxNjoxMjoxMSArMDEwMApTdWJqZWN0OiBbUEFUQ0hdIGFjbTogaW5z YW5lIGRlYnVnZ2luZwoKZXh0cmVtbmVseSBzdHVwaWQgZGVidWdnaW5nIHBhdGNoCgpTaWduZWQt b2ZmLWJ5OiBPbGl2ZXIgTmV1a3VtIDxvbmV1a3VtQHN1c2UuY29tPgotLS0KIGRyaXZlcnMvdXNi L2NsYXNzL2NkYy1hY20uYyB8IDQ5ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysr KysrKy0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDQzIGluc2VydGlvbnMoKyksIDYgZGVsZXRpb25z KC0pCgpkaWZmIC0tZ2l0IGEvZHJpdmVycy91c2IvY2xhc3MvY2RjLWFjbS5jIGIvZHJpdmVycy91 c2IvY2xhc3MvY2RjLWFjbS5jCmluZGV4IDBmM2Y2MmUuLmE0NjBlNDYgMTAwNjQ0Ci0tLSBhL2Ry aXZlcnMvdXNiL2NsYXNzL2NkYy1hY20uYworKysgYi9kcml2ZXJzL3VzYi9jbGFzcy9jZGMtYWNt LmMKQEAgLTEzMjksNjggKzEzMjksMTAzIEBAIG1hZGVfY29tcHJlc3NlZF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