Patch "nfsd: nfsd_file_lease_notifier_call gets a file_lease as an argument" has been added to the 6.10-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

    nfsd: nfsd_file_lease_notifier_call gets a file_lease as an argument

to the 6.10-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:
     nfsd-nfsd_file_lease_notifier_call-gets-a-file_lease.patch
and it can be found in the queue-6.10 subdirectory.

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



commit 4813c26ec0c13921454a7983367194fe37e46eb9
Author: Jeff Layton <jlayton@xxxxxxxxxx>
Date:   Fri Jul 12 07:26:44 2024 -0400

    nfsd: nfsd_file_lease_notifier_call gets a file_lease as an argument
    
    [ Upstream commit 769d20028f45a4f442cfe558a32faba357a7f5e2 ]
    
    "data" actually refers to a file_lease and not a file_lock. Both structs
    have their file_lock_core as the first field though, so this bug should
    be harmless without struct randomization in play.
    
    Reported-by: Florian Evers <florian-evers@xxxxxx>
    Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219008
    Fixes: 05580bbfc6bc ("nfsd: adapt to breakup of struct file_lock")
    Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
    Tested-by: Florian Evers <florian-evers@xxxxxx>
    Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c
index ad9083ca144ba..f4704f5d40867 100644
--- a/fs/nfsd/filecache.c
+++ b/fs/nfsd/filecache.c
@@ -664,7 +664,7 @@ static int
 nfsd_file_lease_notifier_call(struct notifier_block *nb, unsigned long arg,
 			    void *data)
 {
-	struct file_lock *fl = data;
+	struct file_lease *fl = data;
 
 	/* Only close files for F_SETLEASE leases */
 	if (fl->c.flc_flags & FL_LEASE)




[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