Control: reassign -1 src:linux
Control: forcemerge 1087900 -1

Hi Bill,

On Wed, Jan 15, 2025 at 08:02:18AM -0800, Bill Brelsford wrote:
> On Wed Jan 15 2025 at 07:08 AM +0100, Salvatore Bonaccorso wrote:
> > > But it still fails in testing (trixie).  I'll try to determine what
> > > future package update fixes it.
> > 
> > I have a suspect what it can be. Can you please post the kernel log /
> > dmesg from the systems which do not work please?
> 
> Attached is dmesg from trixie.
> 
> Bill

[...]
> [   33.734128] r8169 0000:05:07.0 eth0: Link is Up - 100Mbps/Full - flow 
> control rx/tx
> [   40.873091] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state 
> recovery directory
> [   40.967422] NFSD: Using legacy client tracking operations.
> [   40.971774] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state 
> recovery directory
> [   40.976080] ------------[ cut here ]------------
> [   40.980166] kernel BUG at fs/nfsd/nfs4recover.c:534!
> [   40.984266] Oops: invalid opcode: 0000 [#1] PREEMPT SMP PTI
> [   40.988166] CPU: 0 UID: 0 PID: 1935 Comm: rpc.nfsd Not tainted 
> 6.12.6-amd64 #1  Debian 6.12.6-1
> [   40.988236] Hardware name: To Be Filled By O.E.M. S62E/S62E, BIOS 0303    
> 08/03/2007
> [   40.988236] RIP: 0010:nfsd4_legacy_tracking_init+0x17d/0x1b0 [nfsd]
> [   40.988236] Code: 19 48 89 de 48 c7 c7 50 99 cb c1 e8 6d fb ff ff 89 c5 85 
> c0 0f 85 10 61 00 00 48 c7 c7 90 f3 d2 c1 31 ed e8 85 26 3e f8 eb 07 <0f> 0b 
> bd f4 ff ff ff 48 8b 44 24 08 65 48 2b 04 25 28 00 00 00 75
> [   40.988236] RSP: 0018:ffffbc09c0f87c80 EFLAGS: 00010282
> [   40.988236] RAX: 0000000000000049 RBX: ffffa0364b4d8000 RCX: 
> 0000000000000003
> [   40.988236] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 
> 0000000000000001
> [   40.988236] RBP: ffffffffbbca3600 R08: 0000000000000000 R09: 
> ffffbc09c0f87b10
> [   40.988236] R10: ffffffffbb0b4348 R11: 0000000000000003 R12: 
> ffffa0364b4d8000
> [   40.988236] R13: ffffa0364b4d8000 R14: ffffa0364c306b40 R15: 
> ffffa0364b4d8000
> [   40.988236] FS:  00007faff2288740(0000) GS:ffffa036bd400000(0000) 
> knlGS:0000000000000000
> [   40.988236] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [   40.988236] CR2: 00007f0d8a7e1320 CR3: 0000000002cfc000 CR4: 
> 00000000000026f0
> [   40.988236] Call Trace:
> [   40.988236]  <TASK>
> [   40.988236]  ? __die_body.cold+0x19/0x27
> [   40.988236]  ? die+0x2e/0x50
> [   40.988236]  ? do_trap+0xca/0x110
> [   40.988236]  ? do_error_trap+0x6a/0x90
> [   40.988236]  ? nfsd4_legacy_tracking_init+0x17d/0x1b0 [nfsd]
> [   40.988236]  ? exc_invalid_op+0x50/0x70
> [   40.988236]  ? nfsd4_legacy_tracking_init+0x17d/0x1b0 [nfsd]
> [   40.988236]  ? asm_exc_invalid_op+0x1a/0x20
> [   40.988236]  ? nfsd4_legacy_tracking_init+0x17d/0x1b0 [nfsd]
> [   40.988236]  nfsd4_client_tracking_init+0x57/0x1b0 [nfsd]
> [   40.988236]  nfs4_state_start_net+0x2f9/0x3a0 [nfsd]
> [   40.988236]  nfsd_svc+0x1ac/0x310 [nfsd]
> [   40.988236]  write_threads+0xf9/0x1c0 [nfsd]
> [   40.988236]  ? __pfx_write_threads+0x10/0x10 [nfsd]
> [   40.988236]  nfsctl_transaction_write+0x4a/0x80 [nfsd]
> [   40.988236]  vfs_write+0xf8/0x450
> [   40.988236]  ksys_write+0x6d/0xf0
> [   40.988236]  do_syscall_64+0x82/0x190
> [   40.988236]  ? do_user_addr_fault+0x36c/0x620
> [   40.988236]  ? exc_page_fault+0x7e/0x180
> [   40.988236]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
> [   40.988236] RIP: 0033:0x7faff238f090
> [   40.988236] Code: 2d 0e 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 66 2e 0f 
> 1f 84 00 00 00 00 00 80 3d d9 af 0e 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 
> 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
> [   40.988236] RSP: 002b:00007ffeff5e5298 EFLAGS: 00000202 ORIG_RAX: 
> 0000000000000001
> [   40.988236] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 
> 00007faff238f090
> [   40.988236] RDX: 0000000000000003 RSI: 000055744ca80340 RDI: 
> 0000000000000003
> [   40.988236] RBP: 000055744ca80340 R08: 0000000000000064 R09: 
> 00000000fffffffe
> [   40.988236] R10: 0000000000000000 R11: 0000000000000202 R12: 
> 0000000000020000
> [   40.988236] R13: 000055744ca7c116 R14: 000055748c50c2a0 R15: 
> 0000000000000000
> [   40.988236]  </TASK>
> [   40.988236] Modules linked in: xt_nat ipt_REJECT nf_reject_ipv4 
> xt_conntrack xt_tcpudp iptable_mangle iptable_nat nf_nat nf_conntrack 
> nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter ip_tables x_tables 
> nfsd auth_rpcgss nfs_acl nfs lockd grace netfs sunrpc firewire_sbp2 sr_mod 
> at24 cdrom iTCO_wdt intel_pmc_bxt iTCO_vendor_support watchdog coretemp i915 
> kvm_intel snd_hda_codec_si3054 snd_hda_codec_realtek kvm 
> snd_hda_codec_generic snd_hda_scodec_component snd_hda_intel uvcvideo 
> drm_buddy iwl4965 snd_intel_dspcfg snd_intel_sdw_acpi sha512_ssse3 
> drm_display_helper snd_hda_codec sha256_ssse3 cec videobuf2_vmalloc iwlegacy 
> uvc snd_hda_core videobuf2_memops rc_core sha1_ssse3 snd_hwdep mac80211 
> videobuf2_v4l2 snd_pcm_oss ttm r852 snd_mixer_oss videodev snd_pcm sm_common 
> drm_kms_helper firewire_ohci nand r8169 snd_timer pcspkr drm firewire_core 
> libarc4 i2c_i801 nandcore joydev sdhci_pci videobuf2_common snd asus_laptop 
> acpi_cpufreq cfg80211 cqhci realtek sparse_keymap i2c_smbus sdhci mdio_devres 
> bch r592 ata_generic
> [   40.988236]  mmc_core mc libphy i2c_algo_bit soundcore mtd crc_itu_t 
> memstick sg ata_piix rfkill video ehci_pci ac lpc_ich wmi button battery ext4 
> crc16 mbcache jbd2 crc32c_generic xts dm_crypt dm_mod hid_generic usbhid hid 
> sd_mod uhci_hcd ehci_hcd ahci libahci usbcore psmouse libata evdev scsi_mod 
> serio_raw usb_common scsi_common
> [   41.220014] ---[ end trace 0000000000000000 ]---
> [   41.221857] RIP: 0010:nfsd4_legacy_tracking_init+0x17d/0x1b0 [nfsd]
> [   41.223642] Code: 19 48 89 de 48 c7 c7 50 99 cb c1 e8 6d fb ff ff 89 c5 85 
> c0 0f 85 10 61 00 00 48 c7 c7 90 f3 d2 c1 31 ed e8 85 26 3e f8 eb 07 <0f> 0b 
> bd f4 ff ff ff 48 8b 44 24 08 65 48 2b 04 25 28 00 00 00 75
> [   41.227245] RSP: 0018:ffffbc09c0f87c80 EFLAGS: 00010282
> [   41.229058] RAX: 0000000000000049 RBX: ffffa0364b4d8000 RCX: 
> 0000000000000003
> [   41.230870] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 
> 0000000000000001
> [   41.232683] RBP: ffffffffbbca3600 R08: 0000000000000000 R09: 
> ffffbc09c0f87b10
> [   41.234502] R10: ffffffffbb0b4348 R11: 0000000000000003 R12: 
> ffffa0364b4d8000
> [   41.236326] R13: ffffa0364b4d8000 R14: ffffa0364c306b40 R15: 
> ffffa0364b4d8000
> [   41.238171] FS:  00007faff2288740(0000) GS:ffffa036bd400000(0000) 
> knlGS:0000000000000000
> [   41.240047] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [   41.241942] CR2: 00007f0d8a7e1320 CR3: 0000000002cfc000 CR4: 
> 00000000000026f0
> [   43.937663] warning: `iwconfig' uses wireless extensions which will stop 
> working for Wi-Fi 7 hardware; use nl80211
> [   48.021236] Key type dns_resolver registered
> [   48.660788] NFS: Registering the id_resolver key type
> [   48.662980] Key type id_resolver registered
> [   48.665164] Key type id_legacy registered

So this is what I suspected. This is #1087900 in src:linux and fixed
in 6.12.8-1.

I'm reassigning and merging the two bugs.

*But* that said, I strongly encourage you to switch to a systemd
running system for your nfs server. We still ship the init scripts in
the packaging, but for instance you do not start with them the more
advanced client tracking daemons. The legacy tracking methods will
disapear at some point upstream completely and in fact for the next
experimental upload I aim to disable NFSD_LEGACY_CLIENT_TRACKING
(cf.
https://salsa.debian.org/kernel-team/linux/-/merge_requests/1298).

Thanks for the report!

Regards,
Salvatore

Reply via email to