Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5561638yba; Thu, 11 Apr 2019 00:18:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTZpWNYZZj6iILesJ3uWOcm3v1gqxAeQvqQiYbVurD/V1makyt6DT87q96bRui6FzrYLII X-Received: by 2002:a63:6ac1:: with SMTP id f184mr42912089pgc.25.1554967115750; Thu, 11 Apr 2019 00:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554967115; cv=none; d=google.com; s=arc-20160816; b=YOTzWLKmhvY+mGtDC9xUjtS2Od84G6GyKnggRQnIIg90LzeuUj5SBlFb/ke69Oxgl/ qzcNlBLcyS7eBl13ed9rogy8mLqCbj3Ua2SBEeUKatSiwyEC4DnhBRMxua67jMoMx7sN zU28v5PmnWlHUo2Y2rbqJ7TnWFs0lHNI62l1wG61pyI5viT0LyHUb3BpielhPz0fAWtO 8AqmFL9XkHeHiNf5QaMwIrXRk+HmfLpEu7cfAXrJh/sh53a/tSTfFVtGf1hcQtctL/Gu PwzrHZm8n9Zcx9HGyb6vM7rzijlZWTTZv1MP2WEmAoD5Nmt6csCqLuLAhLbpka5+NQCb kaOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=r2zr0dkkseZ4YwG+4x5cG1AgJqCY9BJpepDcOBgMdDo=; b=foNrNtBHEj6DRuSjBtNz67TwftAI5FYo4AQK7b6XOZZTR0eW/SUM1r5DopxY7CXuCp EYa97XSSKqO5KDxDKpCnt2mNpXEySZD/7NnNmbtla2+tYua05gCUq+LkC1olRVFlTOBW GihGhoQgOfQnVi1RjVIwcwqy9bPla5hEhb4gWqJozrYTFeWxUtuD9/42CBxTWATHo9Dg 4Tc05XemxZxy5u8Nw7QGuKuIY+H44sl+6iMgEoxhES/DuOe2SbUm6ePwpIP2/zsLY6vL oO6ZAwqOsozkYOGkntntdD7DPtyV8SGJfOJCKE7LAtBpeW9JvFGvuEGcjzv9UUNctfo3 10hA== 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 f6si4818446plf.90.2019.04.11.00.18.19; Thu, 11 Apr 2019 00:18:35 -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 S1726913AbfDKHRM (ORCPT + 99 others); Thu, 11 Apr 2019 03:17:12 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:33889 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbfDKHRL (ORCPT ); Thu, 11 Apr 2019 03:17:11 -0400 X-Originating-IP: 81.250.144.103 Received: from [10.30.1.20] (lneuilly-657-1-5-103.w81-250.abo.wanadoo.fr [81.250.144.103]) (Authenticated sender: alex@ghiti.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id A0D7EFF80C; Thu, 11 Apr 2019 07:17:05 +0000 (UTC) Subject: Re: [PATCH v2 2/5] arm64, mm: Move generic mmap layout functions to mm To: Kees Cook Cc: Albert Ou , Catalin Marinas , Palmer Dabbelt , Will Deacon , Russell King , Ralf Baechle , LKML , Christoph Hellwig , 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 References: <20190404055128.24330-1-alex@ghiti.fr> <20190404055128.24330-3-alex@ghiti.fr> <20190410065908.GC2942@infradead.org> <8d482fd0-b926-6d11-0554-a0f9001d19aa@ghiti.fr> From: Alexandre Ghiti Message-ID: <4c498b2b-e916-3389-209f-aa4cc7b523ff@ghiti.fr> Date: Thu, 11 Apr 2019 09:16:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: fr Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2019 08:27 PM, Kees Cook wrote: > 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! > Sorry about that, I'm working on it. Thanks, Alex