Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4515137pxv; Tue, 20 Jul 2021 05:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCF3y8Pv+9GJHNred+OMwOM2k7D2HJoot8lYSRDowRUOEnAsx4Wu+7iiF4+y+nO2yRt4oP X-Received: by 2002:a05:6638:3181:: with SMTP id z1mr26142928jak.100.1626784897320; Tue, 20 Jul 2021 05:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626784897; cv=none; d=google.com; s=arc-20160816; b=t+r2cRKPyF211HH3/evFvDIPBKXbEvdBham/t5/T7hW4UmqWZt9q0Tia/UXVaY05cJ eCWWuoT3zO0KV4xArZuYC1ISmWmAVDDtEGSIth3s/OqaBn4ZwIGlpq+u9eAuBgRx03R+ q2Z7zA2SQEL6aPlo8wPOBIJ4vaiSWow/eieOs/CZRmJp7T8ZPTg9keGYK5NJVtP5L8vM 8lp8ma9ZJ87vBNm9ZpvpxpaSbRG0v7GEFqs5W/lXLEAXR5JYcLgENP1JYtoG4AR/4NR9 7w89HEwsnBZoNqJh0bsPyqifrxfRqmSHGx8ZXa+55c9kuQV9mUgr/HuMQpwSeEd3iWJR XENg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HGwEiJH71Voht3CFsErbX7S1cTcj1RNkjkWszXrSnf0=; b=bG0H3NJu+o0b7nxTkXPrjAddQUxJjZ9HwtJLclo7XsNKg41J/kwh/FSFDRUXfUtzF2 wamAnzz+rrUpT4EynaADBsHBo27z8GFQcH/UI0D9pd9Yr6f8oK9o8VQMOApfEJ1PZVI/ KCrcaIkbQZxkeBdfz11aBJHmoW+JQOm0PLNTTm/XOhpqIAYSlE1JeHtzySnkJQwRtS53 xczY1l3C3dklclCnMjtUvM+ZzFHUqwgOd6SQuLdKsVH/KzjzoHipFhMrQt9BYIx5qIAM EVrSDtI+oKjamuwaw9nwFLb3DT7JQ/UhwYPqp2tnmpDdnAjfu8LZaeyXh0Viv2uKZROb /O2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i2UbOfBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si10441924iow.49.2021.07.20.05.41.25; Tue, 20 Jul 2021 05:41:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i2UbOfBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237755AbhGTMAA (ORCPT + 99 others); Tue, 20 Jul 2021 08:00:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:40816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236193AbhGTL72 (ORCPT ); Tue, 20 Jul 2021 07:59:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 14A2E61209 for ; Tue, 20 Jul 2021 12:40:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626784807; bh=j5yVgUcbPHo9edWrwfukxKJRljArTBYReyh1q8GZdBs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=i2UbOfBgZahLU5oZHcy8xfhCmwtSLiE38CoeUbTaM7a0Qyjd+lynHPFItMnu+awu2 XPzU9u6C83A5j/HsVvQKQM7NGPcMdlKhWJmInEsgppF4iKBbxGE3gxWxyQ+TAZ0+If rzulp6ApCaalvE6Z/fiO9gNNPW/QTEXXv00ezjjs9JpQv6wN3h11+G5hqBcNM/LLWN kL1beiTmW3cS7Fydh4+JQTM6YEYmhGXH5DvL8BZugsu604aShJQjQbB9aeFeRNaSPb 5zv8b0pAXQiagXtKsl353tcPqUb7zO2Z57pLVdG5q6eRmUHgxRy1ZzwHpokaXcgy9H zdgGmMK98H4cA== Received: by mail-oi1-f172.google.com with SMTP id y66so14908876oie.7 for ; Tue, 20 Jul 2021 05:40:07 -0700 (PDT) X-Gm-Message-State: AOAM533BVzqrPk5oM7vty8lEz6xvO9snHk7rBJftsdVT4SwzvllkhpNV 4poX4kfZ3KbRBIzEUjNVffTCz0y3wZmWvjGYwmM= X-Received: by 2002:aca:4c49:: with SMTP id z70mr20356509oia.174.1626784806378; Tue, 20 Jul 2021 05:40:06 -0700 (PDT) MIME-Version: 1.0 References: <20210720123512.8740-1-will@kernel.org> In-Reply-To: <20210720123512.8740-1-will@kernel.org> From: Ard Biesheuvel Date: Tue, 20 Jul 2021 14:39:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] Fix arm64 boot regression in 5.14 To: Will Deacon Cc: Linux Kernel Mailing List , Michael Ellerman , Thomas Gleixner , Benjamin Herrenschmidt , Christophe Leroy , Paul Mackerras , Jonathan Marek , Catalin Marinas , Andrew Morton , Mike Rapoport , Mark Rutland , Geert Uytterhoeven , Marc Zyngier , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , Linux ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Jul 2021 at 14:35, Will Deacon wrote: > > Hi folks, > > Jonathan reports [1] that commit c742199a014d ("mm/pgtable: add stubs > for {pmd/pub}_{set/clear}_huge") breaks the boot on arm64 when huge > mappings are used to map the kernel linear map but the VA size is > configured such that PUDs are folded. This is because the non-functional > pud_set_huge() stub is used to create the linear map, which results in > 1GB holes and a fatal data abort when the kernel attemps to access them. > > Digging further into the issue, it also transpired that huge-vmap is > silently disabled in these configurations as well [2], despite working > correctly in 5.13. The latter issue causes the pgtable selftests to > scream due to a failing consistency check [3]. > > Rather than leave mainline in a terminally broken state for arm64 while > we figure this out, revert the offending commit to get things working > again. Unfortunately, reverting the change in isolation causes a build > breakage for 32-bit PowerPC 8xx machines which recently started relying > on the problematic stubs to support pte-level huge-vmap entries [4]. > Since Christophe is away at the moment, this series first reverts the > PowerPC 8xx change in order to avoid breaking the build. > > I would really like this to land for -rc3 and I can take these via the > arm64 fixes queue if the PowerPC folks are alright with them. > > Cheers, > > Will > > [1] https://lore.kernel.org/r/20210717160118.9855-1-jonathan@marek.ca > [2] https://lore.kernel.org/r/20210719104918.GA6440@willie-the-truck > [3] https://lore.kernel.org/r/CAMuHMdXShORDox-xxaeUfDW3wx2PeggFSqhVSHVZNKCGK-y_vQ@mail.gmail.com/ > [4] https://lore.kernel.org/r/8b972f1c03fb6bd59953035f0a3e4d26659de4f8.1620795204.git.christophe.leroy@csgroup.eu/ > > Cc: Ard Biesheuvel > Cc: Michael Ellerman > Cc: Thomas Gleixner > Cc: Benjamin Herrenschmidt > Cc: Christophe Leroy > Cc: Paul Mackerras > Cc: Jonathan Marek > Cc: Catalin Marinas > Cc: Andrew Morton > Cc: Nicholas Piggin Cc: Mike Rapoport > Cc: Mark Rutland > Cc: Geert Uytterhoeven > Cc: Marc Zyngier > Cc: linuxppc-dev@lists.ozlabs.org > Cc: linux-arm-kernel@lists.infradead.org > > --->8 > > Jonathan Marek (1): > Revert "mm/pgtable: add stubs for {pmd/pub}_{set/clear}_huge" > > Will Deacon (1): > Revert "powerpc/8xx: add support for huge pages on VMAP and VMALLOC" > Reviewed-by: Ard Biesheuvel > arch/arm64/mm/mmu.c | 20 ++++----- > arch/powerpc/Kconfig | 2 +- > arch/powerpc/include/asm/nohash/32/mmu-8xx.h | 43 -------------------- > arch/x86/mm/pgtable.c | 34 +++++++--------- > include/linux/pgtable.h | 26 +----------- > 5 files changed, 25 insertions(+), 100 deletions(-) > > -- > 2.32.0.402.g57bb445576-goog >