Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1574619ybm; Thu, 23 May 2019 03:25:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfnvTHxChh14lrUzrCwQkmKE0EW6LBuXCwDi4F4lCaWV0fpUVQ9/IqNH27G4xoPvypJDWa X-Received: by 2002:a17:902:e40a:: with SMTP id ci10mr49228858plb.195.1558607154182; Thu, 23 May 2019 03:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558607154; cv=none; d=google.com; s=arc-20160816; b=dWBOOyVEQkzigWzXQDVEQXgyn9PEM6liXGekfS0NzHz1FaA7flkLxD5S4ozT1gSKAk kB1u80TwavinI0Yf3SK+ELOcq+fDl1iQIB/kDUPjWj1g3xW6YQFQYde3Ki1k2TQQDIr+ PUJvZ1UmTiYj3kWETeeEo/4XzCMe8GoeNtIgSGw8DEPOXRZ+4elTs+VQzt/ZF4LqXUNR HLztWk6onQEaP3A/yzvxrXknuRTip11ywhVErx8xlQVOgi0864oUOLksf7WGMKOp8ykY dPMtHtxB7PRi4tXjrLq/WaIqZthWWAh6bHwTFETj/hURbbPnQT45lHc9U7QMm4HmYTla yGxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=OWkFBBhMW6sQq+Bod72BE+bJI8UJEmXcN7tzAjLHSqw=; b=NNXi29vOA6Ldppt60LTbIXHVUniNXUO294t4XjwbKaiyBmZJHawNkp0Wxr/7eIUoh3 zAiHXD+ect9MfVs4Oi/oQKTYEtS2eiuRWtKMLOBwZBteFBBjlVAE3RqageifH0ZWEhp4 hcC7aRThPoFf9o5dLMGFokKosuGZeUqtMqi5ge68VhSXSCbK6coHO2V6qfIrqBuePooU lhL2Flua+hgpf8KlyNG5p3aFDKyWN1AoTlqPrWXNXLT60NZHmBwD6QSstlYPnpWkLEa8 OuWSG3dwxPGqdkhdm6ZJvEgiks3wVesyo/v3rq8yY/rr3sIAnDjmkYHUGjjFUVYIsxdy 5iYw== 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 x3si202454pjv.49.2019.05.23.03.25.39; Thu, 23 May 2019 03:25:54 -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 S1730381AbfEWKY3 (ORCPT + 99 others); Thu, 23 May 2019 06:24:29 -0400 Received: from foss.arm.com ([217.140.101.70]:42632 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727434AbfEWKY3 (ORCPT ); Thu, 23 May 2019 06:24:29 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CA97AA78; Thu, 23 May 2019 03:24:28 -0700 (PDT) Received: from e111045-lin.cambridge.arm.com (unknown [10.1.39.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A4DE43F718; Thu, 23 May 2019 03:24:26 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: marc.zyngier@arm.com, mark.rutland@arm.com, linux-kernel@vger.kernel.org, Ard Biesheuvel , Nadav Amit , Rick Edgecombe , Peter Zijlstra , Andrew Morton , Will Deacon , Masami Hiramatsu , James Morse Subject: [PATCH 0/4] arm64: wire up VM_FLUSH_RESET_PERMS Date: Thu, 23 May 2019 11:22:52 +0100 Message-Id: <20190523102256.29168-1-ard.biesheuvel@arm.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.1