From nobody Fri Aug 7 15:57:14 2026 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hGpgb1hBfz6nK3T for ; Fri, 07 Aug 2026 15:57:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hGpgZ6X1dz3wDB for ; Fri, 07 Aug 2026 15:57:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786118234; 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=iYzQMghXPLIwtuAw6fTuuEM7A0M9SU4On6YH5MVewO8=; b=K1Z/c4Bxzyhp2WkEcsDSwuUjwT4vTnDXH6YN8t20WsGlKPINtl6YOvNp/18WrbHufosoqA bc3oYwgjur3t48SgoBl0QNFfRcy4sMz6hz1TTVp94sZh3/l8q5hi2YPkoAjSPDsIGzBCRk 4wX8Ucr/yBMGY43c1mY+9kKwsgLmy6zsbHm5KKYR0y0uFSUUtaT/DHTSf27ZkGBSnVisSI QA+jtSTr5IIjx0peOhfNjOXZ34JSuAcLnGaRbpkgg6btXKQtsgO0OO5XDpwAuBxWguOXnn 3AshMzgup9lEDJFApt0Nam7o/D8EzwOC5L0vzCOnB9NbkzPaltheCYq+JdRliQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786118234; a=rsa-sha256; cv=none; b=bihD8CbSiZxAUUtrR4Qkl2tQO4ksq9JnpJs0rA0u4isDmYmPeNOuQLqhsyFyCmLdS8FJEo vniOIalBFlZMGD5Zo3oryBZAhaf13hb85v3eNan+la3jNd4Osq+ndNpgNBNPaFDlMspmNp 64JUpFDAke32JViwQ3W6eQVNYPjvv4rADU1uMl4eys74oxz2enyU/nEdelwm9fClyHBPAn 4x3fz9A1zwdvCHgtHg53Bs9BZuxNj47aya3CDVC4wmznlhWIBQQfaQrj6knN8pNjbfsLtL 0vX9Z/u3I+Q35atiTZhieR//ISj7N1TCfP4C8fgXnfUV9CK0yBveTxw+SxgNJA== 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=1786118234; 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=iYzQMghXPLIwtuAw6fTuuEM7A0M9SU4On6YH5MVewO8=; b=Qs1O+lh/AT/wevevKSuHazU99/7ckx2TVKYVXXVhQl+4sHtFF9XAOLAdEoB54tq5co5mzV MEZ6AxXEhJrLwc/klzNSnIasM1T58pROEPHCRIiWuS+0CUVHpZS795f81XckGFu5SmQ50o Y/j103N6d2va52PneqOTUxb9LQltPwtLKBCrWC9W3g4cTIrgCt72Eo/ehKXMr1/cVJACaA ElVykhM0ftqpX3LibJeWgORxHhWlq11n4w9UILyv/P5RHv6va7Qkv/JBcoceZGLl86FY6/ B3jVsI6AvsWB3nhumeTRMPkXRvhHT74pD51IOwl3l/TTLJIIbnhxFCSTI7tSMA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hGpgZ4YXGz1Cfc for ; Fri, 07 Aug 2026 15:57:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1ed9a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 07 Aug 2026 15:57:14 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 51f5623874c0 - stable/14 - geom_zero(4): reset the uio vector on each uiomove() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/14 X-Git-Reftype: branch X-Git-Commit: 51f5623874c0c2b8e5adb2e02313ac6f41229d31 Auto-Submitted: auto-generated Date: Fri, 07 Aug 2026 15:57:14 +0000 Message-Id: <6a76005a.1ed9a.78c37e4e@gitrepo.freebsd.org> The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=51f5623874c0c2b8e5adb2e02313ac6f41229d31 commit 51f5623874c0c2b8e5adb2e02313ac6f41229d31 Author: Konstantin Belousov AuthorDate: 2026-07-26 21:45:07 +0000 Commit: Konstantin Belousov CommitDate: 2026-08-07 15:57:08 +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 6af29ca117ab..99c799d6f082 100644 --- a/sys/geom/zero/g_zero.c +++ b/sys/geom/zero/g_zero.c @@ -84,11 +84,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; @@ -102,6 +97,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;