Patch "nfsd: don't set SVC_SOCK_ANONYMOUS when creating nfsd sockets" 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: don't set SVC_SOCK_ANONYMOUS when creating nfsd sockets

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-don-t-set-svc_sock_anonymous-when-creating-nfsd.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 7aa044b949222801d4258ba53b7a13ce3f95145b
Author: Jeff Layton <jlayton@xxxxxxxxxx>
Date:   Fri Jul 19 14:55:53 2024 -0400

    nfsd: don't set SVC_SOCK_ANONYMOUS when creating nfsd sockets
    
    [ Upstream commit 91da337e5d506f2c065d20529d105ca40090e320 ]
    
    When creating nfsd sockets via the netlink interface, we do want to
    register with the portmapper. Don't set SVC_SOCK_ANONYMOUS.
    
    Reported-by: Steve Dickson <steved@xxxxxxxxxx>
    Fixes: 16a471177496 ("NFSD: add listener-{set,get} netlink command")
    Cc: Lorenzo Bianconi <lorenzo@xxxxxxxxxx>
    Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
    Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index c848ebe5d08f1..0f9b4f7b56cd8 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -2053,8 +2053,7 @@ int nfsd_nl_listener_set_doit(struct sk_buff *skb, struct genl_info *info)
 			continue;
 		}
 
-		ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa,
-					      SVC_SOCK_ANONYMOUS,
+		ret = svc_xprt_create_from_sa(serv, xcl_name, net, sa, 0,
 					      get_current_cred());
 		/* always save the latest error */
 		if (ret < 0)




[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