From nobody Sun Dec 12 02:20:21 2021 X-Original-To: bugs@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 B4D3C18D6800 for ; Sun, 12 Dec 2021 02:20:21 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JBSz93jsQz4YLh for ; Sun, 12 Dec 2021 02:20:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5BEF618DF8 for ; Sun, 12 Dec 2021 02:20:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BC2KLmI049784 for ; Sun, 12 Dec 2021 02:20:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BC2KLZ6049783 for bugs@FreeBSD.org; Sun, 12 Dec 2021 02:20:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260343] NFS client does not respect RLIMIT_FSIZE Date: Sun, 12 Dec 2021 02:20:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rmacklem@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639275621; 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: in-reply-to:in-reply-to:references:references; bh=CotnjrKxNt/xKsMuoKiCuQJ+YuNtxxXrcwf5Em3AnsQ=; b=QOHJyy6xVy7SJoS8tBIaI5DZ+E7QteDfop9/D677JzSFzMrotZXdFcOeF4p8x/CP8x5Axr t3B4kruocDWCubVTOtn09Bs9iHSx1Kchdv5ZSaN/IfhvL33gqugRFWRd8JD/XediUXTvhD hicOJdcx+2MOHFpYRanOkqRxEuAMqwrsgrd4nfwLoszrL+Nx1oZ5Wqt59yBgcvJEf2WHkH /jhWVSlieP4995ZQro+l62djIHHDbtQ1sL1n7JIMqn/rrJbe9McKJAsnra0AUdBpbE1nrX bCkFrwbSmJMfueMmYJ0z9ScZXJcdOgGQMHIWATL4x8w9CSkd+/VhfXB5SRBl3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639275621; a=rsa-sha256; cv=none; b=OFztoP5xDKnOA/rFlD3/4jzBj5bOSXH6KyyYDG5jo/xtI0fF3ZUiwA0EWo3o5U92XoL4kh 4qEVBFvswYYix9jy3tzjYPOe+aArIev62j7fON+XlJrYwCOuA+nzHCceCBYU5Prq7QfF0V EDNmZworRUBx3wBAiRnZnZcuAJqvNTs4P+A/vgshhq402hs5ReBpmK7M9GRVXgF1HG0Ik2 RP5uu5zv6lDi7FcXT0Y7DC8+zdhH09XVEFZ4IbkbqVF0ulUqw9mFxmpFA9gKR3XgtCrkVf n0LhzIhU4//r4GKX41py5sp8tRw5o7JLKJ6pkZKl/dEYsRTmiZipJ3pSsn5dyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260343 --- Comment #3 from Rick Macklem --- Yes, I just noticed that vop_stdallocate() uses VOP_WRITE(), so it does get checked. I'll add it to nfs_allocate(). (I suspect long ago that VOP_SETATTR() of size was exempt because it does not allocate storage and the limit was really meant to limit storage usage and not size? I could be wrong, but I think rlimit was a CSRG BSD thing way back in the 1980s. POSIX probably picked up on it.) --=20 You are receiving this mail because: You are the assignee for the bug.=