Patch "nfs: Fix truncated client owner id without proto type" has been added to the 4.2-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
nfs: Fix truncated client owner id without proto type
to the 4.2-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:
nfs-fix-truncated-client-owner-id-without-proto-type.patch
and it can be found in the queue-4.2 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
4a70316caef7d158445e672e146eb9f1b8c1aeeeMon Sep 17 00:00:00 2001
From: Kinglong Mee <[email protected]>
Date: Mon, 31 Aug 2015 10:53:33 +0800
Subject: nfs: Fix truncated client owner id without proto type
From: Kinglong Mee <[email protected]>
commit 4a70316caef7d158445e672e146eb9f1b8c1aeee upstream.
The length of "Linux NFSv4.0 " is 14, not 10.
Without this patch, I get a truncated client owner id as, "Linux NFSv4.0 ::1/::1"
With this patch,
"Linux NFSv4.0 ::1/::1 tcp"
--- fs/nfs/nfs4proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4proc.c +1 -1
@@ -4989,7 +4989,7 @@ nfs4_init_nonuniform_client_string(strucreturn 0 ; retry:rcu_read_lock (); - len =10 +strlen (clp->cl_ipaddr) +1 + + len =14 +strlen (clp->cl_ipaddr) +1 +strlen (rpc_peeraddr2str (clp->cl_rpcclient,RPC_DISPLAY_ADDR )) +1 + strlen(rpc_peeraddr2str(clp->cl_rpcclient, RPC_DISPLAY_PROTO)) +
Patches currently in stable-queue which might be from [email protected] are
queue-4.2/nfs-fix-a-null-pointer-dereference-of-migration-recovery-ops-for-v4.2-client.patch queue-4.2/nfs-fix-truncated-client-owner-id-without-proto-type.patch queue-4.2/nfsd-fix-an-fs_layout_types-layout_types-encode-bug.patch