Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751715AbaKUTeG (ORCPT ); Fri, 21 Nov 2014 14:34:06 -0500 Received: from mail-qg0-f50.google.com ([209.85.192.50]:42433 "EHLO mail-qg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbaKUTeE (ORCPT ); Fri, 21 Nov 2014 14:34:04 -0500 MIME-Version: 1.0 In-Reply-To: <20141121142301.564f7eb7@gandalf.local.home> References: <20141120221122.GA25393@htj.dyndns.org> <20141120230514.GB25393@htj.dyndns.org> <20141120233920.GC25393@htj.dyndns.org> <20141121162742.GB15461@htj.dyndns.org> <20141121170805.GD30603@home.goodmis.org> <20141121142301.564f7eb7@gandalf.local.home> Date: Fri, 21 Nov 2014 11:34:03 -0800 X-Google-Sender-Auth: 9eY9goa9GpW8_966V1nEqA9-SZQ Message-ID: Subject: Re: frequent lockups in 3.18rc4 From: Linus Torvalds To: Steven Rostedt Cc: Andy Lutomirski , Tejun Heo , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Arnaldo Carvalho de Melo , Peter Zijlstra , Frederic Weisbecker , Don Zickus , Dave Jones , "the arch/x86 maintainers" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 21, 2014 at 11:23 AM, Steven Rostedt wrote: > > Should we at least check to see if it is present? > > if (!(pgd_entry & 1)) > return -1; Maybe. But what other entry could there be? But yes, returning -1 is "safe", since it basically says "I'm not doing a vmalloc thing, oops if this is a bad access". So that kind of argues for being as aggressive as possible in returning 1. So for the first one (!pgd_entry), instead of returning -1 only for a completely empty entry, returning it for any non-present case is probably right. And for the second one (where we check whether there is anything at all in the destination), returning -1 for "anything but zero" is probably the right thing to do. But in the end, if you have a corrupted top-level kernel page table, it sounds to me like you're just royally screwed anyway. So I don't think it matters *that* much. So I kind of agree, but it wouldn't be my primary worry. My primary worry is actually paravirt doing something insane. Linus -- 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/