(Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hCyBV3Zm3z4PL5 for ; Mon, 03 Aug 2026 00:25:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785716738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ssGXTnp60XzCX0dXQQzEpCjn8LflnlCUkjZpxbSHSmY=; b=JiiPAr7BuI7ACSIL2CJkeamuTvctIfKuCuWfWyTBT9uq2ZsjGlOXwwKQ5QPcHzW1Q70cmK HQte4+dlSLamFouRDqDbg7P7juC2J6QzKhlmD1j0JUEafjTZo945LjA3QvljfSOJlaSOI6 nZBIT7fLOSh0YxP4cALPc4sTdpwNcO6pzbGsZ1+GtjFTVjgtuRTZHCKoULAKjlwkGqL9zb ayGSG+JdpwlS0i9a7tqcF2nO4JB+Sgf8tgEazF9Bj+zpgXD9JhQgdGMTWjW67FU1Sgbnl4 fhp2ZhgGA9aqjm4B0AnEHQXUXBFXU8HJejeHYzWHTiVkvJhtOS/em7mUhE56/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785716738; a=rsa-sha256; cv=none; b=Q3Jx5kVcAjOdATAlFbfYo8PvURLmB3IqoZstKg4bpKD9OF/ST18AsPc4HvtTIocHTIhrnA Nsn5TYQ7WAIl3TIkWYIcLcRCcXJ+TMSKPT9y2Lhvo2Elq/SxflQTtxC1l/5smw0nPg1EyH j3TI2fv5MRqlkdiGoSlixmmnNPebqS+5U+gSpGdG2j1E4soYoWOjFRm3SeiqHrahbWB4Fb DvKhkVGwKgm+krCuNk2QgcXtlxasbCSDnrfRaNC1BHf019nR/dstCGA+uWvaXGzIalTwzR 0qi9kRsivhyur0R5uVdVGzRkmJreesozm1KDP+XY9ji1NZgaqAjKGXiESVrvgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785716738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ssGXTnp60XzCX0dXQQzEpCjn8LflnlCUkjZpxbSHSmY=; b=e3p/kB+whQ+mGcU7VC28LUsglN+j0NJmmAXnVJo+qHQUzDT9fOXP0oK71KgSdZlrEKR62Y E1hk2mO51zvoCvKz3u7fbb9DPlEEzeBUevSvIkYyKJZxcPCYLwJiEdWhXfiXJkDiEUYcW1 iYtoHbokgZAozoZUcXiupEKGQERl4L1iCQhQklTGleErNTbi4CuI4qDOha/ysim6lWOWcW Ds4dhbtogds2Le0uMCmgjYfrGlH3h3v3e4995SxR+mKbxv7KlLKkx1F6xGMhTcnE1p0jkk mNH5uAyZJyzy1W8sojSDPB4f/LmQvQE0NsmJJJAEfJeNpa8Ey4IcEbt0JjKdBg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hCyBV2NnWzf0K for ; Mon, 03 Aug 2026 00:25:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1cc14 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 03 Aug 2026 00:25:38 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 0aa72376d73b - stable/15 - geom_zero(4): reset the uio vector on each uiomove() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 0aa72376d73bef2612f308a6de8b33e9584894de Auto-Submitted: auto-generated Date: Mon, 03 Aug 2026 00:25:38 +0000 Message-Id: <6a6fe002.1cc14.7ffcf389@gitrepo.freebsd.org> The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0aa72376d73bef2612f308a6de8b33e9584894de commit 0aa72376d73bef2612f308a6de8b33e9584894de Author: Konstantin Belousov AuthorDate: 2026-07-26 21:45:07 +0000 Commit: Konstantin Belousov CommitDate: 2026-08-03 00:23:17 +0000 geom_zero(4): reset the uio vector on each uiomove() PR: 297062 (cherry picked from commit 34ca5a9e7362b0c820fe339daa2b8d06c58b6fea) --- sys/geom/zero/g_zero.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/geom/zero/g_zero.c b/sys/geom/zero/g_zero.c index 325e12633a31..8244df77b257 100644 --- a/sys/geom/zero/g_zero.c +++ b/sys/geom/zero/g_zero.c @@ -83,11 +83,6 @@ g_zero_fill_pages(struct bio *bp) size_t length; vm_offset_t offset; - aiovec.iov_base = g_zero_buffer; - aiovec.iov_len = PAGE_SIZE; - auio.uio_iov = &aiovec; - auio.uio_iovcnt = 1; - auio.uio_offset = 0; auio.uio_segflg = UIO_SYSSPACE; auio.uio_rw = UIO_WRITE; auio.uio_td = curthread; @@ -101,6 +96,12 @@ g_zero_fill_pages(struct bio *bp) bp->bio_resid = bp->bio_length; offset = bp->bio_ma_offset & PAGE_MASK; for (int i = 0; i < bp->bio_ma_n && bp->bio_resid > 0; i++) { + aiovec.iov_base = g_zero_buffer; + aiovec.iov_len = PAGE_SIZE; + auio.uio_iov = &aiovec; + auio.uio_iovcnt = 1; + auio.uio_offset = 0; + length = MIN(PAGE_SIZE - offset, bp->bio_resid); auio.uio_resid = length;