Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4442868ybi; Mon, 3 Jun 2019 10:56:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAYnm/5Boqzmc/EsSk5YHLEsg7yfrTqf4yW3RnTAbMcgM+IvdXnXp4FratNfd8ACulOsEr X-Received: by 2002:a63:6884:: with SMTP id d126mr30376001pgc.154.1559584593878; Mon, 03 Jun 2019 10:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559584593; cv=none; d=google.com; s=arc-20160816; b=TQS22bopyLwrzZKMml+2Zk2lkWOJF/JPEAOied2dlqkfYAlqp1XC/Lk7VMl/xSddWr t0Ut5JSOx89h4rdclYRaRGnDZmaPR+4h0mieDoSk75R6/ydNG/ZvlxsUG5LTHa+11aY9 8ihErtSkv2QRtIKk0YX6DjUsdmXSGoEkYU8AiT9rLVCMj7Lit7WSJuQywflvQUpEeo+y QYCYf0Z3dww3XkHUFjWLG1ntWiicukr0WYKUV1rGKPDjuf1JoVU+6RsfJj/NTb/awGbY aJOh7BJunSva92BZ4PuSO08BoSzqt9WKCE4k2MUXh7z9calKmvzL9CvMr85vJQ5aqz/n VX5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TIyZYmgplqqc5cxh9Px84y0P1YBJ2Y1NOZOA7imnXLg=; b=LBV9G5c1ps1q4dUaD+3nDWGIXh4Ver3YygpkaFiIrW9cLNzyA6lwnNwdtHpHwQykX9 78sW8+JDB1wX0RbahWDCB5knfoMCpIx/FOMY7pQ4oYQT+PaShH3ptoqw+2+fTLTHUlDI vMGvCHiMfYx4ttwS3FsW55+XXSNPtgkCz/0GsRQWdgWioCkALbgA345DfMuusnTP09Tk dKLBO2jmHVfVyYsCbjpUtRFj+Yd1ulLfr1hrxQryCHMXCZUp3kc1Ul0pVa9PUN72t+6Y HSilcREuWtL0RoHNs3XrPY5gpYO+IgvIvery2ZdqJVSo5B7aET6AjdRiemVirPmTMBSU 7Vbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c193si20262050pga.6.2019.06.03.10.56.17; Mon, 03 Jun 2019 10:56:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727907AbfFCRhT (ORCPT + 99 others); Mon, 3 Jun 2019 13:37:19 -0400 Received: from foss.arm.com ([217.140.101.70]:56758 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfFCRhS (ORCPT ); Mon, 3 Jun 2019 13:37:18 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0F68280D; Mon, 3 Jun 2019 10:37:18 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EC8823F5AF; Mon, 3 Jun 2019 10:37:14 -0700 (PDT) Date: Mon, 3 Jun 2019 18:37:12 +0100 From: Catalin Marinas To: Alexandre Ghiti Cc: Andrew Morton , Christoph Hellwig , Russell King , Will Deacon , Ralf Baechle , Paul Burton , James Hogan , Palmer Dabbelt , Albert Ou , Alexander Viro , Luis Chamberlain , Kees Cook , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v4 03/14] arm64: Consider stack randomization for mmap base only when necessary Message-ID: <20190603173712.GJ63283@arrakis.emea.arm.com> References: <20190526134746.9315-1-alex@ghiti.fr> <20190526134746.9315-4-alex@ghiti.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190526134746.9315-4-alex@ghiti.fr> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 26, 2019 at 09:47:35AM -0400, Alexandre Ghiti wrote: > Do not offset mmap base address because of stack randomization if > current task does not want randomization. > Note that x86 already implements this behaviour. > > Signed-off-by: Alexandre Ghiti > Acked-by: Kees Cook > Reviewed-by: Christoph Hellwig Acked-by: Catalin Marinas