Patch "NFSD: callback request does not use correct credential for AUTH_SYS" has been added to the 5.4-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: callback request does not use correct credential for AUTH_SYS

to the 5.4-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-callback-request-does-not-use-correct-credentia.patch
and it can be found in the queue-5.4 subdirectory.

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



commit abe39c3faba6ff7571b38d7a54e9b505abdf12bf
Author: Dai Ngo <dai.ngo@xxxxxxxxxx>
Date:   Sat Apr 1 13:22:08 2023 -0700

    NFSD: callback request does not use correct credential for AUTH_SYS
    
    [ Upstream commit 7de82c2f36fb26aa78440bbf0efcf360b691d98b ]
    
    Currently callback request does not use the credential specified in
    CREATE_SESSION if the security flavor for the back channel is AUTH_SYS.
    
    Problem was discovered by pynfs 4.1 DELEG5 and DELEG7 test with error:
    DELEG5   st_delegation.testCBSecParms     : FAILURE
               expected callback with uid, gid == 17, 19, got 0, 0
    
    Signed-off-by: Dai Ngo <dai.ngo@xxxxxxxxxx>
    Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx>
    Fixes: 8276c902bbe9 ("SUNRPC: remove uid and gid from struct auth_cred")
    Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index ffc2b838b123c..771733396eab2 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -840,8 +840,8 @@ static const struct cred *get_backchannel_cred(struct nfs4_client *clp, struct r
 		if (!kcred)
 			return NULL;
 
-		kcred->uid = ses->se_cb_sec.uid;
-		kcred->gid = ses->se_cb_sec.gid;
+		kcred->fsuid = ses->se_cb_sec.uid;
+		kcred->fsgid = ses->se_cb_sec.gid;
 		return kcred;
 	}
 }



[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