From patchwork Fri Jun 26 15:58:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 11627913 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DEC6592A for ; Fri, 26 Jun 2020 15:58:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C7D2D2081A for ; Fri, 26 Jun 2020 15:58:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593187121; bh=FC+oTGAs23eBdDUGAh1t176WlXiIhxPuC7xFP7W52W0=; h=From:To:Cc:Subject:Date:List-ID:From; b=MbLdXh5yw7PiltsmNIA4IfgQrgEB9u+aTV3thWrmoeK7camYTw4nGBeEt+egb1Bwi aAGECOlIHnPR2PlLFTtTBR0UHz8e5hyByg+WVjh6yFogPu0OlgfP9cHOornD7GHwZJ 7MkR1+dAaUjZuCZmHoMSmsnZjvvjoslXX+o1+pmI= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725981AbgFZP6l (ORCPT ); Fri, 26 Jun 2020 11:58:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:48808 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbgFZP6l (ORCPT ); Fri, 26 Jun 2020 11:58:41 -0400 Received: from dogfood.home (lfbn-nic-1-188-42.w2-15.abo.wanadoo.fr [2.15.37.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 33705204EC; Fri, 26 Jun 2020 15:58:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593187120; bh=FC+oTGAs23eBdDUGAh1t176WlXiIhxPuC7xFP7W52W0=; h=From:To:Cc:Subject:Date:From; b=jIT0I4Svp9S8w+HXR16FZk9s/faTxhTaNm36i51GkF7fn74oRQWEFERHLG8yNepyz FWwlJ7coS8W53XEtJadpUIiZJe8VYj+HKj8HEO68/ckE+ZhblwIiopUXdgKe+nT4+a Wal3iWhQeOKuIKWmkGDt0k71LhruutLjQpvn2CMI= From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org Cc: linux-acpi@vger.kernel.org, will@kernel.org, catalin.marinas@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, kernel-hardening@lists.openwall.com, Ard Biesheuvel Subject: [PATCH v3 0/2] arm64/acpi: restrict AML opregion memory access Date: Fri, 26 Jun 2020 17:58:30 +0200 Message-Id: <20200626155832.2323789-1-ardb@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org v2: - do a more elaborate check on the region, against the EFI memory map v3: - split into two patches - fallback to __ioremap() for ACPI reclaim memory, in case it is not covered by the linear mapping (e.g., when booting a kdump kernel) Ard Biesheuvel (2): arm64/acpi: disallow AML memory opregions to access kernel memory arm64/acpi: disallow writeable AML opregion mapping for EFI code regions arch/arm64/include/asm/acpi.h | 15 +--- arch/arm64/kernel/acpi.c | 75 ++++++++++++++++++++ 2 files changed, 76 insertions(+), 14 deletions(-) Acked-by: Lorenzo Pieralisi