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.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 DF57BC2BA2B for ; Thu, 9 Apr 2020 11:25:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE84F20BED for ; Thu, 9 Apr 2020 11:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586431532; bh=pZaCgk4fe9qVDezZmFxHsQI5ERTJ0fxa4TeJSZBvIMI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=ezgDrnRsfBNfWW1oPcjIT2D3EVAIrOULXgnQwv1z/EjA/4S/7lXfAgiLrzx34wv5U QpIhSGCUs3vV/S0/uEFX7ZCttidLJk89Ui7fFnOPvVQGZhLwfZQrD+Hud1+vjYTefw Vyv+o8gIj8Hzd4XuOU2RYhiv9+cVCriLIAfJCBZA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726571AbgDILZb (ORCPT ); Thu, 9 Apr 2020 07:25:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:43436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbgDILZb (ORCPT ); Thu, 9 Apr 2020 07:25:31 -0400 Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (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 3439821655; Thu, 9 Apr 2020 11:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586431531; bh=pZaCgk4fe9qVDezZmFxHsQI5ERTJ0fxa4TeJSZBvIMI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WVv8TH180MosttzZ7CrKsHsa+98uqe9Si2Nn/uy58C3wDVJ2cAyGh2IIHpqmmB4gz 02uPIp2bCK0k3pZ+QmVBm/VOD0abv1lgFBRsnLLD96VM0AgyOS6uHeNqdsQlmxILtq 6bJ3lVvFp+jYtV0zqOgXRN9nsQfMfudTI7GdJHHM= Received: by mail-io1-f41.google.com with SMTP id h6so3405581iok.11; Thu, 09 Apr 2020 04:25:31 -0700 (PDT) X-Gm-Message-State: AGi0PubcGRDMCYLMgJ2TfSmdRU52Fg2ginWLACIDYqEMMcZYSHZt7V4u XUmfzLNOkbMI95kN4VCx7JAnOaW+FS+45zy2KOQ= X-Google-Smtp-Source: APiQypJUNHXZ7kzlhiVsDGZYvX1sItKiakzaHFgIAx5133GDf10QUpQHJoK5litM/tSHaUhi9lwMy04JBweQTmlcUC0= X-Received: by 2002:a5e:8b47:: with SMTP id z7mr11257862iom.16.1586431530471; Thu, 09 Apr 2020 04:25:30 -0700 (PDT) MIME-Version: 1.0 References: <20200113172245.27925-1-ardb@kernel.org> <20200113172245.27925-6-ardb@kernel.org> <63b125a4-6c62-fcdf-de22-d3bebe2dcbf5@suse.cz> <972b66a9-92c7-9a15-1aa1-e3236abe90df@suse.cz> <20200409080626.GV5951@GaryWorkstation> <984a2b3c-a9d4-e733-6372-4abf0f99be1f@suse.cz> In-Reply-To: From: Ard Biesheuvel Date: Thu, 9 Apr 2020 13:25:18 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 05/13] efi/x86: don't map the entire kernel text RW for mixed mode To: Jiri Slaby Cc: Gary Lin , linux-efi , Ingo Molnar , Thomas Gleixner , Linux Kernel Mailing List , Anshuman Khandual , Arnd Bergmann , Dan Williams , Dave Young , Saravana Kannan Content-Type: text/plain; charset="UTF-8" Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org On Thu, 9 Apr 2020 at 13:08, Ard Biesheuvel wrote: > > On Thu, 9 Apr 2020 at 12:45, Ard Biesheuvel wrote: > > > > On Thu, 9 Apr 2020 at 12:09, Jiri Slaby wrote: > > > > > > On 09. 04. 20, 11:09, Ard Biesheuvel wrote: > > > > On Thu, 9 Apr 2020 at 10:36, Jiri Slaby wrote: > > > >> > > > >> On 09. 04. 20, 10:19, Ard Biesheuvel wrote: > > > >>>>>> $ rpm -qlp ~/Downloads/ovmf-202002-1.1.i586.rpm > > > >>>>>> warning: /home/ardbie01/Downloads/ovmf-202002-1.1.i586.rpm: Header V3 > > > >>>>>> RSA/SHA256 Signature, key ID 3dbdc284: NOKEY > > > >>>>>> /usr/share/doc/packages/ovmf > > > >>>>>> /usr/share/doc/packages/ovmf/README > > > >>>>> > > > >>>>> Hmmm, it's weird that OBS doesn't list all derived files. > > > >>>>> Anyway, the ia32 ovmf is available in > > > >>>>> http://download.opensuse.org/tumbleweed/repo/oss/noarch/qemu-ovmf-ia32-202002-1.1.noarch.rpm > > > >>>> > > > >>>> It indeed does: > > > >>>> https://build.opensuse.org/package/binaries/openSUSE:Factory/ovmf/standard > > > >>>> > > > >>>> Note that the ia32 version is noarch, built on i586. > > > >>>> > > > >>> > > > >>> I am not able to reproduce this issue using the linked firmware image > > > >>> and a 5.6 x86_64_defconfig with efivarfs built in. > > > >> > > > >> Yeah, I had to use the distro config too. Not sure what the trigger is. > > > >> Maybe some NUMA configs or something. > > > >> > > > >>> Could anyone share the full log, please, along with the kernel config > > > >>> that was used? > > > >> > > > >> Both uploaded: > > > >> http://decibel.fi.muni.cz/~xslaby/err/ > > > >> > > > > > > > > With the same config, I am still not seeing the issue. > > > > > > > > > > > >> Note that I switched the for-me-necessary =m configs to =y. So that it > > > >> is enough to build bzImage, w/o modules... > > > >> > > > > > > > > Could you please try running it again with CONFIG_EFI_PGT_DUMP=y enabled? > > > > > > No problem: > > > http://decibel.fi.muni.cz/~xslaby/err/dmesg2.txt > > > > > > > In the mean time, I will try to install Tumbleweed from scratch. Do > > > > you have any steps I could follow to reproduce your setup? > > > > > > Not really, just installed TW 64-bit and used efi and grub 32 bit. > > > > > > > OK, so you installed using a 64-bit EFI, and then switched to a 32-bit > > one? Or is there a special mixed-mode capable installer? > > > > (The ones I found are x86_64 only) > > OK, I have managed to install tumbleweed into a 64-bit VM with 64-bit GRUB. > > Could you give any instructions how to convert to 32-bit GRUB please? Never mind - I managed to switch. I still don't see the issue though :-(