From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DD52C433DF for ; Wed, 8 Jul 2020 16:18:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E0EB920786 for ; Wed, 8 Jul 2020 16:18:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="r+KVOV/g"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="vMOgdCQ4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E0EB920786 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Kt+nigvuHObRviAZEj4ol7+V+JXEPYpgj+AjpVPQ2zQ=; b=r+KVOV/gPh72PfxfzG2C4EHxU QBIWp8u1MOQEfL5EQeCflIvZHeTM/yp6X/GEECxI1FL+AatEhHyb+GvFosZj8NPsFGxGp8ZF5BGE7 RmJcMRrCN/ONHSY72RLWQtas9BXzPWzBpw8aNHWQynT2+os1fOR53Gcd8v755feaJichE9zNyuWJT SL2zo+HbG3i0S1Bck3/kN4fM9Q3zodx+y9Wh65WcauGot8p1iWiearSQ5KDUHsfJQ3HLADxWn7l47 OIt4WZ1kvQQlFaRK3V9rjP+1+75BcBIHl6iAMIFk28AWzow2HW++mIai2r3XR0REBnKX7abQ8qtcV FTfU3L4dg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtCl8-0000aD-72; Wed, 08 Jul 2020 16:17:22 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtCl6-0000Zj-HD for linux-arm-kernel@lists.infradead.org; Wed, 08 Jul 2020 16:17:21 +0000 Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (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 D3865207D0 for ; Wed, 8 Jul 2020 16:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594225039; bh=f1paydPvqX5mmoQC/Q4NS+87DmSKuFrcvAhN61O4cqE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vMOgdCQ4ZaXVWEYGO4yvTefmoEl44l3Ytbq9A268zygfOy5G/d3AA0EIcfkYFoo5M 1pTVrRlZgBLWvsu4vlj2XsX0D28htMzHJ2ska1mrH4E7MQWt2a3nYBOMx994JYp7UW Udmt0wwCC5uU4MdBlMiqSWkxtLImoe/foWljS6Qc= Received: by mail-oi1-f182.google.com with SMTP id k4so38252749oik.2 for ; Wed, 08 Jul 2020 09:17:19 -0700 (PDT) X-Gm-Message-State: AOAM532QMkNV3J9QzMfTK2Ngji9k7O3t0vmX+AfywmxX3zbQ2I5Y7HCR PA0zdz7nh7sADvI+rH+87aW0OqUWR+rz4AHPcNI= X-Google-Smtp-Source: ABdhPJxecRpEvEPRMVMbo2s6nVaZxwYg5eNwh2bAx1ZEx7RL90ErAcNU5zXlYC7f6VanZkv7skq+sjlNi5EDHM1TgJs= X-Received: by 2002:aca:d643:: with SMTP id n64mr7803399oig.33.1594225039226; Wed, 08 Jul 2020 09:17:19 -0700 (PDT) MIME-Version: 1.0 References: <20200626155832.2323789-1-ardb@kernel.org> In-Reply-To: <20200626155832.2323789-1-ardb@kernel.org> From: Ard Biesheuvel Date: Wed, 8 Jul 2020 19:17:08 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/2] arm64/acpi: restrict AML opregion memory access To: Linux ARM , James Morse X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200708_121720_657705_BF9664BB X-CRM114-Status: GOOD ( 14.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lorenzo Pieralisi , Kernel Hardening , Catalin Marinas , ACPI Devel Maling List , Sudeep Holla , Will Deacon Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org (+ James) On Fri, 26 Jun 2020 at 18:58, Ard Biesheuvel wrote: > > 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 > With some adult supervision from James (thanks!), I have given this a spin myself with kexec under QEMU/kvm, to boot a crashkernel, and everything works as expected. > arch/arm64/include/asm/acpi.h | 15 +--- > arch/arm64/kernel/acpi.c | 75 ++++++++++++++++++++ > 2 files changed, 76 insertions(+), 14 deletions(-) > > -- > 2.27.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel