FYI, we noticed the following commit (built with gcc-7): commit: 642a312d47ceb54603630d9d04f5052f3b46d9a3 ("compiler.h: Split {READ,WRITE}_ONCE definitions out into rwonce.h") https://git.kernel.org/cgit/linux/kernel/git/will/linux.git lto in testcase: bpf_offload with following parameters: on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag Reported-by: kernel test robot KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-7.6-642a312d47ceb54603630d9d04f5052f3b46d9a3 2019-11-12 15:37:58 cd / 2019-11-12 15:38:49 cd /usr/src/linux-selftests-x86_64-rhel-7.6-642a312d47ceb54603630d9d04f5052f3b46d9a3/tools/testing/selftests make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-7.6-642a312d47ceb54603630d9d04f5052f3b46d9a3/tools/bpf' Auto-detecting system features: ... libbfd: [ on ] ... disassembler-four-args: [ OFF ] CC bpf_jit_disasm.o LINK bpf_jit_disasm CC bpf_dbg.o Makefile:61: recipe for target 'bpf_dbg.o' failed make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-7.6-642a312d47ceb54603630d9d04f5052f3b46d9a3/tools/bpf' To reproduce: # build kernel cd linux cp config-5.4.0-rc6-00001-g642a312d47ceb .config make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Rong Chen