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 about 1 year ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit b0ef425652e5cfce27df9fa5826a9cd64cee110a Author: Jerry Jelinek <email@example.com> Date: 2019-01-24T02:43:00.000Z 10230 zfs mishandles partial writes Reviewed by: Matthew Ahrens <firstname.lastname@example.org> Reviewed by: Andy Stormont <email@example.com> Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>