Re: 4.9.0 regression in pipe-backed iov_iter with systemd-nspawn

From: Al Viro
Date: Thu Jan 12 2017 - 17:59:00 EST


On Thu, Jan 12, 2017 at 10:46:06PM +0000, Alan J. Wylie wrote:
> at 14:26 on Thu 12-Jan-2017 Linus Torvalds (torvalds@xxxxxxxxxxxxxxxxxxxx) wrote:

> 13761 copy_file_range(5, NULL, 1, NULL, 9223372036854775807, 0) = -1 EXDEV (Invalid cross-device link)
> 13761 sendfile(1, 5, NULL, 9223372036854775807) = -1 EINVAL (Invalid argument)
> 13761 splice(5, NULL, 1, NULL, 9223372036854775807, 0) = -1 EAGAIN (Resource temporarily unavailable)

*bleep*

splice from /dev/ptmx to stdout, whatever the latter had been. IOW,
we are dealing with do_splice() -> do_splice_to() -> default_file_splice_read()
for pseudo-tty as source...