nfsd/nfsdctl: default to starting with v4.0 servers disabled
Subsystems (2)
Jeff Layton
maintainercover nfsd/nfsdctl: default to starting with v4.0 servers disabled
At this week's NFS Bakeathon, we had a discussion around deprecating the NFSv4.0 protocol. To prepare for that eventuality, make the NFS server only accept NFSv4.0 if it was explicitly requested in the config file or in command-line options.
---
Jeff Layton (2):
nfsd: disable v4.0 by default
nfsdctl: disable v4.0 by default
utils/nfsd/nfsd.c | 5 +++-- utils/nfsdctl/nfsdctl.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)
---
base-commit: 612e407c46b848932c32be00b835a7b5317e3d08
change-id: 20251008-master-724587cca99a
Best regards,
Signature · 1 line
Jeff Layton <[email protected]>
Jeff Layton
maintainerPATCH 1/2 nfsd: disable v4.0 by default
--- utils/nfsd/nfsd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
utils/nfsd/nfsd.c +3 -2
@@ -134,9 +134,10 @@ main(int argc, char **argv) } } -/* We assume the kernel will default all minor versions to 'on', -* and allow the config file to disable some. +/* We assume the kernel will default all minor versions besides '0' +* to 'on', and allow the config file to disable some. */ +NFSCTL_MINORUNSET (minorvers,0 );for (i =NFS4_MINMINOR ; i <=NFS4_MAXMINOR ; i++) {char tag[20 ];sprintf (tag,"vers4.%d" , i);
Signature · 1 line
2.51.0
Jeff Layton
maintainerPATCH 2/2 nfsdctl: disable v4.0 by default
In reply to Jeff Layton--- utils/nfsdctl/nfsdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/nfsdctl/nfsdctl.c +1 -1
@@ -1474,7 +1474,7 @@ static int configure_versions(void)* First apply the default versX.Y settings from nfs.conf. */ update_nfsd_version (3 ,0 , true); -update_nfsd_version (4 ,0 , true); +update_nfsd_version (4 ,0 , false);update_nfsd_version (4 ,1 , true);update_nfsd_version (4 ,2 , true);
Signature · 1 line
2.51.0
Jeff Layton
maintainerQuoted 11 lines · Jeff Layton
At this week's NFS Bakeathon, we had a discussion around deprecating the NFSv4.0 protocol. To prepare for that eventuality, make the NFS server only accept NFSv4.0 if it was explicitly requested in the config file or in command-line options.
Signed-off-by Jeff Layton <[email protected]>---
Jeff Layton (2):
nfsd: disable v4.0 by default
nfsdctl: disable v4.0 by default
Quoted 8 lines
utils/nfsd/nfsd.c | 5 +++-- utils/nfsdctl/nfsdctl.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)---
base-commit:612e407c46b848932c32be00b835a7b5317e3d08
change-id: 20251008-master-724587cca99aBest regards,
Steved, ping?
Also, if anyone else wants to send an Acked-by for this, I wouldn't complain.
Cheers,
Signature · 1 line
Jeff Layton <[email protected]>
Quoted 19 lines · Jeff Layton
Quoted 18 lines · Jeff Layton
At this week's NFS Bakeathon, we had a discussion around deprecating the NFSv4.0 protocol. To prepare for that eventuality, make the NFS server only accept NFSv4.0 if it was explicitly requested in the config file or in command-line options.
Signed-off-by Jeff Layton <[email protected]>---
Jeff Layton (2):
nfsd: disable v4.0 by default
nfsdctl: disable v4.0 by defaultutils/nfsd/nfsd.c | 5 +++-- utils/nfsdctl/nfsdctl.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)---
base-commit:612e407c46b848932c32be00b835a7b5317e3d08
change-id: 20251008-master-724587cca99a
Quoted 3 lines
Quoted 1 line
Best regards,
Steved, ping?
Working on it...
steved.
Quoted 5 lines
Also, if anyone else wants to send an Acked-by for this, I wouldn't complain.
Cheers,
Quoted 11 lines · Jeff Layton
At this week's NFS Bakeathon, we had a discussion around deprecating the NFSv4.0 protocol. To prepare for that eventuality, make the NFS server only accept NFSv4.0 if it was explicitly requested in the config file or in command-line options.
Signed-off-by Jeff Layton <[email protected]>---
Jeff Layton (2):
nfsd: disable v4.0 by default
nfsdctl: disable v4.0 by default
Quoted 8 lines
utils/nfsd/nfsd.c | 5 +++-- utils/nfsdctl/nfsdctl.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)---
base-commit:612e407c46b848932c32be00b835a7b5317e3d08
change-id: 20251008-master-724587cca99aBest regards,
Committed... (tag: nfs-utils-2-9-1-rc1)
My apologies for taking so long... The CVE took longer than expected and there was some issues with recent patches, which caused another release..
Turning off a protocol version (v4.0) on the server by default which this rc release does, is not a small thing although with the 7.X kernels the v4.0 client is already off.
So the next rc releases will contain the current outstanding patches (a rc release for each patch set) then creating another release (2.9.1)...
Definitely in time for the upcoming Bakeathon!
steved.
Hi Steve, Jeff,
Quoted 29 lines · Steve Dickson
Quoted 11 lines · Jeff Layton
At this week's NFS Bakeathon, we had a discussion around deprecating the NFSv4.0 protocol. To prepare for that eventuality, make the NFS server only accept NFSv4.0 if it was explicitly requested in the config file or in command-line options.
Signed-off-by Jeff Layton <[email protected]>---
Jeff Layton (2):
nfsd: disable v4.0 by default
nfsdctl: disable v4.0 by defaultQuoted 8 lines
utils/nfsd/nfsd.c | 5 +++-- utils/nfsdctl/nfsdctl.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)---
base-commit:612e407c46b848932c32be00b835a7b5317e3d08
change-id: 20251008-master-724587cca99aBest regards,
Committed... (tag: nfs-utils-2-9-1-rc1)
My apologies for taking so long... The CVE took longer than expected and there was some issues with recent patches, which caused another release..
Quoted 5 lines
Turning off a protocol version (v4.0) on the server by default which this rc release does, is not a small thing although with the 7.X kernels the v4.0 client is already off.
I have one small followup question on that. The nfs.conf reads:
[nfsd]
# debug=0
# threads=16
# host=
# port=0
# grace-time=90
# lease-time=90
# udp=n
# tcp=y
# vers3=y
# vers4=y
# vers4.0=y
# vers4.1=y
# vers4.2=y
[...]
Should the 'default off' change as well be reflected in the commented entry for vers4.0 and read vers4.0=n for consistency?
Regards,
Salvatore
Jeff Layton
maintainerQuoted 56 lines · Salvatore Bonaccorso
Hi Steve, Jeff,
Quoted 29 lines · Steve Dickson
Quoted 11 lines · Jeff Layton
At this week's NFS Bakeathon, we had a discussion around deprecating the NFSv4.0 protocol. To prepare for that eventuality, make the NFS server only accept NFSv4.0 if it was explicitly requested in the config file or in command-line options.
Signed-off-by Jeff Layton <[email protected]>---
Jeff Layton (2):
nfsd: disable v4.0 by default
nfsdctl: disable v4.0 by defaultQuoted 8 lines
utils/nfsd/nfsd.c | 5 +++-- utils/nfsdctl/nfsdctl.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)---
base-commit:612e407c46b848932c32be00b835a7b5317e3d08
change-id: 20251008-master-724587cca99aBest regards,
Committed... (tag: nfs-utils-2-9-1-rc1)
My apologies for taking so long... The CVE took longer than expected and there was some issues with recent patches, which caused another release..
Quoted 5 lines
Turning off a protocol version (v4.0) on the server by default which this rc release does, is not a small thing although with the 7.X kernels the v4.0 client is already off.
I have one small followup question on that. The nfs.conf reads:
[nfsd]
# debug=0
# threads=16
# host=
# port=0
# grace-time=90
# lease-time=90
# udp=n
# tcp=y
# vers3=y
# vers4=y
# vers4.0=y
# vers4.1=y
# vers4.2=y
[...]
Quoted 3 lines
Should the 'default off' change as well be reflected in the commented entry for vers4.0 and read vers4.0=n for consistency?
Yes, good catch. Would you mind spinning up a patch? If not, I'll do one in the near future.
Signature · 1 line
Jeff Layton <[email protected]>
Hi Jeff,
Quoted 57 lines · Jeff Layton
Quoted 56 lines · Salvatore Bonaccorso
Hi Steve, Jeff,
Quoted 29 lines · Steve Dickson
Quoted 11 lines · Jeff Layton
At this week's NFS Bakeathon, we had a discussion around deprecating the NFSv4.0 protocol. To prepare for that eventuality, make the NFS server only accept NFSv4.0 if it was explicitly requested in the config file or in command-line options.
Signed-off-by Jeff Layton <[email protected]>---
Jeff Layton (2):
nfsd: disable v4.0 by default
nfsdctl: disable v4.0 by defaultQuoted 8 lines
utils/nfsd/nfsd.c | 5 +++-- utils/nfsdctl/nfsdctl.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-)---
base-commit:612e407c46b848932c32be00b835a7b5317e3d08
change-id: 20251008-master-724587cca99aBest regards,
Committed... (tag: nfs-utils-2-9-1-rc1)
My apologies for taking so long... The CVE took longer than expected and there was some issues with recent patches, which caused another release..
Quoted 5 lines
Turning off a protocol version (v4.0) on the server by default which this rc release does, is not a small thing although with the 7.X kernels the v4.0 client is already off.
I have one small followup question on that. The nfs.conf reads:
[nfsd]
# debug=0
# threads=16
# host=
# port=0
# grace-time=90
# lease-time=90
# udp=n
# tcp=y
# vers3=y
# vers4=y
# vers4.0=y
# vers4.1=y
# vers4.2=y
[...]
Quoted 6 lines
Quoted 3 lines
Should the 'default off' change as well be reflected in the commented entry for vers4.0 and read vers4.0=n for consistency?
Yes, good catch. Would you mind spinning up a patch? If not, I'll do one in the near future.
Thanks for confirming, yes happy to provide a patch for that, will send it later the day.
Regards,
Salvatore