Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4443037ybi; Mon, 3 Jun 2019 10:56:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlNPZNqc6McZuWV9HCNd5LpAZTYoYuBpLy2Dh6Lh0+TFkk/apJYPglt6qVTa+sBdkeiTiK X-Received: by 2002:a63:f10e:: with SMTP id f14mr29827895pgi.226.1559584605413; Mon, 03 Jun 2019 10:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559584605; cv=none; d=google.com; s=arc-20160816; b=fmVyBj/TCpycJptmAInbUxEiCNISQTIv7Car9ylZeKg5l4A3OlYTnH+pZMDrsThwcs U+/xAV83Jzsw3BHZoCfyugYQ/RDIacOiy3mFpfZzB+UFHNC/+/gDcVsgW3qhsELvtHM+ nj4Imf8GA8zgrRpesiA6h1eK35ruocjFRZgygcjMpcyVxCIKA0U52sZHPW/wrQllpGh3 N5CBNyQ9Vd4fJGdORI2v7p3Z+uB+8yU/VLpbfZmkmA9y7IgvLK56E53/KPVQZrChs0TK 1jfAHsBhbKFv4VFicBKFKb2P2VCfVOwAIQyHu0hyDp4RNtzBPzbHZUUYJGmEDpDwnBgH 1cbw== 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=25Yc9Ik3R+Y6EnRn3h9uEr7/N0lFYvHeXCFez5voKhY=; b=h1U6bmTFUHD7KMSK8q4P1x1Cfl9KiWzQxJTZAZHL1IMyCsPUcY6vxStSf3FXevxl1Y tgKRQwG46hO+DFreXX2qmRJ4pOzx5514k5CtjZTZdu/OBMYFHGeBSdLTHX4ASJbXICpa P8JmN35sDODBodM/WRasqCmz+kkf8CESFVTN09V6YoGMtzCS+5tATh+xbi4mZADG3+U4 /Mrk6ofvwuV5zS1pLKN8E2m3A5YOTrMyLb8rMKvc3ny+2M/rq1ccTuEXcaJIxUD+WqTq XFGaat46zkAZKRyQG5AQuPgNvGiYawnwh+kbwGurdt6kTPcTOPdU1UFYdpEP/b7aY+GI nhoQ== 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 d36si21158301pla.113.2019.06.03.10.56.29; Mon, 03 Jun 2019 10:56:45 -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 S1728455AbfFCRkI (ORCPT + 99 others); Mon, 3 Jun 2019 13:40:08 -0400 Received: from foss.arm.com ([217.140.101.70]:56880 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726635AbfFCRkI (ORCPT ); Mon, 3 Jun 2019 13:40:08 -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 81C7280D; Mon, 3 Jun 2019 10:40:07 -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 6BC373F5AF; Mon, 3 Jun 2019 10:40:04 -0700 (PDT) Date: Mon, 3 Jun 2019 18:40:01 +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 05/14] arm64, mm: Make randomization selected by generic topdown mmap layout Message-ID: <20190603174001.GL63283@arrakis.emea.arm.com> References: <20190526134746.9315-1-alex@ghiti.fr> <20190526134746.9315-6-alex@ghiti.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190526134746.9315-6-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:37AM -0400, Alexandre Ghiti wrote: > This commits selects ARCH_HAS_ELF_RANDOMIZE when an arch uses the generic > topdown mmap layout functions so that this security feature is on by > default. > Note that this commit also removes the possibility for arm64 to have elf > randomization and no MMU: without MMU, the security added by randomization > is worth nothing. Not planning on this anytime soon ;). Acked-by: Catalin Marinas