From nobody Tue Dec 5 00:44:01 2023 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 4SkhcL12ZJz532Fq; Tue, 5 Dec 2023 00:44:02 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SkhcL0F5Bz4cxk; Tue, 5 Dec 2023 00:44:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701737042; 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=3V2Ie9/4zA7LfyIN1fhyih3UOriYL94uj2WkMeba03U=; b=mLiqJPi3K8sPzOBF/pb5IjM8m6aorVgBQuhxGJB1VlFB3SLR8okbcdATT7J9VS8E1Sp+1I ek+NWWpS6DKN4G4TCDmJIEdyNb/thcfMu8RmN3r30Wrd1q8e+NefjvUgCfXYchkubUT4y7 47GofmGM+xxm64dVWGCij8tp9cSzi1D+/Wp5oAu+9+8r29nyWZ/Mn1j2ykQFRoC/RjHfmK jWLq/HNuydm8B/6MsEQPUpdoSpvA/vUBKuh7yjHkUuf4dBDEtPDtRtpF+gZ/qX5r1NkQxS PGWRquN4PPqykN1QbikBXawIj4uWhXVe9CsNPDOMbWw5mt+vFtbNgqRt6Kcr6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701737042; 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=3V2Ie9/4zA7LfyIN1fhyih3UOriYL94uj2WkMeba03U=; b=bFeYsgeoNISv7uuNzL29QCbhxRlpksBPNme4MmYf+Aj50Ek1SH51NdzhUtKrxEz0fF3Q+J btJDYmIwr8qnWY+7bISmRZkyMvCIWwS+OzSxTjlpiZTkY+jqvC+jJggXTOGBLP/5t86Zdf HJ4WUsUTb6+qe5MjE5JBp3ovtyUPHY00WOikD4IbP2sxE/G2BUVDx9aXduklv2zDSJ91yE wheTNpZEzkcNyGF05ScI82KBceOTjq2DfVfa+M0nfh5FAQLg2HuGoTUDT/b4Js1jyHjKbJ 1I8kE0kKxohQAzoZhpV0SPXQH0QkYbAgi8pKfBfcsQfgfizoZW5dzdlyZEz/uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701737042; a=rsa-sha256; cv=none; b=c9wDfKkn3FmWcO7aDtMu4xqkCgSaTTPWinnzrIk0Yvc3lK6X8FS0rW20IWcDseM13KV5cg UJrvR6qGxlvamcOjmoo2Yr7oKt+fNr4ikmHMNnB3uAtvk1XJJwaOPnqDuF1t9I0+V1opWy v1njz3OHYVrz1rlfGhzagPwF28pTHcky8bGkEPJZ2HDj0lM7fCIcXltIDCeP4GKL450z3n 3qXXlMbSgajDOJ/nAw6ZsyJjXL+tW35KKHirU4JDjKx/Isu0lAUJxERnN6fbkPHBWsoh5x TaupBk+VGmWO/XtMbxXH6pzwUOANFumkRkF0/9UMWWdh6L4mAg1eWftSwnUt9w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4SkhcK6RZMzpLL; Tue, 5 Dec 2023 00:44:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B50i1Ot030015; Tue, 5 Dec 2023 00:44:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B50i14U030012; Tue, 5 Dec 2023 00:44:01 GMT (envelope-from git) Date: Tue, 5 Dec 2023 00:44:01 GMT Message-Id: <202312050044.3B50i14U030012@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 6dec97eeaf14 - stable/14 - nullfs: do not allow bypass on copy_file_range() 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org 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: 6dec97eeaf146484da880d996a5bc98b4a7516d8 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6dec97eeaf146484da880d996a5bc98b4a7516d8 commit 6dec97eeaf146484da880d996a5bc98b4a7516d8 Author: Konstantin Belousov AuthorDate: 2023-11-18 09:23:22 +0000 Commit: Konstantin Belousov CommitDate: 2023-12-05 00:43:27 +0000 nullfs: do not allow bypass on copy_file_range() (cherry picked from commit 326836a1ebc6ce9b28c8f2bc1d177a444fba8ea6) --- sys/fs/nullfs/null_vnops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c index 7db7a352f176..5daa302bedd1 100644 --- a/sys/fs/nullfs/null_vnops.c +++ b/sys/fs/nullfs/null_vnops.c @@ -1181,5 +1181,6 @@ struct vop_vector null_vnodeops = { .vop_vptofh = null_vptofh, .vop_add_writecount = null_add_writecount, .vop_vput_pair = null_vput_pair, + .vop_copy_file_range = VOP_PANIC, }; VFS_VOP_VECTOR_REGISTER(null_vnodeops);