Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932673AbbBZLnA (ORCPT ); Thu, 26 Feb 2015 06:43:00 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:37582 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932372AbbBZLm5 (ORCPT ); Thu, 26 Feb 2015 06:42:57 -0500 Date: Thu, 26 Feb 2015 12:42:52 +0100 From: Ingo Molnar To: Andy Lutomirski Cc: Denys Vlasenko , Linus Torvalds , Steven Rostedt , Borislav Petkov , "H. Peter Anvin" , Oleg Nesterov , Frederic Weisbecker , Alexei Starovoitov , Will Drewry , Kees Cook , X86 ML , "linux-kernel@vger.kernel.org" , Tony Luck Subject: Re: [PATCH 2/4] x86: get rid of KERNEL_STACK_OFFSET Message-ID: <20150226114252.GA4593@gmail.com> References: <1424803895-4420-1-git-send-email-dvlasenk@redhat.com> <1424803895-4420-2-git-send-email-dvlasenk@redhat.com> <20150225094550.GB6676@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 30 * Andy Lutomirski wrote: > >> I added that in and applied this patch. > > > > So this is not just slightly buggy, it's fundamentally > > wrong as well as it removes the possibility of an RSP > > value optimization from the 64-bit path, see my > > previous mail. > > This is just trying to check that the function is > executing on the per-thread stack. It was correct (and > fairly heavily tested by Tony) wither KERNEL_STACK_OFFSET > being nonzero, but we're checking the wrong page if > KERNEL_STACK_OFFSET becomes zero. > > I don't think I understand your objection to this bit. I object to the KERNEL_STACK_OFFSET removal patch you fixed here, not to the add-on fix in particular (which is correct in the context of that patch). Thanks, Ingo -- 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/