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-next>] [day] [month] [year] [list]
Message-ID: <20191015004047.GR9415@shao2-debian>
Date:   Tue, 15 Oct 2019 08:40:48 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Jiri Pirko <jiri@...lanox.com>
Cc:     "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <jakub.kicinski@...ronome.com>,
        LKML <linux-kernel@...r.kernel.org>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        lkp@...ts.01.org, bpf@...r.kernel.org
Subject: [netdevsim] 4418f862d6: kernel_selftests.bpf.test_offload.py.fail

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

commit: 4418f862d675011a242a4e687d74ea107e6a40ed ("netdevsim: implement support for devlink region and snapshots")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: kernel_selftests
with following parameters:

	group: kselftests-00

test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


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>


# selftests: bpf: test_offload.py
# Test destruction of generic XDP...
# Traceback (most recent call last):
#   File "./test_offload.py", line 795, in <module>
#     simdev = NetdevSimDev()
#   File "./test_offload.py", line 362, in __init__
#     self.nsims.append(NetdevSim(self, port_index, ifnames[port_index]))
#   File "./test_offload.py", line 427, in __init__
#     self.dfs_refresh()
#   File "./test_offload.py", line 437, in dfs_refresh
#     self.dfs = DebugfsDir(self.dfs_dir)
#   File "./test_offload.py", line 284, in __init__
#     self._dict = self._debugfs_dir_read(path)
#   File "./test_offload.py", line 319, in _debugfs_dir_read
#     dfs[f] = DebugfsDir(p)
#   File "./test_offload.py", line 284, in __init__
#     self._dict = self._debugfs_dir_read(path)
#   File "./test_offload.py", line 316, in _debugfs_dir_read
#     _, out = cmd('cat %s/%s' % (path, f))
#   File "./test_offload.py", line 108, in cmd
#     return cmd_result(proc, include_stderr=include_stderr, fail=fail)
#   File "./test_offload.py", line 130, in cmd_result
#     raise Exception("Command failed: %s\n%s" % (proc.args, stderr))
# Exception: Command failed: cat /sys/kernel/debug/netdevsim/netdevsim0//ports/0/dev/take_snapshot
# 
# cat: /sys/kernel/debug/netdevsim/netdevsim0//ports/0/dev/take_snapshot: Invalid argument
not ok 38 selftests: bpf: test_offload.py


To reproduce:

        # build kernel
	cd linux
	cp config-5.3.0-rc3-00939-g4418f862d6750 .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.3.0-rc3-00939-g4418f862d6750" of type "text/plain" (199638 bytes)

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

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

Download attachment "kernel_selftests.xz" of type "application/x-xz" (36472 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ