Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Dec 2023 00:44:01 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6dec97eeaf14 - stable/14 - nullfs: do not allow bypass on copy_file_range()
Message-ID:  <202312050044.3B50i14U030012@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=6dec97eeaf146484da880d996a5bc98b4a7516d8

commit 6dec97eeaf146484da880d996a5bc98b4a7516d8
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-11-18 09:23:22 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312050044.3B50i14U030012>