zfs mishandles partial writes
The trinity fuzzer calls pwritev with an iovec that has one or more entries which point to some initial valid data and then the rest point to addresses which are not mapped. This yields EFAULT once the write hits the invalid address, but we do successfully complete some amount of writing. The zfs_write code does not handle this properly. It loses track of the error return from dmu_write_uio_dbuf and it has an invalid ASSERT which does not account for the partial write case.
Updated by Electric Monk 11 months ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit b0ef425652e5cfce27df9fa5826a9cd64cee110a Author: Jerry Jelinek <firstname.lastname@example.org> Date: 2019-01-24T02:43:00.000Z 10230 zfs mishandles partial writes Reviewed by: Matthew Ahrens <email@example.com> Reviewed by: Andy Stormont <firstname.lastname@example.org> Reviewed by: Garrett D'Amore <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>