The Eio tests fail on s390x. I simplified it to this program, which doesn't use Eio:
let () =
let bufs = [Bigarray.Array1.of_array Bigarray.Char Bigarray.c_layout [|'H'; 'i'|]] in
Luv.File.write Luv.File.stdout bufs (fun _err -> assert false)
strace on this shows:
[pid 17512] write(1, "Hi\3\377\204\251\356\0\0\0\3\377\204\251\356\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0!"..., 8589934592) = 2147479552