Re: [PATCH v2] gen_init_cpio: Ignore fsync() returning EINVAL on pipes

From: Nathan Chancellor

Date: Tue Oct 07 2025 - 12:55:58 EST



On Tue, 07 Oct 2025 04:46:47 +0100, Dmitry Safonov wrote:
> The reproducer:
> echo | ./usr/gen_init_cpio /dev/stdin > /dev/null
>
> fsync() on a pipe fd returns -EINVAL, which makes gen_init_cpio fail.
> Ignore -EINVAL from fsync().
>
>
> [...]

Applied, thanks!

[1/1] gen_init_cpio: Ignore fsync() returning EINVAL on pipes
https://git.kernel.org/kbuild/c/38492c5743f8b

Best regards,
--
Nathan Chancellor <nathan@xxxxxxxxxx>