On 14/02/2024 16:03, Akram Ahmad wrote:
I rebased my v6 tests onto the patch and attempted to perform preadv before writev, and I saw the same failures as before (i.e. expected EFAULT, got 0 for manual out-of-bounds check). I'm not sure whether this is expected when using tmpfd() instead of the normal open()?
Sorry I misunderstood your question at first - yes this is expected. When using readv/preadv on an empty file, no capability check will occur as there is nothing to read. The uaccess tests as they were merged write to the file first, so this is not a concern.
Kevin