From nobody Thu May 14 22:19:35 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 4gGlB50KWHz5vvH6 for ; Thu, 14 May 2026 22:19:41 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gGlB45zTlz3Z10 for ; Thu, 14 May 2026 22:19:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778797180; 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=Z158jur/VXZn1BbIc1S/f9oChT6EqNTCcvTOw1VFon0=; b=g4u3yor09NSOFRbb6HH05uf7MCe+FgSSPdeace+ZfVWpZgJQgJvvbN9Ye9vJ1jI8AeSm81 3h7T3JIiSRb3Ll9V2LxsgDvm/CNd+JqSIaB5tJt0zJYrC+N9ZZKDedGROYLvn7gJqZ3IAG UlwUtArGcpFzvHNM4ONXF5/vEoUIHWmGYPIAOeP3NDdAetIHuVJfc25Jq7sM6j54lPAC1w hmG0O9cb6ns7/tiqqaiV+xit1CQBJqJJvuhBrlnw1budd3CxMi7kFWk5Ptil85LLTjlIAC M9SbOh29YLK0KGXZV05naqRM18VtxH6OFRlBOGVzsMnM+AK5VKcvhzS2IejmJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778797180; a=rsa-sha256; cv=none; b=oHKZI/R0Kic5YxDI9QTCH/9uPQpNwLw8OXqzLXNug3i3WPZNSgbTgx7zv3ShAYSnpmMxo9 pGwbSh+h+11YlmKNK8XiS+PdZHeIy0KpF+ZBdGO/e4DcG3TQcIgmZfnEWdqS30gs6CaliM jtQEIg/g7y3L3aW+iQxRrE6CLBJ38l5JaewYGpHHBnKqNVq9wvCqcD33mfiG9fi6o6dQN1 3e/sE610ul4SDf4Z7XIEugiWMZYogztm6vapnnd0xqxIJ6YRfESb1bml/A2JkCco/dejdx M//oY5EHKFjWAcObHtoOXibT1qrGUfSdTg5vj9XNz7hqqiMnK2RM2ju0/SRm9w== 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=1778797180; 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=Z158jur/VXZn1BbIc1S/f9oChT6EqNTCcvTOw1VFon0=; b=ApJELtma168uOa01ZdYdlqdjmE6JNjhgbHyCOMM8fcJkSTmjAFL2chjL4V/KPzKIlazjb+ gbfbRiJZThk3EsKvCQx2noGeZJ469THc7F0X6SvsKBPZ6cZy7q+DB42V+MhyXyBxEOD9K0 5rSYsXT522sHIZaBrmj+Oog+YM2SO3zoan9NJkfukb1lC/QLMvv9OA2FXcxypaY+Qh0cBW v5H22vV+ZBcn5xWz8NV3dBmgkwn+dFP1i4cyovF9mXOo7CWvSyrVBGylxnGAhCV53TwsOR 88RZPamQzgXknclb2LbG2t96Ds4USiTJXUBpSv5pM69yqJJ7vM6MGoChr7tBMw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gGlB458lczvlf for ; Thu, 14 May 2026 22:19:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 422a5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 14 May 2026 22:19:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Rick Macklem Subject: git: 13d3bd165e22 - main - subr_uio.c: Remove a KASSERT() for large NFS server I/O 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: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 13d3bd165e225eec9af91b6e3361c2482931f95b Auto-Submitted: auto-generated Date: Thu, 14 May 2026 22:19:35 +0000 Message-Id: <6a064a77.422a5.5d3744f6@gitrepo.freebsd.org> The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=13d3bd165e225eec9af91b6e3361c2482931f95b commit 13d3bd165e225eec9af91b6e3361c2482931f95b Author: Rick Macklem AuthorDate: 2026-05-14 22:17:55 +0000 Commit: Rick Macklem CommitDate: 2026-05-14 22:17:55 +0000 subr_uio.c: Remove a KASSERT() for large NFS server I/O When the NFS server is set to allow an I/O size greater than 1Mbyte (not allowed in FreeBSD's main yet), a KASSERT() in allocuio() can fail when: zfs_freebsd_write()->zfs_write()->zfs_uiocopy() ->cloneuio()->allocuio() is called for a large NFS server write. Since the userland API callers to allocuio() already check that the size does not exceed UIO_MAXIOV, there does not seem to be a need to a KASSERT() here. Removing the KASSERT() allows NFS server writes of greater than 1Mbyte to work, once the NFS code is patched to allow them. Reviewed by: kib MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D57005 --- sys/kern/subr_uio.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/subr_uio.c b/sys/kern/subr_uio.c index 6ac932fb6690..fa5865fbe938 100644 --- a/sys/kern/subr_uio.c +++ b/sys/kern/subr_uio.c @@ -441,8 +441,6 @@ allocuio(u_int iovcnt) struct uio *uio; int iovlen; - KASSERT(iovcnt <= UIO_MAXIOV, - ("Requested %u iovecs exceed UIO_MAXIOV", iovcnt)); iovlen = iovcnt * sizeof(struct iovec); uio = malloc(iovlen + sizeof(*uio), M_IOV, M_WAITOK); uio->uio_iov = (struct iovec *)(uio + 1);