From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vs1-f50.google.com (mail-vs1-f50.google.com [209.85.217.50]) by mx.groups.io with SMTP id smtpd.web10.43716.1689004708008262853 for ; Mon, 10 Jul 2023 08:58:28 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=LfUhKZz2; spf=pass (domain: gmail.com, ip: 209.85.217.50, mailfrom: pedro.falcato@gmail.com) Received: by mail-vs1-f50.google.com with SMTP id ada2fe7eead31-440b53841a4so972675137.3 for ; Mon, 10 Jul 2023 08:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689004707; x=1691596707; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=twZdQKCXlxxFR3Pw1d19syohTzzpruCl/LWaaI5yG3s=; b=LfUhKZz2/40GHUDAl07QTrsFd8GgIEF/r8flmJR6Jkcfe/Y35ZamBXt3K1YsdtdImf hOKdG8K/C7LqoMdvx9vSB7NE4bRrQT2UdNodblEkqByX6bQKaUwYCg96qXup5sXM2CCR w3aQNdckU04uPYbmg+u9UcpzWbajbZ4KBWQRiheEnJo51hfyDyMnr21WAnGSUEA5wsBR 4cc14F7d1NHiAng8J7tD3twWRoLcagjsYiyi5G7ostkV6xyJuAEniym8RqEyw2xof7DH PrKS/9VLHtymZSpDA71vtaDRc6KcaWj5+4E9iMH7twS6beSZrSEjBKx+TbtPjDd6F3Yn GDdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689004707; x=1691596707; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=twZdQKCXlxxFR3Pw1d19syohTzzpruCl/LWaaI5yG3s=; b=IZGpEwqoVerpQvnfxGl+qqO6kA4DfvlS01UWn6NMVBWkwIeONielgXHQTv1imYyPx2 pPSYkJWry1+t+e2sJ/2lC98Cdcn4aLOXhHa7e0J9c5vakKNlp6v8teaORzNMQaGC9opk 2D+qqdeueDys2PpwMHU7rdoXTqih7shCu55ODqQ1gQfYUIKPpl95CKTQ8WL7Co9yDYq7 Nb6jHHpz6KysYkvU+Qd6LC3Rp7/2cLjljieJs7QlZ5MyBR9w/oh83ugPeE1mMn4W4G8U aTL9O/MvrAltQds8WX6h2RxgObyrOofpIWwWX0Hel7GzWttlzg5iIPeSpOT2n/zeFHpc w+Yg== X-Gm-Message-State: ABy/qLYpmUjmKke1o5pTdS8mRsnjmoFwA8G+57Rx5evMrP1AuQZhDaOY qLlsQ8yThbOuFx5i4YOwhzWON7tIUvT9qWfWvelJaGd9 X-Google-Smtp-Source: APBJJlHPv0EpHlCKEBv5PB/xI4bkYqOGtiybNR7TDkQTJruQ2KUA6S2DH0xrUPJ5M/V2S0ahBxvd+CEdU8W1nG99Gk8= X-Received: by 2002:a67:fb5a:0:b0:444:d19c:8ff5 with SMTP id e26-20020a67fb5a000000b00444d19c8ff5mr3837688vsr.30.1689004706747; Mon, 10 Jul 2023 08:58:26 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Pedro Falcato" Date: Mon, 10 Jul 2023 16:58:15 +0100 Message-ID: Subject: Re: [edk2-devel] ArmVirtPkg: non-executable EFI_LOADER_DATA breaks GRUB on Ubuntu 22.04 To: devel@edk2.groups.io, osy@turing.llc Cc: Ard Biesheuvel , Gerd Hoffmann , Leif Lindholm , dann frazier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jul 10, 2023 at 2:28=E2=80=AFPM wrote: > > I have an existing install of Ubuntu 22.04 on a QEMU virtual machine whic= h I've decided to update the UEFI firmware. After doing so, GRUB no longer = boots ("Synchronous Exception" message seen). After a git bisect session, I= found the problematic 2997ae38739756ecba9b0de19e86032ebc689ef9. The commen= t says GRUB should have been fixed in 2017, but for one reason or another, = my VM which was built in 2022 still had the issue. Regardless, I don't thin= k it's a good idea to break GRUB, even if it's fixed in 2017. In the very l= east, a better error message would be preferable to crashing with an "Synch= ronous Exception." Googling this error message shows that other people may = be hitting this issue as well but the vague error symptom means its impossi= ble to know if it's the same issue or not. +CC Some of the folks involved in the original discussion In the original thread, people discussed some alternative behavior to just crashing on a NX fault. Is this still an alternative? I'm kind of thinking this should be addressed by distros anyway.... How is $CURRENT_YEAR Ubuntu still shipping bad GRUBs? I know the situation around GRUB and distro patching is complicated but... Do we have any idea of how many distros/GRUBs are affected by this? Personally, I would like to avoid loosening up memory permissions. -- Pedro