From: Luca Boccassi Date: Thu, 4 Apr 2024 22:42:45 +0000 (+0100) Subject: meson: set -fno-ssa-phiopt when building bpf with gcc X-Git-Tag: v256-rc1~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ce28e5a248b15e278e8585c154c38c31574ca83;p=thirdparty%2Fsystemd.git meson: set -fno-ssa-phiopt when building bpf with gcc There are bugs in the kernel verifier that cause legitimate code to be rejected, disabling this optimization makes bpf programs built with a new enough gcc work again. Fixes https://github.com/systemd/systemd/issues/31888 --- diff --git a/meson.build b/meson.build index f4b382c6023..1c4cac82c11 100644 --- a/meson.build +++ b/meson.build @@ -1701,6 +1701,7 @@ if conf.get('BPF_FRAMEWORK') == 1 bpf_gcc_flags = [ '-std=gnu11', '-fno-stack-protector', + '-fno-ssa-phiopt', '-O2', '-mcpu=v3', '-mco-re',