[Bug 1863260] Re: gcc-9 in Ubuntu generate unbootable xen hypervisor
** Changed in: gcc-9 (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863260 Title: gcc-9 in Ubuntu generate unbootable xen hypervisor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1863260] Re: gcc-9 in Ubuntu generate unbootable xen hypervisor
We have found a fix for the issue now. There was one part of the hypervisor build which does use completely different flags. In particular it does not use -mindirect-branch, so it will not fail if cf- protection is turned on (this is under xen/arch/x86/boot and uses a buikd32.mk for setting flags). After adding -fcf-protection=none to build32.mk as well, the resulting hypervisor binary boots. @doko, just one additional observation: the documentation sounds a bit like -mindirect-branch=thunk-external is only incompatible with -fcf- protection=full|branch but practically it seems only none is accepted. That might be correct or not, I am not sure. Think after all, we can close this as invalid (for gcc-9). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863260 Title: gcc-9 in Ubuntu generate unbootable xen hypervisor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1863260] Re: gcc-9 in Ubuntu generate unbootable xen hypervisor
Advice how to disable cf-protaction when enabled by default was taken from: https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-fcf-protection -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863260 Title: gcc-9 in Ubuntu generate unbootable xen hypervisor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1863260] Re: gcc-9 in Ubuntu generate unbootable xen hypervisor
While modifying gcc I had the feeling that maybe -fno-cf-protection might be a valid flag, too. Should that be the same as -fcf- protection=none? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863260 Title: gcc-9 in Ubuntu generate unbootable xen hypervisor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1863260] Re: gcc-9 in Ubuntu generate unbootable xen hypervisor
I have re-compiled gcc-9 from Focal after adding it to the list of releases which do not enable cf-protection by default. Then compiled Xen from Focal with that compiler. And it does boot! # xen info host : argabuthon release: 5.4.0-14-generic version: #17-Ubuntu SMP Thu Feb 6 22:47:59 UTC 2020 machine: x86_64 nr_cpus: 8 max_cpu_id : 15 nr_nodes : 2 cores_per_socket : 8 threads_per_core : 1 cpu_mhz: 2000.014 hw_caps: 178bf3ff:80802001:ee500800:000837ff::::0100 virt_caps : hvm total_memory : 32766 free_memory: 29333 sharing_freed_memory : 0 sharing_used_memory: 0 outstanding_claims : 0 free_cpus : 0 xen_major : 4 xen_minor : 11 xen_extra : .4-pre xen_version: 4.11.4-pre xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params: virt_start=0x8000 xen_changeset : xen_commandline: placeholder dom0_max_vcpus=4 dom0_vcpus_pin=true dom0_mem=3072M,max:3072M loglvl=all guest_loglvl=all hvm_debug=0 com2=115200,8n1 console=com2,vga cc_compiler: gcc (Ubuntu 9.2.1-30ubuntu2+nocfprot1) 9.2.1 20200228 cc_compile_by : ubuntu-devel-di cc_compile_domain : lists.ubuntu.com cc_compile_date: Tue Mar 3 07:31:57 UTC 2020 build_id : e9eeb5132ed2948c175c17be4b1c47edded6d7be xend_config_format : 4 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863260 Title: gcc-9 in Ubuntu generate unbootable xen hypervisor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1863260] Re: gcc-9 in Ubuntu generate unbootable xen hypervisor
** Tags added: aeppelwoi -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863260 Title: gcc-9 in Ubuntu generate unbootable xen hypervisor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1863260] Re: gcc-9 in Ubuntu generate unbootable xen hypervisor
** Attachment added: "Xen 4.11 Hypervisor compiled on Ubuntu" https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+attachment/5328175/+files/xen-hv-ubuntu.gz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863260 Title: gcc-9 in Ubuntu generate unbootable xen hypervisor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1863260] Re: gcc-9 in Ubuntu generate unbootable xen hypervisor
** Attachment added: "Xen 4.11 Hypervisor compiled on Debian" https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+attachment/5328176/+files/xen-hv-debian.gz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1863260 Title: gcc-9 in Ubuntu generate unbootable xen hypervisor To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/1863260/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs