From 1ce28e5a248b15e278e8585c154c38c31574ca83 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 4 Apr 2024 23:42:45 +0100 Subject: [PATCH] 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 --- meson.build | 1 + 1 file changed, 1 insertion(+) 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',