Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5137932yba; Wed, 10 Apr 2019 12:11:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqziphG4FJ52HEoFmO4WOSEO2TxeNm1k+rcCMG+6hQhJ8S+PksXqFJ6v01J+uQLlU3MXo8bD X-Received: by 2002:a17:902:bcc9:: with SMTP id o9mr45913888pls.65.1554923485300; Wed, 10 Apr 2019 12:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554923485; cv=none; d=google.com; s=arc-20160816; b=Dn+fggHXhRw+73OKBEBtuDU3DcLGcu5HAIMMkUI5xoQZAPenvbQc76NaCmwhmmBL4e Wc1/vJMWo+TQLk9vzGVTssPVtrEDqSabPiVMCSOKYH96sGsDpxDHUr7tl2gYss8Wwrru bqHLWSr1+9vtGcU8/7GEwv4uiB+VT13ntLq1woDASV+wEuIy89wK4OFU4lzLdyYDnlXm pcC9KhHcsIG+k73MHsAgNl7RVvxFxzf0zAT05CC05ogBrbiU50LSfJ1J3gF93aCtsphm TI2dSy4643US4jzMC3x65KP/KwIkuVJTj8ztSn1VnnNtzOuSR4Ymp4JEGT/25zFoClXm H7vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EWEqtNllEvpYJI4SR8SxraijSXCc4AK8CwC4R1aamEI=; b=ZvPd6FSIaQgXEVR9w5jlIwxKSigysBFFdhdm9OgzvVU8GPHEXG2+RtVCz/PTTws38y 3nXjQz71hmf4oBd4u+IDMxNMO2thlOuRdjWSfKeADxUP/Pg2MMpI9t03Neizj0k+ujHi f+SKZ8nlTPJWYQoN03vwVUrmendr95PyMUo5g1R0LIzAFasDS01CPc1e6kX8xPixWkmS RqwPMecSv+YnzGLEmLq3Es54XlD7hVu6xqtAGwQvzcOdFxWjFy/R5GFEW7/DREJc3ahM old18EnwzOJi/PPGh2ksDhRu+5NWl2W6ur+xnkPKTop+0ZduahdmimXVwm9fy5nGTQZY yrNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bSr7MxHC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si32311938pfc.152.2019.04.10.12.11.08; Wed, 10 Apr 2019 12:11:25 -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; dkim=pass header.i=@chromium.org header.s=google header.b=bSr7MxHC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730768AbfDJSeM (ORCPT + 99 others); Wed, 10 Apr 2019 14:34:12 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:37139 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730222AbfDJSeM (ORCPT ); Wed, 10 Apr 2019 14:34:12 -0400 Received: by mail-vs1-f66.google.com with SMTP id w13so1970903vsc.4 for ; Wed, 10 Apr 2019 11:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EWEqtNllEvpYJI4SR8SxraijSXCc4AK8CwC4R1aamEI=; b=bSr7MxHCBXn6h0g3WRGDyc2DhbuqqkdN6kW4p22Hos+GjTZLWrFrQlrp7jWHR6ShdZ 2uemyxpXrWgr4x5PSuKplueV9Xenc396YezASzbUdmimeusHUAsVR9xEc9/Ce4YVvdd/ +FKf9Ta+3vfdBUTnObARr7b4AQUoa15vGEWKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EWEqtNllEvpYJI4SR8SxraijSXCc4AK8CwC4R1aamEI=; b=HDc9HG4VbxKc3QahtJzHDCC7JYnSc1MIRnEn/SBsrQSqVQDs4R8hTE9NjMv4FicmHy DgER2mFde3vL13r7IDp5llACWsonQ6tyxlfCrgdkRZiwUig70qXV4k1YJFoME+gz+XJi IZggcR8CswVJOh91tjPnFxXvMcLlVhZfQScwMw8y/DbWhmdC1TCrnrVUHBbyVqf6FYNX 4WXvG793itS8kTzXsn5bnW7NGmSD4pc8XrxugE89MOrx3hbR6y8aiUfPQsfyn42MBe8i tVfTbbexuxmHvlD63rPmG0hWBdRzXuutReo0xDdQNWGdsRtwMF+4S+PeDF389fM02W9I yMDQ== X-Gm-Message-State: APjAAAXlnydLECZqcxd57aMHZHFks6yQU7+OFimM6ZCV914dO7+Y7a31 R0Mdg3RcCdBu8BeqkplMrAWX36dgAMo= X-Received: by 2002:a67:8e0a:: with SMTP id q10mr26209780vsd.56.1554921250969; Wed, 10 Apr 2019 11:34:10 -0700 (PDT) Received: from mail-vs1-f51.google.com (mail-vs1-f51.google.com. [209.85.217.51]) by smtp.gmail.com with ESMTPSA id t128sm28393514vka.36.2019.04.10.11.34.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 11:34:10 -0700 (PDT) Received: by mail-vs1-f51.google.com with SMTP id a190so1981749vsd.0 for ; Wed, 10 Apr 2019 11:34:10 -0700 (PDT) X-Received: by 2002:a67:7816:: with SMTP id t22mr24096520vsc.115.1554920858548; Wed, 10 Apr 2019 11:27:38 -0700 (PDT) MIME-Version: 1.0 References: <20190404055128.24330-1-alex@ghiti.fr> <20190404055128.24330-3-alex@ghiti.fr> <20190410065908.GC2942@infradead.org> <8d482fd0-b926-6d11-0554-a0f9001d19aa@ghiti.fr> In-Reply-To: <8d482fd0-b926-6d11-0554-a0f9001d19aa@ghiti.fr> From: Kees Cook Date: Wed, 10 Apr 2019 11:27:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/5] arm64, mm: Move generic mmap layout functions to mm To: Alexandre Ghiti Cc: Christoph Hellwig , Albert Ou , Kees Cook , Catalin Marinas , Palmer Dabbelt , Will Deacon , Russell King , Ralf Baechle , LKML , Linux-MM , Paul Burton , Alexander Viro , James Hogan , "linux-fsdevel@vger.kernel.org" , Andrew Morton , linux-mips@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel , Luis Chamberlain Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 12:33 AM Alexandre Ghiti wrote: > > On 04/10/2019 08:59 AM, Christoph Hellwig wrote: > > On Thu, Apr 04, 2019 at 01:51:25AM -0400, Alexandre Ghiti wrote: > >> - fix the case where stack randomization should not be taken into > >> account. > > Hmm. This sounds a bit vague. It might be better if something > > considered a fix is split out to a separate patch with a good > > description. > > Ok, I will move this fix in another patch. Yeah, I think it'd be best to break this into a few (likely small) patches: - update the compat case in the arm64 code - fix the "not randomized" case - move the code to mm/ (line-for-line identical for easy review) That'll make it much easier to review (at least for me). Thanks! -- Kees Cook