Patch "vboxsf: explicitly deny setlease attempts" has been added to the 6.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    vboxsf: explicitly deny setlease attempts

to the 6.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     vboxsf-explicitly-deny-setlease-attempts.patch
and it can be found in the queue-6.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5b5a06ed01c5416a4df2c6cef8a547c0c682d5c9
Author: Jeff Layton <jlayton@xxxxxxxxxx>
Date:   Tue Mar 19 12:32:04 2024 -0400

    vboxsf: explicitly deny setlease attempts
    
    [ Upstream commit 1ece2c43b88660ddbdf8ecb772e9c41ed9cda3dd ]
    
    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@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240319-setlease-v1-1-5997d67e04b3@xxxxxxxxxx
    Reviewed-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/vboxsf/file.c b/fs/vboxsf/file.c
index 2307f8037efc3..118dedef8ebe8 100644
--- a/fs/vboxsf/file.c
+++ b/fs/vboxsf/file.c
@@ -218,6 +218,7 @@ const struct file_operations vboxsf_reg_fops = {
 	.release = vboxsf_file_release,
 	.fsync = noop_fsync,
 	.splice_read = filemap_splice_read,
+	.setlease = simple_nosetlease,
 };
 
 const struct inode_operations vboxsf_reg_iops = {




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux