Skip to content

Commit 9872ab5

Browse files
jtlaytongregkh
authored andcommitted
vboxsf: explicitly deny setlease attempts
[ Upstream commit 1ece2c4 ] vboxsf does not break leases on its own, so it can't properly handle the case where the hypervisor changes the data. Don't allow file leases on vboxsf. Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20240319-setlease-v1-1-5997d67e04b3@kernel.org Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2f11e24 commit 9872ab5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/vboxsf/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ const struct file_operations vboxsf_reg_fops = {
218218
.release = vboxsf_file_release,
219219
.fsync = noop_fsync,
220220
.splice_read = filemap_splice_read,
221+
.setlease = simple_nosetlease,
221222
};
222223

223224
const struct inode_operations vboxsf_reg_iops = {

0 commit comments

Comments
 (0)