--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: unblock: zfs-linux/2.0.3-9 (pre-approval)
- From: "M. Zhou" <lumin@debian.org>
- Date: Mon, 28 Jun 2021 09:01:04 +0000
- Message-id: <3a538737befe8b929d9c0c11e4f8f25943e95ad7.camel@riseup.net>
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock package zfs-linux
[ Reason ]
We want to cherry-pick a three-line fix for an important bug.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989373
diff --git a/module/os/linux/zfs/zpl_file.c
b/module/os/linux/zfs/zpl_file.c
index 421aebefe46..524c43dcded 100644
--- a/module/os/linux/zfs/zpl_file.c
+++ b/module/os/linux/zfs/zpl_file.c
@@ -342,9 +342,6 @@ zpl_iter_write(struct kiocb *kiocb, struct iov_iter
*from)
ssize_t wrote = count - uio.uio_resid;
kiocb->ki_pos += wrote;
- if (wrote > 0)
- iov_iter_advance(from, wrote);
-
return (wrote);
}
[ Impact ]
Potential memory corruption / data loss.
[ Risks ]
This has been sufficiently tested by ZFS upstream. And
this fix is a part of their new stable release:
https://github.com/openzfs/zfs/commit/412b69dfabe223a69159c8579ba808b49f0982e0
unblock zfs-linux/2.0.3-9
Thank you for using reportbug
--- End Message ---