From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa0-x22b.google.com (mail-oa0-x22b.google.com [IPv6:2607:f8b0:4003:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 12D7C1A0054 for ; Thu, 11 Sep 2014 22:23:53 +1000 (EST) Received: by mail-oa0-f43.google.com with SMTP id m19so2861262oag.30 for ; Thu, 11 Sep 2014 05:23:50 -0700 (PDT) Date: Thu, 11 Sep 2014 07:23:45 -0500 From: Chuck Ebbert To: Aaron Tomlin Subject: Re: [PATCH v2 1/3] init/main.c: Give init_task a canary Message-ID: <20140911072345.012f4ef3@as> In-Reply-To: <20140910132933.GG1436@atomlin.usersys.redhat.com> References: <20140904161124.GD1436@atomlin.usersys.redhat.com> <1410255749-2956-1-git-send-email-atomlin@redhat.com> <1410255749-2956-2-git-send-email-atomlin@redhat.com> <20140910022654.29abc9f3@as> <20140910132933.GG1436@atomlin.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: dzickus@redhat.com, jcastillo@redhat.com, riel@redhat.com, x86@kernel.org, akpm@linux-foundation.org, peterz@infradead.org, bmr@redhat.com, prarit@redhat.com, oleg@redhat.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, minchan@kernel.org, mingo@redhat.com, aneesh.kumar@linux.vnet.ibm.com, akpm@google.com, hannes@cmpxchg.org, jgh@redhat.com, linuxppc-dev@lists.ozlabs.org, tglx@linutronix.de, pzijlstr@redhat.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 10 Sep 2014 14:29:33 +0100 Aaron Tomlin wrote: > On Wed, Sep 10, 2014 at 02:26:54AM -0500, Chuck Ebbert wrote: > > And has this been tested on parisc and metag, which use STACK_GROWSUP ? > > I can't see how end_of_stack() as it's defined now could work on those archs. > > AFAIU, dup_task_struct() has always done this explicitly. > I see no reason why init_task requires special attention. > I guess what I'm saying is, I can't see how the stack canary could have ever detected any problems on parisc and metag. How did you test your patches on x86? Maybe someone could run tests on those other archs.