lists.openwall.net   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  linux-hardening  linux-cve-announce  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 <rong.a.chen@...el.com>
To:     Alexey Dobriyan <adobriyan@...il.com>
Cc:     akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
        linux@...musvillemoes.dk, lkp@...org
Subject: [static_assert] d94e96122a: bpf_jit_disasm.c: undefined reference to
 `assert'

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

commit: d94e96122a4778c029ef08ffc0a8b315a48a30f5 ("[PATCH] static_assert: move before people start using it")
url: https://github.com/0day-ci/linux/commits/Alexey-Dobriyan/static_assert-move-before-people-start-using-it/20190311-050701


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]
  assert(path);
  ^~~~~~
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/debug.sh:7: die
  /lkp/lkp/src/tests/bpf_offload:35: main
  :0: 




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 https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email



Thanks,
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ