Public bug reported:

During a normal `systemctl reboot`, while docker.service was stopping
containers, the kernel hit a general protection fault in
netif_change_name() (called from rtnl_setlink/do_setlink, process
dockerd). This happened while dockerd was renaming container veth
interfaces (eth0/eth1 -> vethXXXX) as 14 containers on 6 Docker networks
(bridge networks) were torn down in parallel.

The faulting task apparently died holding the RTNL lock:
- systemd-networkd then blocked in the kernel and could not be killed 
(stop-sigterm/final-sigterm timeouts, "Processes still around after final 
SIGKILL"), delaying shutdown by ~6 minutes;
- after "systemd-shutdown: Sending SIGTERM to remaining processes..." the 
machine never rebooted. The kernel kept answering ICMP ping for 15+ minutes 
until a hard reset.

The faulting address 0x3e002f00360039 decodes as UTF-16LE text ("96/>"),
suggesting a corrupted list pointer (name/altname list?) in the
net_device being renamed.

First occurrence; previous reboots on the same kernel and workload were
clean. Not reproduced on demand.

# Versions
- Ubuntu 26.04.1 LTS (upgraded from 24.04 via do-release-upgrade)
- Kernel: 7.0.0-44-generic (Ubuntu 7.0.0-44.44-generic 7.0.14)
- Docker CE: 29.10.0 (containerd v2.4.2) (docker.com resolute repository), 
default bridge driver, user-defined bridge networks
- Tainted: P O (NVIDIA 580.178.04 proprietary driver, used by one container via 
nvidia-container-toolkit/CDI)
- Hardware: HP ProDesk 600 G6 SFF (Intel Comet Lake), BIOS S07 02.06.02 at the 
time of the crash
- systemd-networkd manages the host NIC (netplan)

# Steps that led to it
1. Host running 14 Docker containers (several user-defined bridge networks; 
some containers attached to 2 networks).
2. `systemctl reboot`.
3. docker.service stop -> container teardown -> oops in netif_change_name -> 
networkd hang -> reboot never completes.

# Kernel log (oops)
```
Oops: general protection fault, probably for non-canonical address 
0x3e002f00360039: 0000 [#1] SMP NOPTI
CPU: 2 UID: 0 PID: 48647 Comm: dockerd Tainted: P           O        
7.0.0-44-generic #44-Ubuntu PREEMPT(lazy) 
Tainted: [P]=PROPRIETARY_MODULE, [O]=OOT_MODULE
Hardware name: HP HP ProDesk 600 G6 Small Form Factor PC/8714, BIOS S07 Ver. 
02.06.02 05/14/2021
RIP: 0010:netif_change_name+0x14b/0x330
Code: c0 0f 85 5b 01 00 00 48 8d 74 24 30 48 89 df e8 9b fc ff ff 48 8b 83 30 
01 00 00 48 8b 10 48 8b 48 08 48 89 11 48 85 d2 74 04 <48> 89 4a 08 48 b9 22 01 
00 00 00 00 ad de 48 89 48 08 2e 2e 2e 31
RSP: 0018:ffffd1ded01b7408 EFLAGS: 00010202
RAX: ffff89d2c20fccc0 RBX: ffff89d2ccb4e000 RCX: ffff89d2f841f388
RDX: 003e002f00360031 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffd1ded01b7478 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff89d2ccb4e120 R14: ffff89d3264c3180 R15: ffffd1ded01b7538
FS:  00007c4141f7b6c0(0000) GS:ffff89da6a2f7000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00001abe71727000 CR3: 0000000174e76005 CR4: 00000000007726f0
PKRU: 55555554
Call Trace:
 <TASK>
 ? update_cfs_rq_load_avg+0x1e/0x260
 do_setlink.isra.0+0xb12/0xdf0
 ? update_cfs_rq_load_avg+0x1e/0x260
 ? __mutex_lock.constprop.0+0x104/0xb10
 ? ns_capable+0x31/0x60
 rtnl_setlink+0x302/0x670
 ? security_capable+0xb1/0x1e0
 ? __pfx_rtnl_setlink+0x10/0x10
 rtnetlink_rcv_msg+0x384/0x460
 ? try_to_wake_up+0x24e/0x8b0
 ? do_setlink.isra.0+0x364/0xdf0
 ? __pfx_rtnetlink_rcv_msg+0x10/0x10
 netlink_rcv_skb+0x61/0x120
 rtnetlink_rcv+0x15/0x30
 netlink_unicast+0x2ac/0x3d0
 netlink_sendmsg+0x216/0x450
 __sys_sendto+0x222/0x230
 __x64_sys_sendto+0x24/0x40
 x64_sys_call+0x1d5d/0x2390
 do_syscall_64+0x105/0x580
 ? __sys_recvfrom+0x15c/0x180
 ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
 ? do_syscall_64+0x140/0x580
 ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
 ? do_syscall_64+0x140/0x580
 ? __sys_getsockname+0x8f/0xd0
 ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
 ? do_syscall_64+0x140/0x580
 ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
 ? do_syscall_64+0x140/0x580
 ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
 ? clear_bhb_loop+0x70/0xc0
 ? clear_bhb_loop+0x70/0xc0
 ? clear_bhb_loop+0x70/0xc0
 ? clear_bhb_loop+0x70/0xc0
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x642cde3d7b4e
Code: ff cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 
cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 13 
48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff bb
RSP: 002b:00001abe7134de58 EFLAGS: 00000206 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 000000000000005d RCX: 0000642cde3d7b4e
RDX: 0000000000000030 RSI: 00001abe6f180ab0 RDI: 000000000000005d
RBP: 00001abe7134de98 R08: 00001abe7061e89c R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 000000000000000c R14: 00001abe6f140780 R15: 0000000000000030
 </TASK>
Modules linked in: tcp_diag udp_diag inet_diag nf_conntrack_netlink xt_nat veth 
xt_MASQUERADE bridge stp llc xfrm_user xfrm_algo xt_set ip_set nft_chain_nat 
nf_nat overlay qrtr nvidia_uvm(PO) cfg80211 ip6t_REJECT nf_reject_ipv6 xt_hl 
ip6t_rt ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog nft_limit xt_limit 
xt_addrtype xt_tcpudp xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 
nft_compat x_tables nf_tables nfnetlink nls_iso8859_1 binfmt_misc 
snd_sof_pci_intel_cnl snd_sof_intel_hda_generic snd_hda_codec_intelhdmi 
soundwire_intel snd_sof_intel_hda_sdw_bpt snd_sof_intel_hda_common 
snd_soc_hdac_hda snd_sof_intel_hda_mlink snd_sof_intel_hda soundwire_cadence 
snd_hda_codec_alc269 intel_rapl_msr snd_sof_pci snd_hda_codec_realtek_lib 
intel_rapl_common snd_sof_xtensa_dsp snd_hda_scodec_component 
intel_uncore_frequency snd_sof snd_hda_codec_generic 
intel_uncore_frequency_common snd_sof_utils intel_pmc_core_pltdrv 
snd_soc_acpi_intel_match intel_pmc_core snd_soc_acpi_intel_sdca_quirks 
pmt_telemetry
 soundwire_generic_allocation pmt_discovery snd_soc_sdw_utils pmt_class 
snd_soc_acpi intel_pmc_ssram_telemetry soundwire_bus intel_vsec snd_soc_sdca 
intel_tcc_cooling hid nvidia_drm(PO) x86_pkg_temp_thermal crc8 
snd_hda_codec_nvhdmi nvidia_modeset(PO) intel_powerclamp snd_soc_avs 
snd_hda_codec_hdmi coretemp snd_soc_hda_codec snd_hda_ext_core snd_hda_intel 
snd_hda_codec cmdlinepart snd_soc_core kvm_intel snd_hda_core spi_nor 
snd_compress nvidia(PO) hp_bioscfg ee1004 mei_hdcp i915 mei_pxp mtd 
snd_intel_dspcfg ac97_bus snd_intel_sdw_acpi kvm firmware_attributes_class 
snd_hwdep snd_pcm_dmaengine irqbypass snd_pcm rapl intel_cstate hp_wmi 
drm_buddy i2c_i801 snd_timer drm_display_helper spi_intel_pci i2c_smbus 
sparse_keymap wmi_bmof snd i2c_mux spi_intel cec drm_ttm_helper mei_me 
soundcore rc_core ttm i2c_algo_bit mei intel_pch_thermal acpi_pad mac_hid 
sch_fq_codel nls_utf8 cifs nls_ucs2_utils libarc4 cifs_md4 netfs msr cmac 
efi_pstore dm_multipath dmi_sysfs autofs4 btrfs libblake2b raid10 raid456
 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq raid1 
raid0 linear nvme ucsi_acpi nvme_core typec_ucsi nvme_keyring psmouse typec 
nvme_auth video ghash_clmulni_intel ahci serio_raw thunderbolt hkdf e1000e 
libahci wmi aesni_intel
---[ end trace 0000000000000000 ]---
```

** Affects: ubuntu
     Importance: Undecided
         Status: New

** Attachment added: "sudo lspci -vnvn > lspci-vnvn.log"
   
https://bugs.launchpad.net/bugs/2175511/+attachment/6020080/+files/lspci-vnvn.log

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

Title:
  Kernel oops (general protection fault) in netif_change_name via
  rtnl_setlink from dockerd during shutdown; RTNL held -> reboot hangs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/2175511/+subscriptions


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

Reply via email to