Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756704AbaKTBHd (ORCPT ); Wed, 19 Nov 2014 20:07:33 -0500 Received: from mail-vc0-f177.google.com ([209.85.220.177]:46781 "EHLO mail-vc0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755901AbaKTBHb (ORCPT ); Wed, 19 Nov 2014 20:07:31 -0500 MIME-Version: 1.0 In-Reply-To: References: <20141118145234.GA7487@redhat.com> <20141118215540.GD35311@redhat.com> <20141119021902.GA14216@redhat.com> <20141119145902.GA13387@redhat.com> <20141119190215.GA10796@lerouge> <20141119225615.GA11386@lerouge> Date: Wed, 19 Nov 2014 17:07:30 -0800 X-Google-Sender-Auth: SGb8AfLHh4t9vhWc0jC-dsFr-1k Message-ID: Subject: Re: frequent lockups in 3.18rc4 From: Linus Torvalds To: Andy Lutomirski Cc: Thomas Gleixner , "linux-kernel@vger.kernel.org" , 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 Wed, Nov 19, 2014 at 4:49 PM, Andy Lutomirski wrote: > > I thought so for a while, too, but now I disagree. On PGE hardware, > it seems entirely possible that the new stack would be in the TLB even > if it's not visible via cr3. Then, as soon as the TLB entry expires, > we double-fault. Ahh. Good point. > I don't want vmalloc to avoid low-order allocations -- I want it to > have guard pages. The fact that a user-triggerable stack overflow is > basically root right now and doesn't reliably OOPS scares me. Well, if you do that, you would have to make the double-fault handler aware of the stack issue anyway, and then you could just do teh same PGD repopulation that a page fault does and return (for the case where you didn't overflow the stack, just had the page tables unpopulated - obviously an actual stack overflow should do something more drastic). 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/