Re: [LTP] [linus:master] [iomap] 219580eea1: ltp.writev07.fail

From: Cyril Hrubis
Date: Thu Jul 13 2023 - 11:11:20 EST


Hi!
The test description:

Verify writev() behaviour with partially valid iovec list.
Kernel <4.8 used to shorten write up to first bad invalid
iovec. Starting with 4.8, a writev with short data (under
page size) is likely to get shorten to 0 bytes and return
EFAULT.

This test doesn't make assumptions how much will write get
shortened. It only tests that file content/offset after
syscall corresponds to return value of writev().

See: [RFC] writev() semantics with invalid iovec in the middle
https://marc.info/?l=linux-kernel&m=147388891614289&w=2

--
Cyril Hrubis
chrubis@xxxxxxx