Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2308465ybd; Mon, 24 Jun 2019 04:17:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAuJ6MyzQQuyd1baNSChkrsFT0KBEbRKUbRy1ZzJdnlimHB5HmIn/vRA5U5WFDn7n/awJO X-Received: by 2002:a63:c44f:: with SMTP id m15mr31884382pgg.34.1561375076106; Mon, 24 Jun 2019 04:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561375076; cv=none; d=google.com; s=arc-20160816; b=BZw7+PEmgFf2ys0oCKwbfEv720kP3wKjj97G/tt0s0l6YqnQxZXU0hYDxcmPix0Jlx Bx4KGJAdA7r0WTdSrPm//+haj8muKwO0QxYAawG8AaUzRYZ1jmvUAFvq6u8bijCLsUvb EULOiGCUfUg4O2nLfza6P2r5bcgSTRv2zXm+JcKF+WALXOeQuBRJRmuOe1k4SLJ7+Y8Y UQqJTTwtsqepJye/zyUSXtFwPKBXA5IV2tZmIE6kkpgA4/Uv1koe52uRxvNoHEL0PKdI f20vG+G/LzDn9T2jl7en23eyhxRfxX7KGfx0gkuuGjUd5xAqymGz2m84vbOlyUeSTvBO qHIg== 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:dkim-signature; bh=kHEUsCiTlX+B2LCgMtHmA4NQYcQ0ohuRXo0uNPfcyn0=; b=kjRgUXCNpaA0OBfitC/ZWVK9XPMPDjJ5mBzjsr1qiZF212CH4P5O6r33dWmB95bqmS xwvz9fGucjLZzCKevN0QUZu765HCY9JeRteyhmGnigg0y0KARBjueAZHD45+lnVHJ7EZ QUHIjK9gW3iQFs/zyZSE0gq1Sw9TabJC8yuyMX53f+7TgOx7Nisevh7thfgSQ1lAJ/pJ Q+2Y2kosEKOY44mksFSmqbOohfyKTMy8KZbI6p3pCxRA6t/QPRow8/7/yEmt76ytknd7 LF5k3xQZEDhC2A1XyVozTr+rN/qVOJ0DnZdFOsaoFCSpYl64kE+3+X2PU+1K3PSHQ7zn 4ung== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XSvX2o0P; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si10177734pju.25.2019.06.24.04.17.39; Mon, 24 Jun 2019 04:17:56 -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=@kernel.org header.s=default header.b=XSvX2o0P; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728806AbfFXLQH (ORCPT + 99 others); Mon, 24 Jun 2019 07:16:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:57760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728657AbfFXLQH (ORCPT ); Mon, 24 Jun 2019 07:16:07 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4ED1020449; Mon, 24 Jun 2019 11:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561374966; bh=LFqck4CeV3jBrl7Yqgi21ZqUHc7BseQ2I38AyrN4b3s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XSvX2o0P97KVpBlCPX61upv01HnSc9kZCztiFA3NLNpGco45CIh/rZ67XWlja2EVr vksn2UCldeO7t0n/lzFgMDLAb+ugyZ8v5hdUSmooKB4SZEXomTxQOY3AJWcU1Zq7VW ethUEz3+FgM9Le+Eh4bevMMllLhxj6571CK2n9Jk= Date: Mon, 24 Jun 2019 12:16:01 +0100 From: Will Deacon To: Will Deacon Cc: Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, Nadav Amit , Rick Edgecombe , Peter Zijlstra , Andrew Morton , Masami Hiramatsu , James Morse Subject: Re: [PATCH 0/4] arm64: wire up VM_FLUSH_RESET_PERMS Message-ID: <20190624111600.b7e5kkfvuszj6522@willie-the-truck> References: <20190523102256.29168-1-ard.biesheuvel@arm.com> <20190528100413.GA20809@fuggles.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190528100413.GA20809@fuggles.cambridge.arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Thanks, Will