From patchwork Sun Feb 2 11:15:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 3566741 Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BD034C02DC for ; Sun, 2 Feb 2014 11:16:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B85D8201E9 for ; Sun, 2 Feb 2014 11:16:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A0BD4201EC for ; Sun, 2 Feb 2014 11:16:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751179AbaBBLQB (ORCPT ); Sun, 2 Feb 2014 06:16:01 -0500 Received: from mout.gmx.net ([212.227.15.18]:59798 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbaBBLQA (ORCPT ); Sun, 2 Feb 2014 06:16:00 -0500 Received: from ls3530.box ([84.173.14.157]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MBJF3-1W0GVj44LV-00ACZm for ; Sun, 02 Feb 2014 12:15:58 +0100 Date: Sun, 2 Feb 2014 12:15:52 +0100 From: Helge Deller To: Richard Weinberger , Linux Kernel , linux-parisc@vger.kernel.org, James Bottomley , James Hogan , linux-metag@vger.kernel.org Cc: Helge Deller , Linus Torvalds Subject: Re: [GIT PULL] parisc updates for v3.14 Message-ID: <20140202111552.GA2221@ls3530.box> References: <20140201202320.GA1313@p100.box> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V03:K0:/vS6SgfxJg+Cc2COnTx+/H41FTISFCz45rYEHCi9ki9LIeNQrnM 30W5dgqMdOdIpx0950JMRn5lLn227aHI1BkQ5fvgkemf183ZlPdjSm4XyFHSMsi+tcj1mkF aN2LtwEn3qE6iuXq2TWE3v7nEz0UvfR+YM75Fp4QNB95sn9ZvdDK2K4jKYkhcl6UhTOAqOT B62TaPEgJDkgmie8vsM7A== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP * Richard Weinberger : > On Sat, Feb 1, 2014 at 9:23 PM, Helge Deller wrote: > > please pull the latest updates for the parisc architecture from: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-for-3.14 > > > > The three major changes in this patchset is a implementation for flexible > > userspace memory maps, .... > > > > The change to fs/exec.c only touches code which affects parisc since it's > > inside a #ifdef CONFIG_STACK_GROWSUP section (and parisc is the only platform > > where the stack grows upwards). > > What about metag? Great! I didn't know that we now have another platform where the stack grows upwards! Now we are not alone in this regard! Anyway, the suggested & untested patch below should fix the metag arch to cope which my changes to fs/exec.c (unless the metag people want to implement proper stack randomization too). Either I can push it via the parisc tree, or you can take it via the metag tree. Please let me know. > > Helge Deller (5): > > parisc: add flexible mmap memory layout support > > ... > > fs/exec.c | 3 + (see: http://git.kernel.org/cgit/linux/kernel/git/deller/parisc-linux.git/commit/?h=for-next&id=13de8ec38997357c9865a36a587439d9c5678932 ) [PATCH] metag: define STACK_RND_MASK as -1 Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/metag/include/asm/elf.h b/arch/metag/include/asm/elf.h index d2baf69..089e37a 100644 --- a/arch/metag/include/asm/elf.h +++ b/arch/metag/include/asm/elf.h @@ -100,7 +100,7 @@ typedef unsigned long elf_fpregset_t; #define ELF_PLATFORM (NULL) -#define STACK_RND_MASK (0) +#define STACK_RND_MASK (-1) #ifdef CONFIG_METAG_USER_TCM