Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2504617ybd; Mon, 24 Jun 2019 07:34:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmZOK+k7ZnfuOhNkxoc7TowrMT9mQdQ1N6mlGlVyIGyQUq7Eo88UESfCPYIUSeLEf26TRS X-Received: by 2002:a17:902:8a94:: with SMTP id p20mr129137552plo.312.1561386877335; Mon, 24 Jun 2019 07:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561386877; cv=none; d=google.com; s=arc-20160816; b=vknjfcQD65+eGI/0XV2McUmi2zkddIwWEVUS/5VkkFhWabhK8beLNv8rFrOx3ayGlS 1K2n92Q9EBTcqxlzojRuo67gCNVT0BQvHNhKXGeVd1PUAe+NmG+k6+d/Xd+fuIuPVyJw uHN/0fwzQhsmADNch/sWJy7C++eYbLfArERAsrXnHTvYYb8GlqrLgZWrn/td/7UG1PGw s3DgZC7IlforVfHfZ+Zg//Gw51oJKicij+dY+muLugV9GbpbxCrjmBBrer9pj4FpNPRo 7MsrrclTHdBLIBtb5V2P7jnU2EisBOyfpWSE5I3PxMfsCbB4wdSLJPnMsYdoUlg2c6wR JZUQ== 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=KLDSqUOdMe9MkrCouXk1jv/Ee4JAOZniqc4nsexubdo=; b=lC8jt+kNvMnrKfkZzojF3v1gIEgjDm130f/J+WwGuKhHTV5zokFpxUUY52I1dLCuPu cUMxrsXWQGXCnbXYHaRyCtR5n5XG4JSzxbtxqCrl7GuGIz/7dxZo65wumcC3W6lpo6QJ Xvc70t6RDv/HFW/dVt7KHGja7+k++Htg8e+Z7UhSG95QfpQ2JPdqkWTyWEAhccUNnWoL n7F/QjG2K9XzQGaG/JtiWjQgKCf5no6ecTI1MA9qNyZJYBExzY2X+lQikkp6hRqS4CXT RnsSatfN0lOfCtEMDJDQuxdOtjX+QBfGuBbG2s+KwBT2nTQakdhJWPwkqMbMp+vPoI9x i/FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SWNY7Uqe; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si11455121pfi.130.2019.06.24.07.34.21; Mon, 24 Jun 2019 07:34:37 -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=@linaro.org header.s=google header.b=SWNY7Uqe; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727892AbfFXO3v (ORCPT + 99 others); Mon, 24 Jun 2019 10:29:51 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:44331 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbfFXO3v (ORCPT ); Mon, 24 Jun 2019 10:29:51 -0400 Received: by mail-io1-f67.google.com with SMTP id s7so2623005iob.11 for ; Mon, 24 Jun 2019 07:29:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KLDSqUOdMe9MkrCouXk1jv/Ee4JAOZniqc4nsexubdo=; b=SWNY7UqeTaGhXp/3PP16Bk7RCsVd28PMBdKweU3IFOJXIpsZR6llO9l6t+4CuKFZzk DoBzQDK1Aa0E1F2j5J7GBdddh2HWFwhQBIjCSkkmZ3FS1LUO6fj5gI/aFUlNhJRbSXMr SPs9adEfb1TKx4mq8ErXyoVGUMzKrfI3d0MdG886/zHbGFLEiHMei3C6vg9odoYoug0y rHmXfcwpJzDBlQP/RDzKRhkz0z57NyNF1CNlDxmWj3LKKaNYElHycgiDDfNvMOpfaTlm VwoC7rQH85xtR9Di1oC6us/rPKIDKqqlES+BVxkJfiPRJ3s/LUnF1Le2n4vmy2kk9k8r 7wOA== 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=KLDSqUOdMe9MkrCouXk1jv/Ee4JAOZniqc4nsexubdo=; b=OUTt/H0bRX0slBOGwbGhwcWSUsUfcNVu/j1f+0xLrHoVnbwA0oeSiaxKMpAIFBO2FK +4u8o5UosG2GlpKPKIlaMspSLjfcC6qRNl5SPHVfb8xt1kjDX7aAiI6KfjO7JqAEwHcg VUOObjCAbHDSk5F6P9wueaoLLgAIi+H09c158LA29motZHpQFZ4FhEu8RsnIhrqgSTMY kXwzNr7///NuUUaP69uykGHnKGo3PFktbxOyL6okhFVVmj3TRufDKylf3lrSCja5jYLV wSGq2sgzg8CBZlzMVxEIB4qDrCv+QcMg83hhJvGItBBZY3Ud7s2ZP9qUuNVHe4EJjmnS dF5w== X-Gm-Message-State: APjAAAXfmHBvTyRFfcuEn91FdUjI0FaaJTJADscxFANTB/kTJMULOFI7 FYnmS/uR4PVdNlW3BvrL/Cibkl25pyqyJhjpA581wg== X-Received: by 2002:a02:5a89:: with SMTP id v131mr17639966jaa.130.1561386590504; Mon, 24 Jun 2019 07:29:50 -0700 (PDT) MIME-Version: 1.0 References: <20190523102256.29168-1-ard.biesheuvel@arm.com> <20190528100413.GA20809@fuggles.cambridge.arm.com> <20190624111600.b7e5kkfvuszj6522@willie-the-truck> <07e3d9ea-b917-2adb-6f88-0f1a31692d04@arm.com> In-Reply-To: <07e3d9ea-b917-2adb-6f88-0f1a31692d04@arm.com> From: Ard Biesheuvel Date: Mon, 24 Jun 2019 16:29:39 +0200 Message-ID: Subject: Re: [PATCH 0/4] arm64: wire up VM_FLUSH_RESET_PERMS To: Ard Biesheuvel , Catalin Marinas Cc: Will Deacon , Mark Rutland , Marc Zyngier , Linux Kernel Mailing List , Peter Zijlstra , Nadav Amit , Masami Hiramatsu , James Morse , Andrew Morton , Rick Edgecombe , linux-arm-kernel 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 (+ Catalin) On Mon, 24 Jun 2019 at 13:23, Ard Biesheuvel wrote: > > On 6/24/19 1:16 PM, Will Deacon wrote: > > On Tue, May 28, 2019 at 11:04:20AM +0100, Will Deacon wrote: > >> On Thu, May 23, 2019 at 11:22:52AM +0100, Ard Biesheuvel wrote: > >>> Wire up the code introduced in v5.2 to manage the permissions > >>> of executable vmalloc regions (and their linear aliases) more > >>> strictly. > >>> > >>> One of the things that came up in the internal discussion is > >>> whether non-x86 architectures have any benefit at all from the > >>> lazy vunmap feature, and whether it would perhaps be better to > >>> implement eager vunmap instead. > >>> > >>> Cc: Nadav Amit > >>> Cc: Rick Edgecombe > >>> Cc: Peter Zijlstra > >>> Cc: Andrew Morton > >>> Cc: Will Deacon > >>> Cc: Masami Hiramatsu > >>> Cc: James Morse > >>> > >>> Ard Biesheuvel (4): > >>> arm64: module: create module allocations without exec permissions > >>> arm64/mm: wire up CONFIG_ARCH_HAS_SET_DIRECT_MAP > >>> arm64/kprobes: set VM_FLUSH_RESET_PERMS on kprobe instruction pages > >>> arm64: bpf: do not allocate executable memory > >>> > >>> arch/arm64/Kconfig | 1 + > >>> arch/arm64/include/asm/cacheflush.h | 3 ++ > >>> arch/arm64/kernel/module.c | 4 +- > >>> arch/arm64/kernel/probes/kprobes.c | 4 +- > >>> arch/arm64/mm/pageattr.c | 48 ++++++++++++++++---- > >>> arch/arm64/net/bpf_jit_comp.c | 2 +- > >>> mm/vmalloc.c | 11 ----- > >>> 7 files changed, 50 insertions(+), 23 deletions(-) > >> > >> Thanks, this all looks good to me. I can get pick this up for 5.2 if > >> Rick's fixes [1] land soon enough. > > > > Bah, I missed these landing in -rc5 and I think it's a bit too late for > > us to take this for 5.2. now particularly with our limited ability to > > fix any late regressions that might arise. > > > > In which case, Catalin, please can you take these for 5.3? You might run > > into some testing failures with for-next/core due to the late of Rick's > > fixes, but linux-next should be alright and I don't think you'll get any > > conflicts. > > > > Acked-by: Will Deacon > > > > Ard: are you ok with that? > > > > That is fine, although I won't be around to pick up the pieces by the > time the merge window opens. Also, I'd like to follow up on the lazy > vunmap thing for non-x86, but perhaps we can talk about this at plumbers? > Actually, you will run into a couple of conflicts. Let me know if you want me to respin (although they still won't apply cleanly to both for-next/core and -next)