Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756012AbbBLQBR (ORCPT ); Thu, 12 Feb 2015 11:01:17 -0500 Received: from mail-ie0-f179.google.com ([209.85.223.179]:37712 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755701AbbBLQBQ (ORCPT ); Thu, 12 Feb 2015 11:01:16 -0500 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 12 Feb 2015 08:01:15 -0800 X-Google-Sender-Auth: G04kiNZzBbJg5Y573tmG_OZafTM Message-ID: Subject: Re: frequent lockups in 3.18rc4 From: Linus Torvalds To: Martin van Es Cc: Linux Kernel Mailing List Content-Type: multipart/mixed; boundary=001a114100b0d1f0f0050ee63a69 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7844 Lines: 121 --001a114100b0d1f0f0050ee63a69 Content-Type: text/plain; charset=UTF-8 On Thu, Feb 12, 2015 at 3:09 AM, Martin van Es wrote: > > Best I can come up with now is try the next mainline that has all the > fixes and ideas in this thread incorporated. Would that be 3.19? Yes. I'm attaching a patch (very much experimental - it might introduce new problems rather than fix old ones) that might also be worth testing on top of 3.19. > I'm sorry I couldn't be more helpful. Hey, so far nobody else has been able to pin this down either. It seems to be very timing-specific, and it's possible (even likely, considering DaveJ's adventures) that while you cannot trigger it with 3.16.7, it might be lurking there too, just not with the kind of timing that can trigger it on your machine. Which would explain the bisection trouble. It would have been wonderful if somebody had been able to really reproduce it truly reliably, but it seems to be very slippery. Linus --001a114100b0d1f0f0050ee63a69 Content-Type: text/plain; charset=US-ASCII; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_i62c2ncb0 IGtlcm5lbC9zbXAuYyB8IDc4ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKy0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLQogMSBmaWx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ZShjcHUsIGNzZCwgY3NkLT5mdW5jLCBjc2QtPmluZm8sIDApOworCisJLyogV2UgY291 bGQgZGVhZGxvY2sgaWYgd2UgaGF2ZSB0byB3YWl0IGhlcmUgd2l0aCBpbnRlcnJ1cHRzIGRpc2Fi bGVkISAqLworCWlmIChXQVJOX09OX09OQ0UoY3NkLT5mbGFncyAmIENTRF9GTEFHX0xPQ0spKQor CQljc2RfbG9ja193YWl0KGNzZCk7CisKKwljc2QtPmZsYWdzID0gQ1NEX0ZMQUdfTE9DSzsKKwlz bXBfd21iKCk7CisKKwllcnIgPSBnZW5lcmljX2V4ZWNfc2luZ2xlKGNwdSwgY3NkLCBjc2QtPmZ1 bmMsIGNzZC0+aW5mbyk7CiAJcHJlZW1wdF9lbmFibGUoKTsKIAogCXJldHVybiBlcnI7CkBAIC00 MzMsNiArNDQ3LDggQEAgdm9pZCBzbXBfY2FsbF9mdW5jdGlvbl9tYW55KGNvbnN0IHN0cnVjdCBj cHVtYXNrICptYXNrLAogCQlzdHJ1Y3QgY2FsbF9zaW5nbGVfZGF0YSAqY3NkID0gcGVyX2NwdV9w dHIoY2ZkLT5jc2QsIGNwdSk7CiAKIAkJY3NkX2xvY2soY3NkKTsKKwkJaWYgKHdhaXQpCisJCQlj c2QtPmZsYWdzIHw9IENTRF9GTEFHX1NZTkNIUk9OT1VTOwogCQljc2QtPmZ1bmMgPSBmdW5jOwog CQljc2QtPmluZm8gPSBpbmZvOwogCQlsbGlzdF9hZGQoJmNzZC0+bGxpc3QsICZwZXJfY3B1KGNh bGxfc2luZ2xlX3F1ZXVlLCBjcHUpKTsK --001a114100b0d1f0f0050ee63a69-- -- 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/