Suzuki K Poulose
177f504cb7
selftests: splice_read: Fix sysfs read cases
...
sysfs now supports splice_* operations with
commit f2d6c2708b ("kernfs: wire up ->splice_read and ->splice_write")
Update the selftests to expect success instead of failure.
Cc: Shuah Khan <shuah@kernel.org >
Cc: Christoph Hellwig <hch@lst.de >
Cc: Siddharth Gupta <sidgup@codeaurora.org
Reported-by: Dilip Kota <dilip.kota@arm.com >
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com >
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org >
2022-11-29 17:28:31 -07:00
Kees Cook
6daf076b71
selftests: splice: Adjust for handler fallback removal
...
Some pseudo-filesystems do not have an explicit splice fops since adding
commit 36e2c7421f ("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: 36e2c7421f ("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 >
2021-06-07 18:39:43 -06:00
Kees Cook
9af47666cb
selftests: splice: Check behavior of full and short splices
...
In order to help catch regressions in splice vs read behavior in certain
special files, test a few with various different kinds of internal
kernel helpers.
Cc: Shuah Khan <shuah@kernel.org >
Signed-off-by: Kees Cook <keescook@chromium.org >
2020-08-07 10:50:11 -07:00