Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2313827ybd; Mon, 24 Jun 2019 04:23:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMwtkOHminNMROGNQdm7XPtpGcxgldzokcQM80S7NSoOHurvrdBlCvoJ3Ib1zzVC1o3nmI X-Received: by 2002:a65:4347:: with SMTP id k7mr32791909pgq.253.1561375405833; Mon, 24 Jun 2019 04:23:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561375405; cv=none; d=google.com; s=arc-20160816; b=ufXl4a//S7Mpp27PeTqrIr43qPQHpcEeZenIZMmQ/WFCD1IkvywQdI+Ucy24bdrHnw JP9h3IY63QNn85W6AXVqQnmnbxn+yu820RFl0wPvqBf1rTSubw2lkA9jnBkrNco6WlxL CLNF5bzpTUVB9PZZlCj+KVGuUeJDcm4kecQOXHIw2/VxZvVBAY8VW8qPTgi3DiXSGxRk 8eXsjo9QHC5chgVXZXGU9tNeAbHzeVS108h3busk+lqLhU/vKprOAzsxtZeJ0yTVSR47 likko8uIR6fhUYfsXqyV1vRjdlMUneVLQBvJTFecy1dfua+o0KiQE+oSvWkbLMqLMmc/ Thqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=7LIkoWmLlp1aVEDugYX99WPwH7sF/XjlDBAmOmEhrrQ=; b=ZaDx+H/JAb4I4z7EZFTrLa7vZFienE4jG9XkSKiIZHVwyx1KMO/cL8XJdpJjQiHNPG C/W3k84wpwZ+Zpg9eCMCdhlyiouDqvIRs57zWQLl7maY+2pqGK8plzwkUK46gVLXGa/R WFXpeJOhfA6rS5ZgiGFEvbGCTZ/o9jaQzLY1uCdONh+IP/PAQ3Euo3h4rEe0lrs67IwA zsq06lzKZ5ZeM3mEswLHaRVnFzrevDHK5xJGezceD6+Jod+HDjjH6+DnAKZ+2lyKN5Bs wXXzA9RRmCC02MW/XnHzp7Cg+YF2OYh66PgBPts6Dm0hD5UKSGSD+L5g8/w07f2QKpx6 PyrQ== 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 y3si11260734pfg.23.2019.06.24.04.23.09; Mon, 24 Jun 2019 04:23: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; 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 S1729174AbfFXLXB (ORCPT + 99 others); Mon, 24 Jun 2019 07:23:01 -0400 Received: from foss.arm.com ([217.140.110.172]:47458 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727722AbfFXLXB (ORCPT ); Mon, 24 Jun 2019 07:23:01 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 755622B; Mon, 24 Jun 2019 04:23:00 -0700 (PDT) Received: from [192.168.1.27] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7BAB43F718; Mon, 24 Jun 2019 04:22:58 -0700 (PDT) Subject: Re: [PATCH 0/4] arm64: wire up VM_FLUSH_RESET_PERMS To: Will Deacon , Will Deacon Cc: 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 References: <20190523102256.29168-1-ard.biesheuvel@arm.com> <20190528100413.GA20809@fuggles.cambridge.arm.com> <20190624111600.b7e5kkfvuszj6522@willie-the-truck> From: Ard Biesheuvel Message-ID: <07e3d9ea-b917-2adb-6f88-0f1a31692d04@arm.com> Date: Mon, 24 Jun 2019 13:22:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190624111600.b7e5kkfvuszj6522@willie-the-truck> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?