]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: splice: Adjust for handler fallback removal
authorKees Cook <keescook@chromium.org>
Thu, 27 May 2021 03:25:37 +0000 (20:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:00:18 +0000 (17:00 +0200)
commitaadfb18f0dd97a90bbd23c4ef76d2d97b8b7c8c4
tree3e1dff9f54f7385ffa0b78c44101c19a0cdac47d
parente6d3cf3dc4b70384f5252adbf2e6b4b68ced4cdf
selftests: splice: Adjust for handler fallback removal

[ Upstream commit 6daf076b717d189f4d02a303d45edd5732341ec1 ]

Some pseudo-filesystems do not have an explicit splice fops since adding
commit 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops"),
and now will reject attempts to use splice() in those filesystem paths.

Reported-by: kernel test robot <rong.a.chen@intel.com>
Link: https://lore.kernel.org/lkml/202009181443.C2179FB@keescook/
Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops")
Cc: Christoph Hellwig <hch@lst.de>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/splice/short_splice_read.sh