Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2573725imu; Thu, 29 Nov 2018 07:06:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/W5Q8nKrff4YY0O5xSZEX5mcsWXR1BarrfIy4vs2ju8XyYSAi19gUH5ljr85fa0x9vIpKcA X-Received: by 2002:a63:790e:: with SMTP id u14mr344497pgc.452.1543503965780; Thu, 29 Nov 2018 07:06:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543503965; cv=none; d=google.com; s=arc-20160816; b=Cj/GGvpzCnebp0wu27lUHlNo77XhfmQN4YNxa18S/ts4+O8QsGBj2UqxfDhsKq6XuW Y8I+RTPXO/IgQK8u3w5dCqRyDq7E6OYeIBKSioWoXjnB6zydB+fB6jJ3JmO2s1tPS4zM PQBCKXDxmu7s8FalwNoKhdzDfTfXdwLexJYCaUl0zDqs9+wtx6PNQDO79Q7ro8aL7rRL p2a/bwDW4A9SvmJT3AXC1MLJBf/ZYduyi0DJRL0DPfGa9IoJIDt1FIix3C8t9TCOO20+ JpWp0M7pD44dJfOr2MwTHk69fAlB6gP1EPl3GbGbTnkrNDSADlDrP8MddfnsGFKsUWss MNDQ== 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=bI4HsTozHcvKlx21ofCkvErvo0kkxXchTu8M4Q9Rfmk=; b=VpWgmjw94OT/6lyTEKjDOYU9L4vzYIJumlrLJ6hMfepqR6K7lCPOrH6ZxDD6ki6ido nNN/hoHSJIUa2z2RwmaGQHKkueL9g/YIGamA8iy2zmEKuaMDgXonsd27sSfdxXDUdURd htiNVPnH47tsXtHyKggLMMa24HKvr/lzypQbfZhUC1HqaDTWlI6l8OkiJa+zOmBNX6ob Qpoyg3x0t+fTLwdYqzbSPb2O9VnhPSWylfdfXrl7CufOBItUDrwe0vpPU11xE6cikL1Q hrMR5UMiZBMm9i0feC9Via0VDmL1/Qk9ru6FVnGw2yXPnVkdVOG6hqhFeZSyuaKCEAxj ql+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aCgWBlW6; 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 v10si2336293plp.183.2018.11.29.07.05.50; Thu, 29 Nov 2018 07:06:05 -0800 (PST) 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=aCgWBlW6; 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 S1729426AbeK3CJl (ORCPT + 99 others); Thu, 29 Nov 2018 21:09:41 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:35219 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729272AbeK3CJl (ORCPT ); Thu, 29 Nov 2018 21:09:41 -0500 Received: by mail-it1-f194.google.com with SMTP id p197so4085822itp.0 for ; Thu, 29 Nov 2018 07:04:01 -0800 (PST) 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=bI4HsTozHcvKlx21ofCkvErvo0kkxXchTu8M4Q9Rfmk=; b=aCgWBlW6r7XnKBwCC3+p8hUPwbQ95DiUjF3m0afpyzSd1x17E/g2hKvmuK144deVSb azA78b5dTtBRjtWGTACS5ysMnNFNYTTqI8x3VEW4XWV2pvQr/Kv7bLeEuDYHdie/zxg/ PyO8oknLC/PwONOTZRzuK0LO7WLWWMhK4Z/o0= 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=bI4HsTozHcvKlx21ofCkvErvo0kkxXchTu8M4Q9Rfmk=; b=f4AQ680S9XAhVqeQAVj+K7wr8K/sLi6AVkMSWBgXV2EKkAprDqcpcO13jjQqHLFj9z fixC8XwH2kbi37LspchiGk6epmRbrCUOB8tSqQ8vIADFIXnjSDETI95a+gqXiMJO2cW0 FXPWHOFIP37VI0MsbYDpOPbfKoAUkOeBTJXfyaiFMCs16I6+DlaVRbsQBJxL4oBsoN56 v3k4aWq1WZ9WM4N4ny9gIqjgg8zsPehCKxfi6oPnJnF2SJLxvGjV5Efngz7tU+oM/AzW 97rZ1+Zx3f12UWcu33cyYIMvwT5XPPmNOnLly5dUOZvGOgTmurYOuk/yJJfiHrWJl5tM qteQ== X-Gm-Message-State: AA+aEWbU8GusFFyPszcs9Mw98dt9F8+PiVqSIZfLHrup/BuBPKvi+yLm 7bnsA/jH+OJyv6asLwQVGr+2Hjf7m2BoOCSga8gu6g== X-Received: by 2002:a24:710:: with SMTP id f16mr1586772itf.121.1543503841377; Thu, 29 Nov 2018 07:04:01 -0800 (PST) MIME-Version: 1.0 References: <20181129140106.520639693@linuxfoundation.org> <20181129140109.438834361@linuxfoundation.org> <20181129150221.GB22451@kroah.com> In-Reply-To: <20181129150221.GB22451@kroah.com> From: Ard Biesheuvel Date: Thu, 29 Nov 2018 16:03:49 +0100 Message-ID: Subject: Re: [PATCH 4.9 39/92] efi/arm: Revert deferred unmap of early memmap mapping To: Greg Kroah-Hartman Cc: Linux Kernel Mailing List , stable , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , linux-efi , Ingo Molnar , sashal@kernel.org 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 Thu, 29 Nov 2018 at 16:02, Greg Kroah-Hartman wrote: > > On Thu, Nov 29, 2018 at 03:28:44PM +0100, Ard Biesheuvel wrote: > > On Thu, 29 Nov 2018 at 15:21, Greg Kroah-Hartman > > wrote: > > > > > > 4.9-stable review patch. If anyone has any objections, please let me know. > > > > > > ------------------ > > > > > > [ Upstream commit 33412b8673135b18ea42beb7f5117ed0091798b6 ] > > > > > > Commit: > > > > > > 3ea86495aef2 ("efi/arm: preserve early mapping of UEFI memory map longer for BGRT") > > > > > > deferred the unmap of the early mapping of the UEFI memory map to > > > accommodate the ACPI BGRT code, which looks up the memory type that > > > backs the BGRT table to validate it against the requirements of the UEFI spec. > > > > > > Unfortunately, this causes problems on ARM, which does not permit > > > early mappings to persist after paging_init() is called, resulting > > > in a WARN() splat. Since we don't support the BGRT table on ARM anway, > > > let's revert ARM to the old behaviour, which is to take down the > > > early mapping at the end of efi_init(). > > > > > > Signed-off-by: Ard Biesheuvel > > > Cc: Linus Torvalds > > > Cc: Peter Zijlstra > > > Cc: Thomas Gleixner > > > Cc: linux-efi@vger.kernel.org > > > Fixes: 3ea86495aef2 ("efi/arm: preserve early mapping of UEFI memory ...") > > > > This commit is only in v4.19 as far as I know. Does it even apply? > > This commit is in the following releases: > 4.9.129 4.14.72 4.18.10 4.19 > > so it should apply :) > Ah, of course. I didn't realize (or failed to remember) that it had been taken into -stable. Thanks,