From nobody Sat Apr 20 03:02:12 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=canonical.com ARC-Seal: i=1; a=rsa-sha256; t=1584618679; cv=none; d=zohomail.com; s=zohoarc; b=Uqtx0+9DN6QaUBVmrOY3+L9k3/y+QwznC0C23sW1CizMwfd1LAF7FRngFcpLyUb7OkPPKestZoVUNo3Ob0MXpU8gPYx1sOsivOWQiWN71Vg4JZVcWsoUvO3Lk2y6LyeEaRLYbjxqTxvawr0XE4dh60nwZOMnZg39IOiqlLyaRT8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584618679; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Subject:To; bh=ZwAaI48ePTTUJ8o5Qg9tw6M5DJHX+nrY15Hn5DuU8mQ=; b=AaV3L44SLMfcilEXBVXwAkzPifHnLknrxwoycwDuTscxNfPixYwijf9+URY23FetOddz9LjaRtLLMQGCWtHCOF3pl8QBHVuVT3wpN7flsiTLVhotePxtPDyOZx4irLm4Gs/6P8VH2MYUrmB0J4YFeAIM+bfzWuPx/y5Smwc2NJs= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.com: 78.46.105.101 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1584618679891975.7692943634067; Thu, 19 Mar 2020 04:51:19 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 48EEFB01B44; Thu, 19 Mar 2020 11:51:15 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 62C93B01B34 for ; Thu, 19 Mar 2020 11:51:04 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jEtRc-0005K9-TC; Thu, 19 Mar 2020 11:34:36 +0000 From: Christian Ehrhardt To: seabios@seabios.org Date: Thu, 19 Mar 2020 12:34:34 +0100 Message-Id: <20200319113434.5610-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 Message-ID-Hash: IXAWMA2HWW75LSR3NBBYQKWT3TI5WVVP X-Message-ID-Hash: IXAWMA2HWW75LSR3NBBYQKWT3TI5WVVP X-MailFrom: christian.ehrhardt@canonical.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: doko@ubuntu.com X-Mailman-Version: 3.3.1 Precedence: list Subject: [SeaBIOS] [PATCH] build: use -fcf-protection=none when available List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ++++ X-Spam-Level: **** Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org Content-Type: text/plain; charset="utf-8" Some hardened gcc v9 compilers (such as the one in Ubuntu) default this option which for seabios leads to emulation errors when running in KVM (does not trigger in TCG) on older intel chips of the Penryn generation (~2006-2008). Symptom in KVM looks like: KVM internal error. Suberror: 1 emulation failure EAX=3D00000000 EBX=3D00000000 ECX=3D000086d4 EDX=3D00000000 ESI=3D00000000 EDI=3D00000000 EBP=3D000086d4 ESP=3D00006d7c EIP=3D00007acf EFL=3D00000002 [-------] CPL=3D0 II=3D0 A20=3D1 SMM=3D0 HL= T=3D0 ES =3D0000 00000000 ffffffff 00809300 CS =3Df000 000f0000 ffffffff 00809b00 SS =3D0000 00000000 ffffffff 00809300 DS =3D0000 00000000 ffffffff 00809300 FS =3D0000 00000000 ffffffff 00809300 GS =3D0000 00000000 ffffffff 00809300 LDT=3D0000 00000000 0000ffff 00008200 TR =3D0000 00000000 0000ffff 00008b00 GDT=3D 000f6200 00000037 IDT=3D 00000000 000003ff CR0=3D00000010 CR2=3D00000000 CR3=3D00000000 CR4=3D00000000 DR0=3D0000000000000000 DR1=3D0000000000000000 DR2=3D0000000000000000 DR3=3D0000000000000000 DR6=3D00000000ffff0ff0 DR7=3D0000000000000400 EFER=3D0000000000000000 Code=3Db8 90 d9 00 00 66 e8 6b f7 ff ff 66 b8 0a 00 00 00 e9 61 f2 0f 1e fb 66 57 66 56 66 53 66 53 66 89 c7 67 66 89 14 24 66 89 ce 66 e8 15 f8 ff ff 88 URL: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1866870 Signed-off-by: Christian Ehrhardt --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5f7d5370..9e8188e5 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ COMMONCFLAGS +=3D $(call cc-option,$(CC),-fno-stack-prote= ctor,) COMMONCFLAGS +=3D $(call cc-option,$(CC),-fno-stack-protector-all,) COMMONCFLAGS +=3D $(call cc-option,$(CC),-fstack-check=3Dno,) COMMONCFLAGS +=3D $(call cc-option,$(CC),-Wno-address-of-packed-member,) +COMMONCFLAGS +=3D $(call cc-option,$(CC),-fcf-protection=3Dnone,) COMMA :=3D , =20 CFLAGS32FLAT :=3D $(COMMONCFLAGS) -DMODE16=3D0 -DMODESEGMENT=3D0 --=20 2.25.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org