From nobody Mon Jul 27 18:46:46 2026 X-Original-To: dev-commits-src-all@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 4h86yH01JWz6nNJX for ; Mon, 27 Jul 2026 18:46:47 +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 4h86yG6c2Sz3YJT for ; Mon, 27 Jul 2026 18:46:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785178006; 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=ITIUn8awpeOohqSHWsPhiR2nufGUTdtst1fPDKZOBs4=; b=FP5KWeJYKhoi+/S9QLc/3noBcFwBdfn/FxTYy/oPIz34MDiTApzu8NADRVii/1z12HgfDU YuMQ0FQyStG/P6nWdKTyvJQgMqPnvXQZAj0j1Nk6J6xcjR/UiC0I8cnCCUQavh50Stc9Cm t9xGyp9D8eWp7BWdtT6uynuvPxrF1DXIRnUwVMySG0tyQUDC4UrCOhgNqiVBeWRdIkchDg ECX/nAKzEYYCXygE+grpn/vyTS/uxyNj+6CSRgS/sMnDsSa2vZcDoqRucrcGL46TnzZtPc Gb1BPgTtnUHhKpDXQLs6zUd/Qbtaopklstco7hPhOykYUqeK3UXKEkagInVlVA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785178006; a=rsa-sha256; cv=none; b=lhac7uXDIBeLkUjzxjnSFu713krrsZ5v4RCo/NH0DHMa3znKftPEozzzW8hNiPn959pmRm c4uv0DV169c2fv14ekQXxWmYJlaeTMe8gC1ylrFsI2bFn2IX3oTz1kfhBgNnW2ZqEA+reU GGkH3w/nTT2HaRaWAtoAVgIrMolE7KPLqrOED5bptp8bS74BiKZ/L+Pf8nGKdLfPAIzILY iS2VDAai7J1/aalpHWaCrPW9xKMV9RMoBnk3iVzPB34OKzTQsWiecB7U1Cq94IXgCX6vMy 8cSa+QeG7YmBcQhO5Gl+BCIf04j1Gb0cRq9RO2qP7LuSHwlgtTNoAvHW2+6aHA== 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=1785178006; 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=ITIUn8awpeOohqSHWsPhiR2nufGUTdtst1fPDKZOBs4=; b=IdXaA9sMvSC/ur0zxZBe39+cHg2z4z3KfMtkgFvzTgv+oTJ491S9xGPxKWic6n/cycTifA NatH0OUaWEKpvKqrV/rOmTjjw3b9lpo9VBoIuF0CtOR95dMAfXAU2uUS9mJ2MG2h2p8f4q Br6MdzUckFvfMC5oL8i9m0u+regO1LiXWKNJ9tw2VEN4rufBQZ5odwBFc+9DllHwu78l7X ivQ9EulBILKmtMWvptimEmrGXU9Li9DMweZEwAGnXmjVUTfLEqli0ghwbwtJ45ts1VowVf UgDQ8t8WIo2L9up5CBHZtZ3vwAqP0O5XUE7NNNiR2mLaPM4ysBwvlD1e0m4F1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h86yG51y5z1K1v for ; Mon, 27 Jul 2026 18:46:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33c35 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 27 Jul 2026 18:46:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 34ca5a9e7362 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 34ca5a9e7362b0c820fe339daa2b8d06c58b6fea Auto-Submitted: auto-generated Date: Mon, 27 Jul 2026 18:46:46 +0000 Message-Id: <6a67a796.33c35.71ea0358@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=34ca5a9e7362b0c820fe339daa2b8d06c58b6fea commit 34ca5a9e7362b0c820fe339daa2b8d06c58b6fea Author: Konstantin Belousov AuthorDate: 2026-07-26 21:45:07 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-27 18:46:32 +0000 geom_zero(4): reset the uio vector on each uiomove() PR: 297062 Tested by: Jordan Gordeev Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58472 --- 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 25d462a9f918..e02fffbd6f02 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;