[LTP] [PATCH v2 1/1] splice07: Whitelist /dev/zero on pipe write
Martin Doucha
mdoucha@suse.cz
Fri Jan 26 15:19:04 CET 2024
On 26. 01. 24 15:14, Cyril Hrubis wrote:
> Hi!
>> splice() works on /dev/zero and /proc/self/maps on older kernels at
>> least between v4.4 and v5.3.
>
> My guess would have been that this stopped working after the changes for
> set_fs removal, see:
>
> https://lwn.net/Articles/832121/
>
> and kernel commit 36e2c7421f02
>
> The article explicitly cites that splice() stopped working for files
> that does not implemente splice_read().
>
> So splice for these two didn't work between 5.10 and 6.7.
In that case it makes sense to treat /dev/zero and /proc/self/maps as
unconditionally expected success for splice() to writable pipe.
--
Martin Doucha mdoucha@suse.cz
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list