lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 22 Mar 2019 17:08:52 +0800
From:   kernel test robot <>
To:     Alexey Dobriyan <>
Subject: [static_assert] d94e96122a: bpf_jit_disasm.c: undefined reference to

FYI, we noticed the following commit (built with gcc-7):

commit: d94e96122a4778c029ef08ffc0a8b315a48a30f5 ("[PATCH] static_assert: move before people start using it")

in testcase: bpf_offload
with following parameters:

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 4G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):

/usr/src/perf_selftests-x86_64-rhel-7.6-d94e96122a4778c029ef08ffc0a8b315a48a30f5/tools/bpf/bpf_jit_disasm.c: In function ‘get_exec_path’:
/usr/src/perf_selftests-x86_64-rhel-7.6-d94e96122a4778c029ef08ffc0a8b315a48a30f5/tools/bpf/bpf_jit_disasm.c:44:2: warning: implicit declaration of function ‘assert’ [-Wimplicit-function-declaration]
bpf_jit_disasm.o: In function `get_asm_insns':
bpf_jit_disasm.c:(.text+0x78): undefined reference to `assert'
bpf_jit_disasm.c:(.text+0xb6): undefined reference to `assert'
bpf_jit_disasm.c:(.text+0xcc): undefined reference to `assert'
bpf_jit_disasm.c:(.text+0x134): undefined reference to `assert'
bpf_jit_disasm.o: In function `main':
bpf_jit_disasm.c:(.text.startup+0x1b9): undefined reference to `assert'
bpf_jit_disasm.o:bpf_jit_disasm.c:(.text.startup+0x1e7): more undefined references to `assert' follow
collect2: error: ld returned 1 exit status
make: *** [bpf_jit_disasm] Error 1
failed to prepare_for_bpf
  /lkp/lkp/src/lib/ die
  /lkp/lkp/src/tests/bpf_offload:35: main

To reproduce:

        # build kernel
	cd linux
	cp config-5.0.0-10154-gd94e961 .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 bzImage

        git clone
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email

Rong Chen

View attachment "config-5.0.0-10154-gd94e961" of type "text/plain" (192621 bytes)

View attachment "job-script" of type "text/plain" (5063 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (15444 bytes)

View attachment "bpf_offload" of type "text/plain" (842 bytes)

View attachment "stderr" of type "text/plain" (1071 bytes)

Powered by blists - more mailing lists