kernel BUG at fs/nfsd/nfs4recover.c:534 Oops: invalid opcode: 0000
Subsystems (2)
Jur van der Burg writes via Kernel.org Bugzilla:
I've got an instant crash when starting the nfs server on kernel 6.12.2. Previous kernels (at least up to 6.6.56) were fine:
Dec 9 12:51:15 hostx kernel: [ 66.833082] RPC: Registered named UNIX socket transport module. Dec 9 12:51:15 hostx kernel: [ 66.833088] RPC: Registered udp transport module. Dec 9 12:51:15 hostx kernel: [ 66.833089] RPC: Registered tcp transport module. Dec 9 12:51:15 hostx kernel: [ 66.833090] RPC: Registered tcp-with-tls transport module. Dec 9 12:51:15 hostx kernel: [ 66.833091] RPC: Registered tcp NFSv4.1 backchannel transport module. Dec 9 12:51:17 hostx kernel: [ 68.010707] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Dec 9 12:51:17 hostx kernel: [ 68.010740] NFSD: Using legacy client tracking operations. Dec 9 12:51:17 hostx kernel: [ 68.010744] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Dec 9 12:51:17 hostx kernel: [ 68.010790] ------------[ cut here ]------------ Dec 9 12:51:17 hostx kernel: [ 68.010792] kernel BUG at fs/nfsd/nfs4recover.c:534! Dec 9 12:51:17 hostx kernel: [ 68.010808] Oops: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI Dec 9 12:51:17 hostx kernel: [ 68.011526] CPU: 3 UID: 0 PID: 5020 Comm: rpc.nfsd Not tainted 6.12.2-0.1-vtserver #1 Dec 9 12:51:17 hostx kernel: [ 68.011921] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 11/12/2020 Dec 9 12:51:17 hostx kernel: [ 68.012320] RIP: 0010:nfsd4_legacy_tracking_init+0x20b/0x260 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.012843] Code: 48 8b 1c d8 e8 c6 e1 68 e0 48 8b bb 30 01 00 00 48 85 ff 74 10 e8 c5 81 8f e0 48 c7 83 30 01 00 00 00 00 00 00 44 89 e3 eb 8b <0f> 0b 48 c7 c6 80 97 ae a0 48 c7 c7 b8 de b3 a0 e8 70 62 66 e0 8b Dec 9 12:51:17 hostx kernel: [ 68.013647] RSP: 0018:ffffc900009bbce8 EFLAGS: 00010282 Dec 9 12:51:17 hostx kernel: [ 68.014043] RAX: 0000000000000049 RBX: 000000000000000b RCX: 0000000000000000 Dec 9 12:51:17 hostx kernel: [ 68.014437] RDX: 0000000000000000 RSI: ffffffff824792fb RDI: 00000000ffffffff Dec 9 12:51:17 hostx kernel: [ 68.014825] RBP: ffff888115dda000 R08: 00000000ffff7fff R09: 0000000000000058 Dec 9 12:51:17 hostx kernel: [ 68.015214] R10: 00000000ffff7fff R11: ffffffff82852f00 R12: ffff888115dda000 Dec 9 12:51:17 hostx kernel: [ 68.015602] R13: ffff888115dda000 R14: ffff888115dda000 R15: ffff8881172b9e40 Dec 9 12:51:17 hostx kernel: [ 68.015989] FS: 00007f99b2cb1740(0000) GS:ffff888237cc0000(0000) knlGS:0000000000000000 Dec 9 12:51:17 hostx kernel: [ 68.016383] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Dec 9 12:51:17 hostx kernel: [ 68.016791] CR2: 00007f0f31eef190 CR3: 000000013f422003 CR4: 00000000001706f0 Dec 9 12:51:17 hostx kernel: [ 68.017237] Call Trace: Dec 9 12:51:17 hostx kernel: [ 68.017640] <TASK> Dec 9 12:51:17 hostx kernel: [ 68.018024] ? die+0x43/0xb0 Dec 9 12:51:17 hostx kernel: [ 68.018415] ? do_trap+0x119/0x150 Dec 9 12:51:17 hostx kernel: [ 68.018798] ? nfsd4_legacy_tracking_init+0x20b/0x260 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.019294] ? do_error_trap+0x87/0xc0 Dec 9 12:51:17 hostx kernel: [ 68.019692] ? nfsd4_legacy_tracking_init+0x20b/0x260 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.020179] ? exc_invalid_op+0x53/0x70 Dec 9 12:51:17 hostx kernel: [ 68.020560] ? nfsd4_legacy_tracking_init+0x20b/0x260 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.021031] ? asm_exc_invalid_op+0x16/0x20 Dec 9 12:51:17 hostx kernel: [ 68.021410] ? nfsd4_legacy_tracking_init+0x20b/0x260 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.021894] ? nfsd4_legacy_tracking_init+0xc4/0x260 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.022367] nfsd4_client_tracking_init+0x1a5/0x1e0 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.022862] nfs4_state_start_net+0x2d1/0x440 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.023347] nfsd_svc+0x1c5/0x330 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.023827] ? simple_strntoull+0xa8/0xc0 Dec 9 12:51:17 hostx kernel: [ 68.024203] write_threads+0xc8/0x1a0 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.024684] ? preempt_count_add+0x69/0xa0 Dec 9 12:51:17 hostx kernel: [ 68.025065] ? _copy_from_user+0x25/0x60 Dec 9 12:51:17 hostx kernel: [ 68.025449] ? _raw_spin_unlock+0x15/0x30 Dec 9 12:51:17 hostx kernel: [ 68.025850] ? simple_transaction_get+0xcb/0xe0 Dec 9 12:51:17 hostx kernel: [ 68.026233] ? __pfx_write_threads+0x10/0x10 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.026724] nfsctl_transaction_write+0x51/0xa0 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.027219] vfs_write+0x136/0x480 Dec 9 12:51:17 hostx kernel: [ 68.027610] ksys_write+0x71/0x100 Dec 9 12:51:17 hostx kernel: [ 68.027990] do_syscall_64+0x4b/0x110 Dec 9 12:51:17 hostx kernel: [ 68.028371] entry_SYSCALL_64_after_hwframe+0x76/0x7e Dec 9 12:51:17 hostx kernel: [ 68.028779] RIP: 0033:0x7f99b2679be4 Dec 9 12:51:17 hostx kernel: [ 68.029162] Code: 84 00 00 00 00 00 48 8b 05 09 84 20 00 c3 0f 1f 84 00 00 00 00 00 8b 05 0a c8 20 00 48 63 ff 85 c0 75 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 f3 c3 66 90 55 53 48 89 d5 48 89 f3 48 83 Dec 9 12:51:17 hostx kernel: [ 68.029994] RSP: 002b:00007ffdd307a0d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 Dec 9 12:51:17 hostx kernel: [ 68.030427] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f99b2679be4 Dec 9 12:51:17 hostx kernel: [ 68.030857] RDX: 0000000000000002 RSI: 0000000000608600 RDI: 0000000000000003 Dec 9 12:51:17 hostx kernel: [ 68.031291] RBP: 0000000000000002 R08: 0000000000000001 R09: 0000000000000000 Dec 9 12:51:17 hostx kernel: [ 68.031748] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 Dec 9 12:51:17 hostx kernel: [ 68.032181] R13: 0000000000000001 R14: 0000000000000000 R15: 00007ffdd307bde6 Dec 9 12:51:17 hostx kernel: [ 68.032610] </TASK> Dec 9 12:51:17 hostx kernel: [ 68.033015] Modules linked in: nfsd auth_rpcgss nfs_acl lockd grace sunrpc iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi target_core_mod usbip_host vhci_hcd usbip_core vsock_loopback vmw_vsock_virtio_transport_common vmw_vsock_vmci_transport vsock veth bridge stp llc crc32c_intel ghash_clmulni_intel aesni_intel crypto_simd cryptd rapl vmwgfx drm_ttm_helper ttm drm_kms_helper drm pata_acpi cpuspeed vmw_balloon uhci_hcd sr_mod psmouse e1000e serio_raw pcspkr vmxnet3 ehci_pci e1000 vmw_vmci cdrom ehci_hcd vmw_pvscsi i2c_piix4 i2c_smbus ac button usbhid xhci_pci xhci_hcd usbcore usb_common dm_multipath dm_mod dax nvme nvme_core virtio_net net_failover failover virtio_scsi virtio_blk virtio_pci virtio_pci_legacy_dev virtio_pci_modern_dev virtio_ring virtio ata_generic pata_atiixp fan thermal Dec 9 12:51:17 hostx kernel: [ 68.035844] ---[ end trace 0000000000000000 ]--- Dec 9 12:51:17 hostx kernel: [ 68.036353] RIP: 0010:nfsd4_legacy_tracking_init+0x20b/0x260 [nfsd] Dec 9 12:51:17 hostx kernel: [ 68.036946] Code: 48 8b 1c d8 e8 c6 e1 68 e0 48 8b bb 30 01 00 00 48 85 ff 74 10 e8 c5 81 8f e0 48 c7 83 30 01 00 00 00 00 00 00 44 89 e3 eb 8b <0f> 0b 48 c7 c6 80 97 ae a0 48 c7 c7 b8 de b3 a0 e8 70 62 66 e0 8b Dec 9 12:51:17 hostx kernel: [ 68.037974] RSP: 0018:ffffc900009bbce8 EFLAGS: 00010282 Dec 9 12:51:17 hostx kernel: [ 68.038509] RAX: 0000000000000049 RBX: 000000000000000b RCX: 0000000000000000 Dec 9 12:51:17 hostx kernel: [ 68.039021] RDX: 0000000000000000 RSI: ffffffff824792fb RDI: 00000000ffffffff Dec 9 12:51:17 hostx kernel: [ 68.039562] RBP: ffff888115dda000 R08: 00000000ffff7fff R09: 0000000000000058 Dec 9 12:51:17 hostx kernel: [ 68.040074] R10: 00000000ffff7fff R11: ffffffff82852f00 R12: ffff888115dda000 Dec 9 12:51:17 hostx kernel: [ 68.040618] R13: ffff888115dda000 R14: ffff888115dda000 R15: ffff8881172b9e40 Dec 9 12:51:17 hostx kernel: [ 68.041135] FS: 00007f99b2cb1740(0000) GS:ffff888237cc0000(0000) knlGS:0000000000000000 Dec 9 12:51:17 hostx kernel: [ 68.041692] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Dec 9 12:51:17 hostx kernel: [ 68.042230] CR2: 00007f0f31eef190 CR3: 000000013f422003 CR4: 00000000001706f0
I found one reference to the same issue but no solution:
https://www.mail-archive.com/[email protected]/msg139065.html
This is 100% reproducable at will.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c0
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
Chuck Lever writes via Kernel.org Bugzilla:
The Debian folks have been seeing this issue since at least 6.11.9, so it was introduced well before 6.12.2. Start by bisecting the Linus branch (not stable) to see which commit introduced this issue.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c1
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.
Signature · 2 lines
Deet-doot-dot, I am a bot. Kernel.org Bugzilla (bugspray 0.1-dev)
Hi Jur,
Quoted 8 lines · Jur van der Burg via Bugspray Bot
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.
Are you sure this is solved? I got hit by this today after trying to check the report from another Debian user:
https://bugs.debian.org/1091439
the earlier report was
https://bugs.debian.org/1087900
Surprisingly I managed to hit this, after:
Doing a fresh Debian installation with Debian unstable, rebooting after installation. The running kernel is 6.12.6-1 (but now believe it might be hit in any sufficient earlier version):
Notably, in kernel-log I see as well
[ 50.295209] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 52.158301] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 52.158333] NFSD: Using legacy client tracking operations. [ 52.158337] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Normally it should have been (if using the more modern client racking operations):
[ 145.851951] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 146.891838] NFSD: Using nfsdcld client tracking operations. [ 146.891844] NFSD: no clients to reclaim, skipping NFSv4 grace period (net f0000000)
I can reproduce it if I do in following order:
Install Debian unstable, reboot after installation.
Install nfs-kernel-server package with its dependencies.
In our case this is nfs-utils upstream already at 2.8.2.
I notice the following observation: When installing under this condition the package freshly there is not yet a valid:
/var/lib/nfs/nfsdcld/main.sqlite
for the nfsdcld, and so it used the legacy client tracking.
At this point we get the splat. if before installing the packages I initialize /var/lib/nfs/nfsdcld/main.sqlite:
mkdir -p /var/lib/nfs/nfsdcld
chmod -c 0700 /var/lib/nfs/nfsdcld/
and
sqlite3 /var/lib/nfs/nfsdcld/main.sqlite <<SQL CREATE TABLE parameters (key TEXT PRIMARY KEY, value TEXT); CREATE TABLE grace (current INTEGER , recovery INTEGER); INSERT OR FAIL INTO grace values (1, 0);
INSERT OR FAIL INTO parameters values ("version", "4"); INSERT OR FAIL INTO parameters values ("first_time", "1"); SQL
So to me it looks that the problem arises from actually starting the services were we have to fallback to the legacy method as we cannot use yet nfsdcld.
One other observation: if while installing the package the nfsdcltrack utility is available and the these NFS client tracking methods are availabe, it seems that the issue is not hit, and dmesg shows
[ 216.206678] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 218.215961] NFSD: Using UMH upcall client tracking operations. [ 218.218074] NFSD: Using UMH upcall client tracking operations. [ 218.218078] NFSD: starting 90-second grace period (net f0000000)
In the most recent nfs-utils packages we do actually not install nfsdcltrack anymore as as I understand it's encouraged to move away form it as nfsdcld is available.
Regards,
Salvatore
Quoted 25 lines · Salvatore Bonaccorso
Hi Jur,
Quoted 8 lines · Jur van der Burg via Bugspray Bot
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.Are you sure this is solved? I got hit by this today after trying to check the report from another Debian user:
https://bugs.debian.org/1091439
the earlier report was
https://bugs.debian.org/1087900Surprisingly I managed to hit this, after:
Doing a fresh Debian installation with Debian unstable, rebooting after installation. The running kernel is 6.12.6-1 (but now believe it might be hit in any sufficient earlier version):
Quoted 5 lines
Notably, in kernel-log I see as well
[ 50.295209] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 52.158301] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 52.158333] NFSD: Using legacy client tracking operations.
Hi Salvatore,
If you no longer provision nfsdcltrack in user space, then you want to set CONFIG_NFSD_LEGACY_CLIENT_TRACKING to 'N' in your kernel config.
Otherwise, Scott Mayhew is the area expert (cc'd).
Quoted 60 lines
[ 52.158337] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directoryNormally it should have been (if using the more modern client racking operations):
[ 145.851951] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 146.891838] NFSD: Using nfsdcld client tracking operations. [ 146.891844] NFSD: no clients to reclaim, skipping NFSv4 grace period (net f0000000)I can reproduce it if I do in following order:
Install Debian unstable, reboot after installation.
Install nfs-kernel-server package with its dependencies.
In our case this is nfs-utils upstream already at 2.8.2.
I notice the following observation: When installing under this condition the package freshly there is not yet a valid:
/var/lib/nfs/nfsdcld/main.sqlitefor the nfsdcld, and so it used the legacy client tracking.
At this point we get the splat. if before installing the packages I initialize
/var/lib/nfs/nfsdcld/main.sqlite:mkdir -p
/var/lib/nfs/nfsdcld
chmod -c 0700/var/lib/nfs/nfsdcld/and
sqlite3
/var/lib/nfs/nfsdcld/main.sqlite<<SQL CREATE TABLE parameters (key TEXT PRIMARY KEY, value TEXT); CREATE TABLE grace (current INTEGER , recovery INTEGER); INSERT OR FAIL INTO grace values (1, 0);
INSERT OR FAIL INTO parameters values ("version", "4"); INSERT OR FAIL INTO parameters values ("first_time", "1"); SQLSo to me it looks that the problem arises from actually starting the services were we have to fallback to the legacy method as we cannot use yet nfsdcld.
One other observation: if while installing the package the nfsdcltrack utility is available and the these NFS client tracking methods are availabe, it seems that the issue is not hit, and dmesg shows
[ 216.206678] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 218.215961] NFSD: Using UMH upcall client tracking operations. [ 218.218074] NFSD: Using UMH upcall client tracking operations. [ 218.218078] NFSD: starting 90-second grace period (net f0000000)In the most recent nfs-utils packages we do actually not install nfsdcltrack anymore as as I understand it's encouraged to move away form it as nfsdcld is available.
Regards,
Salvatore
Signature · 1 line
Chuck Lever
Hi Chuck, hi all,
Quoted 28 lines · Chuck Lever
Quoted 27 lines · Salvatore Bonaccorso
Hi Jur,
Quoted 8 lines · Jur van der Burg via Bugspray Bot
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.Are you sure this is solved? I got hit by this today after trying to check the report from another Debian user:
https://bugs.debian.org/1091439
the earlier report was
https://bugs.debian.org/1087900Surprisingly I managed to hit this, after:
Doing a fresh Debian installation with Debian unstable, rebooting after installation. The running kernel is 6.12.6-1 (but now believe it might be hit in any sufficient earlier version):
Notably, in kernel-log I see as well
Quoted 8 lines
Quoted 3 lines
[ 50.295209] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 52.158301] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 52.158333] NFSD: Using legacy client tracking operations.Hi Salvatore,
If you no longer provision nfsdcltrack in user space, then you want to set
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGto 'N' in your kernel config.
Right, while this might not be possible right now in the distribution, to confirm, setting CONFIG_NFSD_LEGACY_CLIENT_TRACKING would resolve the problem. In the distribution I think we would not yet be able to do a hard cut for planned next stable release.
Remember, that in Debian we only with the current stable release got again somehow on "track" with nfs-utils code.
Quoted 1 line
Otherwise, Scott Mayhew is the area expert (cc'd).
Thanks!
I will try to get more narrow down to the versions to see where the problem might be introduced, but if you already have a clue, and know what we might try (e.g. commit revert on top, or patch) I'm happy to test this as well (since now reliably able to trigger it).
Regards,
Salvatore
Hi,
Quoted 48 lines · Salvatore Bonaccorso
Hi Chuck, hi all,
Quoted 28 lines · Chuck Lever
Quoted 27 lines · Salvatore Bonaccorso
Hi Jur,
Quoted 8 lines · Jur van der Burg via Bugspray Bot
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.Are you sure this is solved? I got hit by this today after trying to check the report from another Debian user:
https://bugs.debian.org/1091439
the earlier report was
https://bugs.debian.org/1087900Surprisingly I managed to hit this, after:
Doing a fresh Debian installation with Debian unstable, rebooting after installation. The running kernel is 6.12.6-1 (but now believe it might be hit in any sufficient earlier version):
Notably, in kernel-log I see as well
Quoted 8 lines
Quoted 3 lines
[ 50.295209] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 52.158301] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 52.158333] NFSD: Using legacy client tracking operations.Hi Salvatore,
If you no longer provision nfsdcltrack in user space, then you want to set
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGto 'N' in your kernel config.Right, while this might not be possible right now in the distribution, to confirm, setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGwould resolve the problem. In the distribution I think we would not yet be able to do a hard cut for planned next stable release.Remember, that in Debian we only with the current stable release got again somehow on "track" with nfs-utils code.
Quoted 8 lines
Quoted 1 line
Otherwise, Scott Mayhew is the area expert (cc'd).
Thanks!
I will try to get more narrow down to the versions to see where the problem might be introduced, but if you already have a clue, and know what we might try (e.g. commit revert on top, or patch) I'm happy to test this as well (since now reliably able to trigger it).
Okay so this was maybe obvious for you already but bisecting leads to the first bad commit beeing:
74fd48739d04 ("nfsd: new Kconfig option for legacy client tracking")
The Problem is not present in v6.7 and it is triggerable with 74fd48739d04 ("nfsd: new Kconfig option for legacy client tracking")
Most importantly as the switch to defaulting to y was only in later versions, explicitly setting CONFIG_NFSD_LEGACY_CLIENT_TRACKING=y.
Regards,
Salvatore
Quoted 63 lines · Salvatore Bonaccorso
Hi,
Quoted 48 lines · Salvatore Bonaccorso
Hi Chuck, hi all,
Quoted 28 lines · Chuck Lever
Quoted 27 lines · Salvatore Bonaccorso
Hi Jur,
Quoted 8 lines · Jur van der Burg via Bugspray Bot
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.Are you sure this is solved? I got hit by this today after trying to check the report from another Debian user:
https://bugs.debian.org/1091439
the earlier report was
https://bugs.debian.org/1087900Surprisingly I managed to hit this, after:
Doing a fresh Debian installation with Debian unstable, rebooting after installation. The running kernel is 6.12.6-1 (but now believe it might be hit in any sufficient earlier version):
Notably, in kernel-log I see as well
Quoted 8 lines
Quoted 3 lines
[ 50.295209] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 52.158301] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 52.158333] NFSD: Using legacy client tracking operations.Hi Salvatore,
If you no longer provision nfsdcltrack in user space, then you want to set
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGto 'N' in your kernel config.Right, while this might not be possible right now in the distribution, to confirm, setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGwould resolve the problem. In the distribution I think we would not yet be able to do a hard cut for planned next stable release.Remember, that in Debian we only with the current stable release got again somehow on "track" with nfs-utils code.
Quoted 8 lines
Quoted 1 line
Otherwise, Scott Mayhew is the area expert (cc'd).
Thanks!
I will try to get more narrow down to the versions to see where the problem might be introduced, but if you already have a clue, and know what we might try (e.g. commit revert on top, or patch) I'm happy to test this as well (since now reliably able to trigger it).
Okay so this was maybe obvious for you already but bisecting leads to the first bad commit beeing:
Quoted 7 lines
74fd48739d04("nfsd: newKconfigoption for legacy client tracking")The Problem is not present in v6.7 and it is triggerable with
74fd48739d04("nfsd: newKconfigoption for legacy client tracking")Most importantly as the switch to defaulting to y was only in later versions, explicitly setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKING=y.
Hi Salvatore -
I see that Scott recently sent a fix for a similar crash to linux-nfs@ :
https://lore.kernel.org/linux-nfs/[email protected]/T/#t
Signature · 1 line
Chuck Lever
Hi,
Quoted 69 lines · Chuck Lever
Quoted 68 lines · Salvatore Bonaccorso
Hi,
Quoted 48 lines · Salvatore Bonaccorso
Hi Chuck, hi all,
Quoted 28 lines · Chuck Lever
Quoted 27 lines · Salvatore Bonaccorso
Hi Jur,
Quoted 8 lines · Jur van der Burg via Bugspray Bot
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.Are you sure this is solved? I got hit by this today after trying to check the report from another Debian user:
https://bugs.debian.org/1091439
the earlier report was
https://bugs.debian.org/1087900Surprisingly I managed to hit this, after:
Doing a fresh Debian installation with Debian unstable, rebooting after installation. The running kernel is 6.12.6-1 (but now believe it might be hit in any sufficient earlier version):
Notably, in kernel-log I see as well
Quoted 8 lines
Quoted 3 lines
[ 50.295209] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 52.158301] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 52.158333] NFSD: Using legacy client tracking operations.Hi Salvatore,
If you no longer provision nfsdcltrack in user space, then you want to set
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGto 'N' in your kernel config.Right, while this might not be possible right now in the distribution, to confirm, setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGwould resolve the problem. In the distribution I think we would not yet be able to do a hard cut for planned next stable release.Remember, that in Debian we only with the current stable release got again somehow on "track" with nfs-utils code.
Quoted 8 lines
Quoted 1 line
Otherwise, Scott Mayhew is the area expert (cc'd).
Thanks!
I will try to get more narrow down to the versions to see where the problem might be introduced, but if you already have a clue, and know what we might try (e.g. commit revert on top, or patch) I'm happy to test this as well (since now reliably able to trigger it).
Okay so this was maybe obvious for you already but bisecting leads to the first bad commit beeing:
74fd48739d04("nfsd: newKconfigoption for legacy client tracking")The Problem is not present in v6.7 and it is triggerable with
74fd48739d04("nfsd: newKconfigoption for legacy client tracking")
Quoted 8 lines
Quoted 2 lines
Most importantly as the switch to defaulting to y was only in later versions, explicitly setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKING=y.Hi Salvatore -
I see that Scott recently sent a fix for a similar crash to linux-nfs@ :
Oh right, this described escactly the problem.
Do you think that can be made reaching 6.13 as well (and then cherry-picked to the affected stable series 6.12.y) or do we have to wait for landing in 6.14 first?
Regards,
Salvatore
Quoted 79 lines · Salvatore Bonaccorso
Hi,
Quoted 76 lines · Chuck Lever
Quoted 63 lines · Salvatore Bonaccorso
Hi,
Quoted 48 lines · Salvatore Bonaccorso
Hi Chuck, hi all,
Quoted 28 lines · Chuck Lever
Quoted 27 lines · Salvatore Bonaccorso
Hi Jur,
Quoted 8 lines · Jur van der Burg via Bugspray Bot
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.Are you sure this is solved? I got hit by this today after trying to check the report from another Debian user:
https://bugs.debian.org/1091439
the earlier report was
https://bugs.debian.org/1087900Surprisingly I managed to hit this, after:
Doing a fresh Debian installation with Debian unstable, rebooting after installation. The running kernel is 6.12.6-1 (but now believe it might be hit in any sufficient earlier version):
Notably, in kernel-log I see as well
Quoted 8 lines
Quoted 3 lines
[ 50.295209] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 52.158301] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 52.158333] NFSD: Using legacy client tracking operations.Hi Salvatore,
If you no longer provision nfsdcltrack in user space, then you want to set
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGto 'N' in your kernel config.Right, while this might not be possible right now in the distribution, to confirm, setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGwould resolve the problem. In the distribution I think we would not yet be able to do a hard cut for planned next stable release.Remember, that in Debian we only with the current stable release got again somehow on "track" with nfs-utils code.
Quoted 8 lines
Quoted 1 line
Otherwise, Scott Mayhew is the area expert (cc'd).
Thanks!
I will try to get more narrow down to the versions to see where the problem might be introduced, but if you already have a clue, and know what we might try (e.g. commit revert on top, or patch) I'm happy to test this as well (since now reliably able to trigger it).
Okay so this was maybe obvious for you already but bisecting leads to the first bad commit beeing:
Quoted 7 lines
74fd48739d04("nfsd: newKconfigoption for legacy client tracking")The Problem is not present in v6.7 and it is triggerable with
74fd48739d04("nfsd: newKconfigoption for legacy client tracking")Most importantly as the switch to defaulting to y was only in later versions, explicitly setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKING=y.Hi Salvatore -
I see that Scott recently sent a fix for a similar crash to linux-nfs@ :
Quoted 7 lines
Oh right, this described escactly the problem.
Do you think that can be made reaching 6.13 as well (and then cherry-picked to the affected stable series 6.12.y) or do we have to wait for landing in 6.14 first?
In nfsd-next, this fix is tagged:
So it will be backported to all appropriate earlier kernels as soon as it goes into Linus's master via the v6.14 merge window (in a couple of weeks).
Signature · 1 line
Chuck Lever
Hi Chuck,
Quoted 88 lines · Chuck Lever
Quoted 79 lines · Salvatore Bonaccorso
Hi,
Quoted 76 lines · Chuck Lever
Quoted 63 lines · Salvatore Bonaccorso
Hi,
Quoted 48 lines · Salvatore Bonaccorso
Hi Chuck, hi all,
Quoted 28 lines · Chuck Lever
Quoted 27 lines · Salvatore Bonaccorso
Hi Jur,
Quoted 8 lines · Jur van der Burg via Bugspray Bot
Jur van der Burg writes via Kernel.org Bugzilla:
I tried kernel 6.10.1 and that one is ok. In the mean time I upgraded nfs-utils from 2.5.1 to 2.8.1 which seems to fix the issue. Sorry for the noise, case closed.
View: https://bugzilla.kernel.org/show_bug.cgi?id=219580#c2
You can reply to this message to join the discussion.Are you sure this is solved? I got hit by this today after trying to check the report from another Debian user:
https://bugs.debian.org/1091439
the earlier report was
https://bugs.debian.org/1087900Surprisingly I managed to hit this, after:
Doing a fresh Debian installation with Debian unstable, rebooting after installation. The running kernel is 6.12.6-1 (but now believe it might be hit in any sufficient earlier version):
Notably, in kernel-log I see as well
Quoted 8 lines
Quoted 3 lines
[ 50.295209] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 52.158301] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory [ 52.158333] NFSD: Using legacy client tracking operations.Hi Salvatore,
If you no longer provision nfsdcltrack in user space, then you want to set
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGto 'N' in your kernel config.Right, while this might not be possible right now in the distribution, to confirm, setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKINGwould resolve the problem. In the distribution I think we would not yet be able to do a hard cut for planned next stable release.Remember, that in Debian we only with the current stable release got again somehow on "track" with nfs-utils code.
Quoted 8 lines
Quoted 1 line
Otherwise, Scott Mayhew is the area expert (cc'd).
Thanks!
I will try to get more narrow down to the versions to see where the problem might be introduced, but if you already have a clue, and know what we might try (e.g. commit revert on top, or patch) I'm happy to test this as well (since now reliably able to trigger it).
Okay so this was maybe obvious for you already but bisecting leads to the first bad commit beeing:
Quoted 7 lines
74fd48739d04("nfsd: newKconfigoption for legacy client tracking")The Problem is not present in v6.7 and it is triggerable with
74fd48739d04("nfsd: newKconfigoption for legacy client tracking")Most importantly as the switch to defaulting to y was only in later versions, explicitly setting
CONFIG_NFSD_LEGACY_CLIENT_TRACKING=y.Hi Salvatore -
I see that Scott recently sent a fix for a similar crash to linux-nfs@ :
Quoted 7 lines
Oh right, this described escactly the problem.
Do you think that can be made reaching 6.13 as well (and then cherry-picked to the affected stable series 6.12.y) or do we have to wait for landing in 6.14 first?
Quoted 7 lines
In nfsd-next, this fix is tagged:
Fixes 74fd48739d04 ("nfsd: new Kconfig option for legacy client tracking")So it will be backported to all appropriate earlier kernels as soon as it goes into Linus's master via the v6.14 merge window (in a couple of weeks).
Yes right, I was more wondering if it is eliglible for already land in v6.13 as it is a bufix. But the issue has been open for long already, so I guess waiting until it lands in v6.14 and then only get applied way down as needed has to be sufficient.
Thanks all for your work,
Regards,
Salvatore