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 # selftests: bpf: test_offload.py # Test destruction of generic XDP... # Traceback (most recent call last): # File "./test_offload.py", line 795, in # 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 job-script # job-script is attached in this email Thanks, Rong Chen