Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750741AbaKURaV (ORCPT ); Fri, 21 Nov 2014 12:30:21 -0500 Received: from mail-la0-f44.google.com ([209.85.215.44]:41480 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750699AbaKURaS (ORCPT ); Fri, 21 Nov 2014 12:30:18 -0500 MIME-Version: 1.0 In-Reply-To: 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> From: Andy Lutomirski Date: Fri, 21 Nov 2014 09:22:41 -0800 Message-ID: Subject: Re: frequent lockups in 3.18rc4 To: Linus Torvalds Cc: Steven Rostedt , 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 9:19 AM, Linus Torvalds wrote: > On Fri, Nov 21, 2014 at 9:08 AM, Steven Rostedt wrote: >> >> Actually, in_nmi() is now safe for vmalloc faults. In fact, it handles the >> clobbering of the cr2 register just fine. > > That's not what I object to and find incorrect wrt NMI. > > Compare the simple and correct 32-bit code to the complex and > incorrect 64-bit code. > > In particular, look at how the 32-bit code relies *entirely* on hardware state. > > Then look at where the 64-bit code does not. Both mystify me. Why does the 32-bit version walk down the hierarchy at all instead of just touching the top level? And why does the 64-bit version assert that the leaves of the tables match? It's already asserted that it's walking down pgd pointers that are *exactly the same pointers*, so of course the stuff they point to is the same. --Andy -- 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/