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>] [day] [month] [year] [list]
Message-ID: <20191107085711.GT29418@shao2-debian>
Date:   Thu, 7 Nov 2019 16:57:11 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Jiri Pirko <jiri@...lanox.com>
Cc:     "David S. Miller" <davem@...emloft.net>,
        LKML <linux-kernel@...r.kernel.org>,
        Stephen Rothwell <sfr@...b.auug.org.au>, lkp@...ts.01.org
Subject: [netdevsim]  82c93a87bf:
 stderr.Exception:Command_failed:cat/sys/kernel/debug/netdevsim/netdevsim0//ports/#/dev/health/break_health

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

commit: 82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f ("netdevsim: implement couple of testing devlink health reporters")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

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 <rong.a.chen@...el.com>



user  :notice: [   90.721630] make[1]: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/lib/bpf'

user  :notice: [  104.667498] gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated  -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program -I. -I/usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf -Iverifier    test_verifier.c /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_stub.o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/libbpf.a -lcap -lelf -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_verifier

user  :notice: [  127.338282] gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated  -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program    test_tag.c /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_stub.o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/libbpf.a -lcap -lelf -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_tag

user  :notice: [  150.526255] gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated  -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program -I. -I/usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf    test_maps.c /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_stub.o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/libbpf.a map_tests/sk_storage_map.c -lcap -lelf -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_maps

user  :notice: [  172.945115] gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated  -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program    test_lru_map.c /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_stub.o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/libbpf.a -lcap -lelf -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_lru_map

user  :notice: [  195.631961] gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated  -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program    test_lpm_map.c /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_stub.o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/libbpf.a -lcap -lelf -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_lpm_map

user  :notice: [  219.304928] gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated  -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program -I. -I/usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf    test_progs.c /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_stub.o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/libbpf.a cgroup_helpers.c trace_helpers.c prog_tests/attach_probe.c prog_tests/stacktrace_map.c prog_tests/raw_tp_writable_test_run.c prog_tests/stacktrace_map_raw_tp.c prog_tests/signal_pending.c prog_tests/sockopt_inherit.c prog_tests/send_signal.c prog_tests/tcp_rtt.c prog_tests/reference_tracking.c prog_tests/bpf_verif_scale.c pro

user  :notice: [  241.753895] gcc -g -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf -I../../../../include/generated  -I../../../include -Dbpf_prog_load=bpf_prog_test_load -Dbpf_load_program=bpf_test_load_program    test_align.c /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_stub.o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/libbpf.a -lcap -lelf -lrt -lpthread -o /usr/src/perf_selftests-x86_64-rhel-7.6-82c93a87bf8bc0cdb5ec2ab99da7d87715ff889f/tools/testing/selftests/bpf/test_align

user  :err   : [  243.094999] Traceback (most recent call last):

user  :err   : [  243.110613]   File "./test_offload.py", line 795, in <module>

user  :err   : [  243.128877]     simdev = NetdevSimDev()

user  :err   : [  243.139218]   File "./test_offload.py", line 362, in __init__

user  :err   : [  243.159005]     self.nsims.append(NetdevSim(self, port_index, ifnames[port_index]))

user  :err   : [  243.172225]   File "./test_offload.py", line 427, in __init__

user  :err   : [  243.182051]     self.dfs_refresh()

user  :err   : [  243.192651]   File "./test_offload.py", line 437, in dfs_refresh

user  :err   : [  243.203608]     self.dfs = DebugfsDir(self.dfs_dir)

user  :err   : [  243.214869]   File "./test_offload.py", line 284, in __init__

user  :err   : [  243.224493]     self._dict = self._debugfs_dir_read(path)

user  :err   : [  243.236106]   File "./test_offload.py", line 319, in _debugfs_dir_read

user  :err   : [  243.245301]     dfs[f] = DebugfsDir(p)

user  :err   : [  243.254277]   File "./test_offload.py", line 284, in __init__

user  :err   : [  243.265037]     self._dict = self._debugfs_dir_read(path)

user  :err   : [  243.282011]   File "./test_offload.py", line 319, in _debugfs_dir_read

user  :err   : [  243.289850]     dfs[f] = DebugfsDir(p)

user  :err   : [  243.297794]   File "./test_offload.py", line 284, in __init__

user  :err   : [  243.306247]     self._dict = self._debugfs_dir_read(path)

user  :err   : [  243.315081]   File "./test_offload.py", line 316, in _debugfs_dir_read

user  :err   : [  243.323298]     _, out = cmd('cat %s/%s' % (path, f))

user  :err   : [  243.331072]   File "./test_offload.py", line 108, in cmd

user  :err   : [  243.339711]     return cmd_result(proc, include_stderr=include_stderr, fail=fail)

user  :err   : [  243.348162]   File "./test_offload.py", line 130, in cmd_result

user  :err   : [  243.357181]     raise Exception("Command failed: %s\n%s" % (proc.args, stderr))

user  :err   : [  243.368421] Exception: Command failed: cat /sys/kernel/debug/netdevsim/netdevsim0//ports/0/dev/health/break_health


user  :err   : [  243.383942] cat: /sys/kernel/debug/netdevsim/netdevsim0//ports/0/dev/health/break_health: Invalid argument



To reproduce:

        # build kernel
	cd linux
	cp config-5.4.0-rc1-00462-g82c93a87bf8bc .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 <bzImage> job-script # job-script is attached in this email



Thanks,
Rong Chen


View attachment "config-5.4.0-rc1-00462-g82c93a87bf8bc" of type "text/plain" (200590 bytes)

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

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

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

Download attachment "kmsg.xz" of type "application/x-xz" (16952 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ