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: <20200917012542.GF28738@shao2-debian>
Date:   Thu, 17 Sep 2020 09:25:42 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Christoph Hellwig <hch@....de>
Cc:     Al Viro <viro@...iv.linux.org.uk>,
        Kees Cook <keescook@...omium.org>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
        lkp@...el.com
Subject: [fs] 36e2c7421f: kernel-selftests.splice.short_splice_read.sh.fail

Greeting,

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

commit: 36e2c7421f02a22f71c9283e55fdb672a9eb58e7 ("fs: don't allow splice read/write without explicit ops")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master


in testcase: kernel-selftests
version: kernel-selftests-x86_64-e8e8f16e-1_20200807
with following parameters:

	group: kselftests-02

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>


2020-09-17 06:10:02 make run_tests -C splice
make: Entering directory '/usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-36e2c7421f02a22f71c9283e55fdb672a9eb58e7/tools/testing/selftests/splice'
gcc     default_file_splice_read.c /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-36e2c7421f02a22f71c9283e55fdb672a9eb58e7/tools/testing/selftests/kselftest_harness.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-36e2c7421f02a22f71c9283e55fdb672a9eb58e7/tools/testing/selftests/kselftest.h  -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-36e2c7421f02a22f71c9283e55fdb672a9eb58e7/tools/testing/selftests/splice/default_file_splice_read
gcc     splice_read.c /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-36e2c7421f02a22f71c9283e55fdb672a9eb58e7/tools/testing/selftests/kselftest_harness.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-36e2c7421f02a22f71c9283e55fdb672a9eb58e7/tools/testing/selftests/kselftest.h  -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-36e2c7421f02a22f71c9283e55fdb672a9eb58e7/tools/testing/selftests/splice/splice_read
TAP version 13
1..2
# selftests: splice: default_file_splice_read.sh
ok 1 selftests: splice: default_file_splice_read.sh
# selftests: splice: short_splice_read.sh
# splice: Invalid argument
# FAIL: /proc/26979/limits 4096
# splice: Invalid argument
# FAIL: /proc/26979/limits 2
# splice: Invalid argument
# FAIL: /proc/26979/comm 4096
# splice: Invalid argument
# FAIL: /proc/26979/comm 2
# ok: /proc/sys/fs/nr_open 4096
# ok: /proc/sys/fs/nr_open 2
# ok: /proc/sys/kernel/modprobe 4096
# ok: /proc/sys/kernel/modprobe 2
# ok: /proc/sys/kernel/version 4096
# ok: /proc/sys/kernel/version 2
# splice: Invalid argument
# FAIL: /sys/module/test_module/coresize 4096
# splice: Invalid argument
# FAIL: /sys/module/test_module/coresize 2
# splice: Invalid argument
# FAIL: /sys/module/test_module/sections/.init.text 4096
# splice: Invalid argument
# FAIL: /sys/module/test_module/sections/.init.text 2
not ok 2 selftests: splice: short_splice_read.sh # exit=1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-36e2c7421f02a22f71c9283e55fdb672a9eb58e7/tools/testing/selftests/splice'



To reproduce:

        # build kernel
	cd linux
	cp config-5.9.0-rc1-00006-g36e2c7421f02a2 .config
	make HOSTCC=gcc-9 CC=gcc-9 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.9.0-rc1-00006-g36e2c7421f02a2" of type "text/plain" (209845 bytes)

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

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

View attachment "kernel-selftests" of type "text/plain" (171009 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ