Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2834901ybd; Mon, 24 Jun 2019 13:38:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM9N4UZwfhk34Hz8vOYI/dQ5qRI9p6JuWVhUWYS14OUXgCWX0qhHSSQab5q9nZ/DjxITbN X-Received: by 2002:a17:902:2f:: with SMTP id 44mr89379214pla.5.1561408689485; Mon, 24 Jun 2019 13:38:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561408689; cv=none; d=google.com; s=arc-20160816; b=WbNOK9mlpN6vC7G/O1POuKfLW7LzbI1JHrSDy+RqeXO3ii8g/xEFEHPydqIi29CuOi reCBgLJbp9aUCnpynte4O1WL3gnciogdvvqxYj+9wubVav1EB8fipzJTGKN+FR2hybDC f6yG48U2Wb8we+rHH1OJu4VM64m5B4I9DegoFUxCEt5Xm93/eWl6DwpkwJJ+ZODR/DS1 CQEXaA3Ln9qLe0QHt0DJx2OXthykDF8MO8WSs1JsUwt7nYI0xeqYUYgG4SDEpSN8oxJE 6/oZD/cCXAUiZDNie5YlOhrtejMPKZ7y7JHzVDquIbmwk7BKdUdG2ZfiSnk8Mj0Bzr0F X5VQ== 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=g6KR75hh9p9LQvATREMdziRPKl8qsGfYDtGRnDFkfxQ=; b=HlVmIF9YKeEdpeVkI2oK0zNG0rV46FgAE2uew5hd/KFjIoYpIgxIc+pg77stpbM8Do 1P68djSkGwDawerpqyME+rQtaZsbYmYkZfowCh67oW78T3puBiy6A7EwNlprlOenM2yQ vRCppVQU11khjgMDZ+hn1ebdcX8L2R1HigKos1LS+tKwRAOILftwkJ/S3ZJ2aglRC9cI tEiU36NI/tH3yHKFqzjiGfZTsy44clWak5S0pxh2YIXPcINK1jwJbenDTp1u+VB+8L3Q nQX6Ob+K7vrLDyyLBSQEZqIZ6WYQdzoPxPYclPXC8npPJnM+LRfMUuFwiDW13cMPr7AP Dadw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B+lyZQLd; 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 l24si11587201pff.185.2019.06.24.13.37.53; Mon, 24 Jun 2019 13:38:09 -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=B+lyZQLd; 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 S1732342AbfFXRQD (ORCPT + 99 others); Mon, 24 Jun 2019 13:16:03 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:36340 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbfFXRQD (ORCPT ); Mon, 24 Jun 2019 13:16:03 -0400 Received: by mail-io1-f68.google.com with SMTP id h6so558990ioh.3 for ; Mon, 24 Jun 2019 10:16:02 -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=g6KR75hh9p9LQvATREMdziRPKl8qsGfYDtGRnDFkfxQ=; b=B+lyZQLddAB4n+QEZiL/i74A/XWU56eo9exzRts+SlhOJz90tX+O7QXRuJGuvJ0eA1 hVc1WoxC/0DIWnStNLewcHDIi2C67XL9PLgIZVPisO8WuE4YN26Jrm1/Ams8hkzxt3py Js2luR1OYLxKjAeZB/DcDgqw8QV8n0frzbZt88yXHTeOtUTpz/+KlwwzcNJo7CDz+xhf QKG3GOhFdb1VxAYfiflu9u/abji1MzvGST6Fq5YumOsnzg5dhsp0twXh0FwJYhC89nwf CK9sL1w7lp06B9wUDXTMd01yKiTp1rY7Tc52MpeY5/fi8QssKajDpCcl0KkriJNz5FLx l1KA== 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=g6KR75hh9p9LQvATREMdziRPKl8qsGfYDtGRnDFkfxQ=; b=O9/bc3Fa1w47jNxnbhCKbkTUoXPp5TlyEkkLz0ZUMx/Rg3+KlVVZnKSPa/Xu+pzfpl 5I3xrTQCK9b+hDDYXgxPxe88nMZ86/WeTNTmKyZl0TTcAI70a5uHTR4Y5edlVKN39ZA7 ES7XyLt/sFHwkLzezH8QGk/SNgx/S7oQMFpTw8GVp21FKFTYbRB7TDGJYU20+oWD4Gn5 Zafz6Wb9jBZvtwAM7aF9Do+aDYGhwjUPefEcEaft7n+ZhiVPwSbZFpJ0auqL12m4oQQL /wUfiPervV0QT8XV9EsJENUYofEjxqEkEf+w2/HzM1tVWQqdeySpzRY2oF7MBxzM/cA+ AxHQ== X-Gm-Message-State: APjAAAW8DfnOXRzt/VWFArXiT7L85p2giCb80CTvRCliwyIVvzBBIT0I 7A0gvHn4zCmh0LxF6ArowhjtHZvPdB+HWq7IyccqwA== X-Received: by 2002:a05:6602:98:: with SMTP id h24mr22683948iob.49.1561396561811; Mon, 24 Jun 2019 10:16:01 -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> <20190624171358.GI29120@arrakis.emea.arm.com> In-Reply-To: <20190624171358.GI29120@arrakis.emea.arm.com> From: Ard Biesheuvel Date: Mon, 24 Jun 2019 19:15:50 +0200 Message-ID: Subject: Re: [PATCH 0/4] arm64: wire up VM_FLUSH_RESET_PERMS To: Catalin Marinas Cc: Ard Biesheuvel , 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 On Mon, 24 Jun 2019 at 19:14, Catalin Marinas wrote: > > On Mon, Jun 24, 2019 at 04:29:39PM +0200, Ard Biesheuvel wrote: > > 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: > > > >>> 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) > > I queued them in for-next/core (and fixed a minor conflict). Thanks. > OK, in that case, you will get a conflict in -next on the hunk against mm/vmalloc.c in the second patch. Just FYI ...