From nobody Tue Nov 28 17:33:26 2023 X-Original-To: dev-commits-src-main@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 4SfqLG3MSPz52GmG; Tue, 28 Nov 2023 17:33:26 +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 4SfqLG2q5Rz4FmH; Tue, 28 Nov 2023 17:33:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701192806; 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=0NrWnzw5hmo3/PLt29cpU2pNlDzcOSQWtOqz4aJyryU=; b=g2jlZHOi07dt9TWPfl6EGqWWCs4+hw1rGCGUZ4FJa8l37tQXEDgeytC/Un339LPWMasJY1 lzZvxUjNM7kAgQrN/GEP3OuDiynRYCxhtq7XEoDGyDkp52FVQ3bNzWogpPgu57dKtNqcBS m5gNcQX43iTVmoLELMH+5Ev6gCqoM/z5WLc4F8fX68mNp9LG4o8AcULcsS0aO4CaanAtU/ 0wKP6qOLQFB/nrfRputBRervyVBtiTVjFuGd+giG8lBAxwiBQZLP8cGcNiRpGm+pYfp1L2 Ns2avoNjglVtrhiH6mKc0Jth77ICCk2Hqm0HrzKkuo0rj/11RfroPULDwjJhIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701192806; 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=0NrWnzw5hmo3/PLt29cpU2pNlDzcOSQWtOqz4aJyryU=; b=QgsdON6Ue59jdozGnv3EYZbE1roCtaKH2U3/oNGAisZfOBDWVr0kLCbXjYMfs3xeZYmHuz C5orB6UhCwo/OmxbXFLsg3Wh01OVSnvHXygeJ8inE5tr7HOpLTxsEEfVWiPFNMRkml9Sgc PBi+DwcJCLA6TG24485Qzkq469YL6E+sDa2qWiRgcBvQ/NJ5D3NolVK2COwqZDT9KSMP6h JleHOrliirnij0Elbh8gdsS9klE86zTp4XOKKH2wQ2pf+kBiWg4ERvzu4Rco2vzBD4+93E H3S+cHmJppJ5yk5gxEIxqpNxiRr/PndarlPdSAsCk8+6s2xjxl36ooxNkHZvfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701192806; a=rsa-sha256; cv=none; b=E6qpFNBfRfAwwD1toQpRqsNZZ1cb4zQ89tmXPnZQmfC9tntHLCJ4MD0kfoXTbnpRut89/L r82S8RtshYcyXPfeiXLazHQa4Lqb61kQ832Gd9WBeDyYEcdRSHmuwMCyxpFCoY/umzFxlD tzfXcFiY19wGoGaVGtDcFCdcBnkev2zUhPejWMrGZuZOBdrMqVfojiV1adIPryxAFGagxG MNEQCAkQLo40w7C6qVTpx2i0Adj0wTb2XB122pwv6EayNg9//sqbt/udCs1vZdsZ9XDFeA DRWus2DGIW/i7F3qYBogkRk77KBKSYVnDRFrle9L5Zb0EGsbDpglldF0XfTj0w== 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 4SfqLG1wRWzWx9; Tue, 28 Nov 2023 17:33:26 +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 3ASHXQNw028981; Tue, 28 Nov 2023 17:33:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ASHXQV5028978; Tue, 28 Nov 2023 17:33:26 GMT (envelope-from git) Date: Tue, 28 Nov 2023 17:33:26 GMT Message-Id: <202311281733.3ASHXQV5028978@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 326836a1ebc6 - main - nullfs: do not allow bypass on copy_file_range() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 326836a1ebc6ce9b28c8f2bc1d177a444fba8ea6 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=326836a1ebc6ce9b28c8f2bc1d177a444fba8ea6 commit 326836a1ebc6ce9b28c8f2bc1d177a444fba8ea6 Author: Konstantin Belousov AuthorDate: 2023-11-18 09:23:22 +0000 Commit: Konstantin Belousov CommitDate: 2023-11-28 17:32:53 +0000 nullfs: do not allow bypass on copy_file_range() There must be no callers of VOP_COPY_FILE_RANGE() except vn_copy_file_range(), which does enough to find the write-vnodes where to call the VOP. Reviewed by: markj, Olivier Certner Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D42603 --- 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 c05e3394a9a6..4747b1dd5b82 100644 --- a/sys/fs/nullfs/null_vnops.c +++ b/sys/fs/nullfs/null_vnops.c @@ -1177,5 +1177,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);