Public bug reported:

Unloading the r8127 module (e.g. on rmmod or driver update) can trigger
a kernel WARN from the networking stack because NAPI is deleted while it
is still enabled.

2026-02-09T21:16:19.010268+00:00 spark1 kernel: ------------[ cut here 
]------------
2026-02-09T21:16:19.010275+00:00 spark1 kernel: WARNING: CPU: 6 PID: 2047 at 
net/core/dev.c:7470 __netif_napi_del_locked+0x130/0x148
2026-02-09T21:16:19.010277+00:00 spark1 kernel: Modules linked in: sbsa_gwdt 
nvidia_drm(OE) drm_ttm_helper cppc_cpufreq acpi_power_meter acpi_ipmi 
ipmi_devintf ipmi_msghandler rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace 
netfs nvidia_modeset(O
E) qrtr sunrpc binfmt_misc nls_iso8859_1 btusb btrtl nvidia(OE) mt7925e btintel 
mt7925_common btbcm mt792x_lib btmtk mt76_connac_lib bluetooth mt76 
snd_hda_codec_tegrahdmi mac80211 snd_hda_codec_hdmi cfg80211 video arm_spe_pmu 
arm_smmuv3_pmu snd_hd
a_acpi libarc4 ttm snd_hda_codec snd_hwdep mlx5_fwctl snd_hda_core fwctl 
snd_pcm snd_timer snd soundcore acpi_tad input_leds sch_fq_codel efi_pstore 
dm_multipath nfnetlink dmi_sysfs autofs4 btrfs blake2b_generic raid10 raid456 
async_raid6_recov asy
nc_memcpy async_pq async_xor async_tx xor xor_neon raid6_pq raid1 raid0 linear 
mlx5_ib ib_uverbs macsec ib_core hid_generic usbhid hid polyval_ce ghash_ce 
sm4_ce_gcm sm4_ce_ccm sm4_ce mlx5_core sm4_ce_cipher sm4 nvme sm3_ce mlxfw 
sha3_ce arm_smccc_
trng nvme_core psample nvme_keyring r8127(-) tls nvme_auth pci_hyperv_intf
2026-02-09T21:16:19.010280+00:00 spark1 kernel:  xhci_plat_hcd aes_neon_bs 
aes_neon_blk aes_ce_blk aes_ce_cipher [last unloaded: drm_ttm_helper]
2026-02-09T21:16:19.010282+00:00 spark1 kernel: CPU: 6 UID: 0 PID: 2047 Comm: 
modprobe Kdump: loaded Tainted: G           OE       6.17.0-1004-nvidia-64k 
#4-Ubuntu PREEMPT(none)
2026-02-09T21:16:19.010284+00:00 spark1 kernel: Tainted: [O]=OOT_MODULE, 
[E]=UNSIGNED_MODULE
2026-02-09T21:16:19.010285+00:00 spark1 kernel: Hardware name: NVIDIA 
NVIDIA_DGX_Spark/P4242, BIOS 5.36_0ACUM018 08/06/2025
2026-02-09T21:16:19.010286+00:00 spark1 kernel: pstate: 83400009 (Nzcv daif 
+PAN -UAO +TCO +DIT -SSBS BTYPE=--)
2026-02-09T21:16:19.010287+00:00 spark1 kernel: pc : 
__netif_napi_del_locked+0x130/0x148
2026-02-09T21:16:19.010288+00:00 spark1 kernel: lr : 
rtl8127_remove_one+0xe8/0x2c0 [r8127]
2026-02-09T21:16:19.010289+00:00 spark1 kernel: sp : ffff80009a44f970
2026-02-09T21:16:19.010304+00:00 spark1 kernel: x29: ffff80009a44f970 x28: 
ffff0000d3c04ac0 x27: 0000000000000200
2026-02-09T21:16:19.010306+00:00 spark1 kernel: x26: ffff0000859ba0c8 x25: 
ffff0000859ba000 x24: ffff0000d3c00000
2026-02-09T21:16:19.010308+00:00 spark1 kernel: x23: 0000000000000018 x22: 
ffff0000d3c00ac0 x21: ffff0000d3c00ad8
2026-02-09T21:16:19.010309+00:00 spark1 kernel: x20: 0000000000000001 x19: 
ffff0000d3c00ad8 x18: ffff8000974e0080
2026-02-09T21:16:19.010310+00:00 spark1 kernel: x17: 0000000000000000 x16: 
ffffbe1af7d52500 x15: 0000000000000000
2026-02-09T21:16:19.010311+00:00 spark1 kernel: x14: 0000000000000000 x13: 
0000000000000000 x12: 0000000000000000
2026-02-09T21:16:19.010312+00:00 spark1 kernel: x11: 00000000000000c0 x10: 
0000000000000000 x9 : ffffbe1ac4c24128
2026-02-09T21:16:19.010325+00:00 spark1 kernel: x8 : 0000000000000000 x7 : 
0000000000000000 x6 : 0000000000000000
2026-02-09T21:16:19.010327+00:00 spark1 kernel: x5 : 0000000000000000 x4 : 
0000000000000000 x3 : 0000000000000000
2026-02-09T21:16:19.010329+00:00 spark1 kernel: x2 : 0000000000000000 x1 : 
ffff0000d3c00ae8 x0 : 0000000000000000
2026-02-09T21:16:19.010342+00:00 spark1 kernel: Call trace:
2026-02-09T21:16:19.010345+00:00 spark1 kernel:  
__netif_napi_del_locked+0x130/0x148 (P)
2026-02-09T21:16:19.010346+00:00 spark1 kernel:  rtl8127_remove_one+0xe8/0x2c0 
[r8127]
2026-02-09T21:16:19.010348+00:00 spark1 kernel:  pci_device_remove+0x50/0x120
2026-02-09T21:16:19.010349+00:00 spark1 kernel:  device_remove+0x58/0xc0
2026-02-09T21:16:19.010350+00:00 spark1 kernel:  
device_release_driver_internal+0x214/0x2e0
2026-02-09T21:16:19.010351+00:00 spark1 kernel:  driver_detach+0x58/0xc0
2026-02-09T21:16:19.010355+00:00 spark1 kernel:  bus_remove_driver+0x84/0x148
2026-02-09T21:16:19.010356+00:00 spark1 kernel:  driver_unregister+0x3c/0xa0
2026-02-09T21:16:19.010357+00:00 spark1 kernel:  pci_unregister_driver+0x3c/0xc0
2026-02-09T21:16:19.010358+00:00 spark1 kernel:  
rtl8127_cleanup_module+0x28/0x1050 [r8127]
2026-02-09T21:16:19.010359+00:00 spark1 kernel:  
__do_sys_delete_module.isra.0+0x1cc/0x350
2026-02-09T21:16:19.010372+00:00 spark1 kernel:  
__arm64_sys_delete_module+0x20/0x40
2026-02-09T21:16:19.010384+00:00 spark1 kernel:  
invoke_syscall.constprop.0+0x7c/0xf8
2026-02-09T21:16:19.010386+00:00 spark1 kernel:  do_el0_svc+0x4c/0x100
2026-02-09T21:16:19.010389+00:00 spark1 kernel:  el0_svc+0x48/0x200
2026-02-09T21:16:19.010391+00:00 spark1 kernel:  el0t_64_sync_handler+0xc0/0x108
2026-02-09T21:16:19.010392+00:00 spark1 kernel:  el0t_64_sync+0x1b8/0x1c0
2026-02-09T21:16:19.010393+00:00 spark1 kernel: ---[ end trace 0000000000000000 
]---
2026-02-09T21:16:19.026403+00:00 spark1 kernel: ------------[ cut here 
]------------

** Affects: linux-nvidia-6.17 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2141780

Title:
  r8127 module unload triggers NAPI WARN in netif_napi_del_locked()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-nvidia-6.17/+bug/2141780/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to