Kernel hangs since some recent Fedora kernels

Bug report

Since more releases of the kernel, I’ve got a violent hang (complete shutdown of the computer).
I managed to find the kerne trace:

juin 20 06:31:14 fedora kernel: ------------[ cut here ]------------
juin 20 06:31:14 fedora kernel: Unpatched return thunk in use. This should not happen!
juin 20 06:31:14 fedora kernel: WARNING: CPU: 0 PID: 589 at arch/x86/kernel/cpu/bugs.c:3023 __warn_thunk+0x2a/0x40
juin 20 06:31:14 fedora kernel: Modules linked in: btrtl(+) btintel wl(POE+) btbcm uvcvideo(+) snd_hda_codec_conexant(+) snd_hda_codec_generic snd_hda_codec_hdmi kvm >
juin 20 06:31:14 fedora kernel:  wmi hid_logitech_dj serio_raw ip6_tables ip_tables fuse i2c_dev
juin 20 06:31:14 fedora kernel: CPU: 0 PID: 589 Comm: (udev-worker) Tainted: P           OE      6.9.4-200.fc40.x86_64 #1
juin 20 06:31:14 fedora kernel: Hardware name: Dell Inc.          Vostro 3460/0WCY8Y, BIOS A12 09/13/2012
juin 20 06:31:14 fedora kernel: RIP: 0010:__warn_thunk+0x2a/0x40
juin 20 06:31:14 fedora kernel: Code: 66 0f 1f 00 0f 1f 44 00 00 80 3d 01 18 77 02 00 74 05 c3 cc cc cc cc 48 c7 c7 f8 79 b3 b2 c6 05 ec 17 77 02 01 e8 f6 46 0c 00 <0>
juin 20 06:31:14 fedora kernel: RSP: 0018:ffffb8cb409579e0 EFLAGS: 00010286
juin 20 06:31:14 fedora kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000027
juin 20 06:31:14 fedora kernel: RDX: ffff9b046f0218c8 RSI: 0000000000000001 RDI: ffff9b046f0218c0
juin 20 06:31:14 fedora kernel: RBP: ffffb8cb40957a30 R08: 0000000000000000 R09: 6e72757465722064
juin 20 06:31:14 fedora kernel: R10: 7574657220646568 R11: 6b6e756874206e72 R12: ffffffffc1e8dbb8
juin 20 06:31:14 fedora kernel: R13: ffffb8cb40957a78 R14: 00007f645a69b07d R15: ffffb8cb40957b08
juin 20 06:31:14 fedora kernel: FS:  00007f645a611980(0000) GS:ffff9b046f000000(0000) knlGS:0000000000000000
juin 20 06:31:14 fedora kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
juin 20 06:31:14 fedora kernel: CR2: 00005561543d2028 CR3: 0000000106820003 CR4: 00000000001706f0
juin 20 06:31:14 fedora kernel: Call Trace:
juin 20 06:31:14 fedora kernel:  <TASK>
juin 20 06:31:14 fedora kernel:  ? __warn_thunk+0x2a/0x40
juin 20 06:31:14 fedora kernel:  ? __warn.cold+0x8e/0xe8
juin 20 06:31:14 fedora kernel:  ? __warn_thunk+0x2a/0x40
juin 20 06:31:14 fedora kernel:  ? report_bug+0xff/0x140
juin 20 06:31:14 fedora kernel:  ? handle_bug+0x3c/0x80
juin 20 06:31:14 fedora kernel:  ? exc_invalid_op+0x17/0x70
juin 20 06:31:14 fedora kernel:  ? asm_exc_invalid_op+0x1a/0x20
juin 20 06:31:14 fedora kernel:  ? __warn_thunk+0x2a/0x40
juin 20 06:31:14 fedora kernel:  warn_thunk_thunk+0x1a/0x30
juin 20 06:31:14 fedora kernel:  getvar+0x20/0x70 [wl]
juin 20 06:31:14 fedora kernel:  ? orc_header+0x54644/0x54644 [wl]
juin 20 06:31:14 fedora kernel:  wl_module_init+0x17/0xa0 [wl]
juin 20 06:31:14 fedora kernel:  ? do_one_initcall+0x5b/0x310
juin 20 06:31:14 fedora kernel:  ? do_init_module+0x90/0x250
juin 20 06:31:14 fedora kernel:  ? __do_sys_init_module+0x17a/0x1b0
juin 20 06:31:14 fedora kernel:  ? do_syscall_64+0x82/0x160
juin 20 06:31:14 fedora kernel:  ? __alloc_pages+0x182/0x350
juin 20 06:31:14 fedora kernel:  ? __mod_memcg_lruvec_state+0xc2/0x180
juin 20 06:31:14 fedora kernel:  ? __lruvec_stat_mod_folio+0x68/0xa0
juin 20 06:31:14 fedora kernel:  ? set_ptes.isra.0+0x28/0x90
juin 20 06:31:14 fedora kernel:  ? do_anonymous_page+0x410/0x770
juin 20 06:31:14 fedora kernel:  ? __pte_offset_map+0x10/0x180
juin 20 06:31:14 fedora kernel:  ? __handle_mm_fault+0xc61/0xe10
juin 20 06:31:14 fedora kernel:  ? scheduler_tick+0xff/0x330
juin 20 06:31:14 fedora kernel:  ? __count_memcg_events+0x69/0x100
juin 20 06:31:14 fedora kernel:  ? count_memcg_events.constprop.0+0x1a/0x30
juin 20 06:31:14 fedora kernel:  ? handle_mm_fault+0x1f0/0x300
juin 20 06:31:14 fedora kernel:  ? do_user_addr_fault+0x34e/0x620
juin 20 06:31:14 fedora kernel:  ? exc_page_fault+0x7e/0x180
juin 20 06:31:14 fedora kernel:  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
juin 20 06:31:14 fedora kernel:  </TASK>
juin 20 06:31:14 fedora kernel: ---[ end trace 0000000000000000 ]---

I was wondering we was the right place to post this kind of problem ?

Best regards,

Yann

That looks like a bug in the wl module. That’s a Broadcom driver, right? Where did you download it from?

1 Like

I use a Dell Vostro 3640 (an old laptop) and I installed the broadcom driver via fedy.

It is probable that the driver came from rpmfusion

Sure. This looks a lot like x86/retpoline: Ensure default return thunk isn’t used at runtime from last week.

There are similar reports from Arch Linux and other distros.

1 Like

So, I have a Lenovo Yoga Pro 9i 16IMH9. I’ve been experiencing the same instability (kernel hangs) recently and see similar stack traces:

Jul 01 17:38:52 myhost kernel: Unpatched return thunk in use. This should not happen!
Jul 01 17:38:52 myhost kernel: WARNING: CPU: 5 PID: 1249 at arch/x86/kernel/cpu/bugs.c:3023 __warn_thunk+0x2a/0x40
Jul 01 17:38:52 myhost kernel: Modules linked in: wl(POE+) soundwire_bus(+) mac80211(+) snd_hda_intel btusb btrtl snd_intel_dspcfg libarc4 btintel snd_intel_sdw_acpi btbcm i2c_i801 spi_int>
Jul 01 17:38:52 myhost kernel:  pmt_telemetry pmt_class brcmfmac brcmutil cfg80211 rfkill auth_rpcgss scsi_dh_rdac sunrpc scsi_dh_emc scsi_dh_alua kvmfr(OE) loop dm_multipath nfnetlink zra>
Jul 01 17:38:52 myhost kernel: Unloaded tainted modules: nvidia_peermem(POE):1 nvidia(POE):4
Jul 01 17:38:52 myhost kernel: CPU: 5 PID: 1249 Comm: (udev-worker) Tainted: P           OE      6.9.6-200.fc40.x86_64 #1
Jul 01 17:38:52 myhost kernel: Hardware name: LENOVO 83DN/LNVNB161216, BIOS NKCN25WW 02/05/2024
Jul 01 17:38:52 myhost kernel: RIP: 0010:__warn_thunk+0x2a/0x40
Jul 01 17:38:52 myhost kernel: Code: 66 0f 1f 00 0f 1f 44 00 00 80 3d a1 18 77 02 00 74 05 c3 cc cc cc cc 48 c7 c7 a0 80 b3 a0 c6 05 8c 18 77 02 01 e8 d6 51 0c 00 <0f> 0b c3 cc cc cc cc 66>
Jul 01 17:38:52 myhost kernel: RSP: 0018:ffffa200c171b998 EFLAGS: 00010286
Jul 01 17:38:52 myhost kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000027
Jul 01 17:38:52 myhost kernel: RDX: ffff8a149f0a18c8 RSI: 0000000000000001 RDI: ffff8a149f0a18c0
Jul 01 17:38:52 myhost kernel: RBP: ffffa200c171b9e8 R08: 0000000000000000 R09: ffffa200c171b928
Jul 01 17:38:52 myhost kernel: R10: ffffffffa0b380d7 R11: 0000000000000000 R12: ffffffffc21c0bb8
Jul 01 17:38:52 myhost kernel: R13: ffffa200c171ba30 R14: 00007f1b9024d07d R15: ffffa200c171bac0
Jul 01 17:38:52 myhost kernel: FS:  00007f1b8f34f980(0000) GS:ffff8a149f080000(0000) knlGS:0000000000000000
Jul 01 17:38:52 myhost kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 01 17:38:52 myhost kernel: CR2: 00007ffe8f8bcc28 CR3: 0000000115860003 CR4: 0000000000f70ef0
Jul 01 17:38:52 myhost kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jul 01 17:38:52 myhost kernel: DR3: 0000000000000000 DR6: 00000000ffff07f0 DR7: 0000000000000400
Jul 01 17:38:52 myhost kernel: PKRU: 55555554
Jul 01 17:38:52 myhost kernel: Call Trace:
Jul 01 17:38:52 myhost kernel:  <TASK>
Jul 01 17:38:52 myhost kernel:  ? __warn_thunk+0x2a/0x40
Jul 01 17:38:52 myhost kernel:  ? __warn.cold+0x8e/0xe8
Jul 01 17:38:52 myhost kernel:  ? __warn_thunk+0x2a/0x40
Jul 01 17:38:52 myhost kernel:  ? report_bug+0xff/0x140
Jul 01 17:38:52 myhost kernel:  ? console_unlock+0x84/0x130
Jul 01 17:38:52 myhost kernel:  ? handle_bug+0x3c/0x80
Jul 01 17:38:52 myhost kernel:  ? exc_invalid_op+0x17/0x70
Jul 01 17:38:52 myhost kernel:  ? asm_exc_invalid_op+0x1a/0x20
Jul 01 17:38:52 myhost kernel:  ? __warn_thunk+0x2a/0x40
Jul 01 17:38:52 myhost kernel:  ? __warn_thunk+0x2a/0x40
Jul 01 17:38:52 myhost kernel:  warn_thunk_thunk+0x1a/0x30
Jul 01 17:38:52 myhost kernel:  getvar+0x20/0x70 [wl]
Jul 01 17:38:52 myhost kernel:  ? __UNIQUE_ID_vermagic434+0x5dfefdaa4ebc/0x5dfefdaa4ebc [wl]
Jul 01 17:38:52 myhost kernel:  wl_module_init+0x17/0xa0 [wl]
Jul 01 17:38:52 myhost kernel:  ? do_one_initcall+0x58/0x310
Jul 01 17:38:52 myhost kernel:  ? do_init_module+0x90/0x250
Jul 01 17:38:52 myhost kernel:  ? __do_sys_init_module+0x17a/0x1b0
Jul 01 17:38:52 myhost kernel:  ? do_syscall_64+0x82/0x160
Jul 01 17:38:52 myhost kernel:  ? __alloc_pages+0x182/0x350
Jul 01 17:38:52 myhost kernel:  ? __mod_memcg_lruvec_state+0xc2/0x180
Jul 01 17:38:52 myhost kernel:  ? __lruvec_stat_mod_folio+0x68/0xa0
Jul 01 17:38:52 myhost kernel:  ? set_ptes.isra.0+0x28/0x90
Jul 01 17:38:52 myhost kernel:  ? do_anonymous_page+0x410/0x770
Jul 01 17:38:52 myhost kernel:  ? pmdp_collapse_flush+0x50/0x60
Jul 01 17:38:52 myhost kernel:  ? __handle_mm_fault+0xc61/0xe10
Jul 01 17:38:52 myhost kernel:  ? scheduler_tick+0xff/0x330
Jul 01 17:38:52 myhost kernel:  ? __count_memcg_events+0x69/0x100
Jul 01 17:38:52 myhost kernel:  ? count_memcg_events.constprop.0+0x1a/0x30
Jul 01 17:38:52 myhost kernel:  ? handle_mm_fault+0x1f0/0x300
Jul 01 17:38:52 myhost kernel:  ? do_user_addr_fault+0x34e/0x620
Jul 01 17:38:52 myhost kernel:  ? exc_page_fault+0x7e/0x180
Jul 01 17:38:52 myhost kernel:  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
Jul 01 17:38:52 myhost kernel:  </TASK>
Jul 01 17:38:52 myhost kernel: ---[ end trace 0000000000000000 ]---
  1. Is there some bugzilla we can subscribe to for tracking the issue?
  2. I am actually on SilverBlue. Is there a way to revert to a specific image before this change? A month or so ago my laptop used to be stable…
1 Like

Is there somebody from rpmfusion on this list ?
As far as I understand, the bug has been found. Maybe there’s a patch for this one.
The package for this driver is provided by rpmfusion. So, an update is welcome (if the patch exists) :slight_smile:

rpmfusion: Reporting Bugs. Problems with wifi are not unusual, so I have found it important to have a USB wifi dongle for use when on-board wifi is broken.

1 Like

Thanks for the link. I will try to fill a bug report ASAP.
I think I’ve got a wifi usb dongle somewhere … :slight_smile:

Added broadcom, rpmfusion

Added f40

Thank you @ycollet. Once you’ve done this can you please share the bug report? I’m not sure what module/package is being referred to, but hopefully I can learn so that I may be able to file bugs in the future.

I’d order a USB dongle just to see if this problem goes away when using that. I wonder what brand should I prefer for true OSS drivers though? I would not want to end up in the hilarious situation where I buy a dongle that uses the same driver! :slightly_smiling_face:

Come to think of it, my laptop seems to have an Intel Wi-Fi and it is my impression that Intel is quite good with OSS drivers?

❯ lspci
00:00.0 Host bridge: Intel Corporation Device 7d01 (rev 04)
00:01.0 PCI bridge: Intel Corporation Device 7ecc (rev 10)
00:02.0 VGA compatible controller: Intel Corporation Meteor Lake-P [Intel Arc Graphics] (rev 08)
00:04.0 Signal processing controller: Intel Corporation Meteor Lake-P Dynamic Tuning Technology (rev 04)
00:06.0 PCI bridge: Intel Corporation Device 7eca (rev 10)
00:07.0 PCI bridge: Intel Corporation Meteor Lake-P Thunderbolt 4 PCI Express Root Port #0 (rev 10)
00:07.2 PCI bridge: Intel Corporation Meteor Lake-P Thunderbolt 4 PCI Express Root Port #2 (rev 10)
00:08.0 System peripheral: Intel Corporation Meteor Lake-P Gaussian & Neural-Network Accelerator (rev 20)
00:0a.0 Signal processing controller: Intel Corporation Meteor Lake-P Platform Monitoring Technology (rev 01)
00:0b.0 Processing accelerators: Intel Corporation Meteor Lake NPU (rev 04)
00:0d.0 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 USB Controller (rev 10)
00:0d.2 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 NHI #0 (rev 10)
00:0d.3 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 NHI #1 (rev 10)
00:12.0 Serial controller: Intel Corporation Meteor Lake-P Integrated Sensor Hub (rev 20)
00:14.0 USB controller: Intel Corporation Meteor Lake-P USB 3.2 Gen 2x1 xHCI Host Controller (rev 20)
00:14.2 RAM memory: Intel Corporation Device 7e7f (rev 20)
00:14.3 Network controller: Intel Corporation Meteor Lake PCH CNVi WiFi (rev 20)
00:15.0 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #0 (rev 20)
00:15.1 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #1 (rev 20)
00:15.2 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #2 (rev 20)
00:15.3 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #3 (rev 20)
00:16.0 Communication controller: Intel Corporation Meteor Lake-P CSME HECI #1 (rev 20)
00:19.0 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #4 (rev 20)
00:19.1 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #5 (rev 20)
00:1c.0 PCI bridge: Intel Corporation Device 7e3f (rev 20)
00:1f.0 ISA bridge: Intel Corporation Device 7e02 (rev 20)
00:1f.3 Multimedia audio controller: Intel Corporation Meteor Lake-P HD Audio Controller (rev 20)
00:1f.4 SMBus: Intel Corporation Meteor Lake-P SMBus Controller (rev 20)
00:1f.5 Serial bus controller: Intel Corporation Meteor Lake-P SPI Controller (rev 20)
01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1)
06:00.0 Non-Volatile memory controller: SK hynix Platinum P41/PC801 NVMe Solid State Drive
5b:00.0 SD Host controller: Genesys Logic, Inc GL9750 SD Host Controller (rev 01)

Seems to be 00:14.3

1 Like

Here it is:

https://bugzilla.rpmfusion.org/show_bug.cgi?id=6991

Added bug-reported

Hmmm, so this seems to be present then in the intel driver as well? This is the lshw output on my system:

        *-network
             description: Wireless interface
             product: Meteor Lake PCH CNVi WiFi
             vendor: Intel Corporation
             physical id: 14.3
             bus info: pci@0000:00:14.3
             logical name: wlp0s20f3
             version: 20
             serial: e8:c8:29:c9:6b:cf
             width: 64 bits
             clock: 33MHz
             capabilities: bus_master cap_list ethernet physical wireless
             configuration: broadcast=yes driver=iwlwifi driverversion=6.9.6-200.fc40.x86_64 firmware=89.e9cec78e.0 ma-b0-gf-a0-89.uc ip=192.168.9.133 latency=0 link=yes multicast=yes wireless=IEEE 802.11
             resources: iomemory:420-41f irq:18 memory:4203304000-4203307fff

And the lspci -v output:

00:14.3 Network controller: Intel Corporation Meteor Lake PCH CNVi WiFi (rev 20)
	Subsystem: Intel Corporation Wi-Fi 6E AX211 160MHz
	Flags: bus master, fast devsel, latency 0, IRQ 18, IOMMU group 13
	Memory at 4203304000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi, wl

The stack trace is the same “thunk” issue:

Jul 03 10:40:01 myshost kernel: ------------[ cut here ]------------
Jul 03 10:40:01 myshost kernel: Unpatched return thunk in use. This should not happen!
Jul 03 10:40:01 myshost kernel: WARNING: CPU: 13 PID: 1240 at arch/x86/kernel/cpu/bugs.c:3023 __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel: Modules linked in: soundwire_bus(+) wl(POE+) mac80211(+) snd_hda_intel pcspkr snd_intel_dspcfg snd_hda_scodec_tas2781_i2c snd_soc_tas2781_fmwlib snd_intel_sd>
Jul 03 10:40:01 myshost kernel:  dm_multipath nfnetlink zram dm_crypt xe drm_gpuvm drm_exec gpu_sched drm_suballoc_helper drm_ttm_helper hid_sensor_hub intel_ishtp_hid i915 crct10dif_pclmul>
Jul 03 10:40:01 myshost kernel: Unloaded tainted modules: nvidia_peermem(POE):1
Jul 03 10:40:01 myshost kernel: CPU: 13 PID: 1240 Comm: (udev-worker) Tainted: P           OE      6.9.6-200.fc40.x86_64 #1
Jul 03 10:40:01 myshost kernel: Hardware name: LENOVO 83DN/LNVNB161216, BIOS NKCN25WW 02/05/2024
Jul 03 10:40:01 myshost kernel: RIP: 0010:__warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel: Code: 66 0f 1f 00 0f 1f 44 00 00 80 3d a1 18 77 02 00 74 05 c3 cc cc cc cc 48 c7 c7 a0 80 b3 b5 c6 05 8c 18 77 02 01 e8 d6 51 0c 00 <0f> 0b c3 cc cc cc cc 66>
Jul 03 10:40:01 myshost kernel: RSP: 0018:ffffac938226fbb8 EFLAGS: 00010282
Jul 03 10:40:01 myshost kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000027
Jul 03 10:40:01 myshost kernel: RDX: ffff9f4d1f4a18c8 RSI: 0000000000000001 RDI: ffff9f4d1f4a18c0
Jul 03 10:40:01 myshost kernel: RBP: ffffac938226fc08 R08: 0000000000000000 R09: ffffac938226fb48
Jul 03 10:40:01 myshost kernel: R10: ffffffffb5b380d7 R11: 0000000000000000 R12: ffffffffc6259bb8
Jul 03 10:40:01 myshost kernel: R13: ffffac938226fc50 R14: 00007f81284a207d R15: ffffac938226fce0
Jul 03 10:40:01 myshost kernel: FS:  00007f8127cbe980(0000) GS:ffff9f4d1f480000(0000) knlGS:0000000000000000
Jul 03 10:40:01 myshost kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 03 10:40:01 myshost kernel: CR2: 0000557c84680028 CR3: 0000000116628005 CR4: 0000000000f70ef0
Jul 03 10:40:01 myshost kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jul 03 10:40:01 myshost kernel: DR3: 0000000000000000 DR6: 00000000ffff07f0 DR7: 0000000000000400
Jul 03 10:40:01 myshost kernel: PKRU: 55555554
Jul 03 10:40:01 myshost kernel: Call Trace:
Jul 03 10:40:01 myshost kernel:  <TASK>
Jul 03 10:40:01 myshost kernel:  ? __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel:  ? __warn.cold+0x8e/0xe8
Jul 03 10:40:01 myshost kernel:  ? __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel:  ? report_bug+0xff/0x140
Jul 03 10:40:01 myshost kernel:  ? console_unlock+0x84/0x130
Jul 03 10:40:01 myshost kernel:  ? handle_bug+0x3c/0x80
Jul 03 10:40:01 myshost kernel:  ? exc_invalid_op+0x17/0x70
Jul 03 10:40:01 myshost kernel:  ? asm_exc_invalid_op+0x1a/0x20
Jul 03 10:40:01 myshost kernel:  ? __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel:  ? __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel:  warn_thunk_thunk+0x1a/0x30
Jul 03 10:40:01 myshost kernel:  getvar+0x20/0x70 [wl]
Jul 03 10:40:01 myshost kernel:  ? orc_header+0x1644/0x1644 [wl]
Jul 03 10:40:01 myshost kernel:  wl_module_init+0x17/0xa0 [wl]
Jul 03 10:40:01 myshost kernel:  ? do_one_initcall+0x58/0x310
Jul 03 10:40:01 myshost kernel:  ? do_init_module+0x90/0x250
Jul 03 10:40:01 myshost kernel:  ? __do_sys_init_module+0x17a/0x1b0
Jul 03 10:40:01 myshost kernel:  ? do_syscall_64+0x82/0x160
Jul 03 10:40:01 myshost kernel:  ? __handle_mm_fault+0xc61/0xe10
Jul 03 10:40:01 myshost kernel:  ? __count_memcg_events+0x69/0x100
Jul 03 10:40:01 myshost kernel:  ? count_memcg_events.constprop.0+0x1a/0x30
Jul 03 10:40:01 myshost kernel:  ? handle_mm_fault+0x1f0/0x300
Jul 03 10:40:01 myshost kernel:  ? do_user_addr_fault+0x34e/0x620
Jul 03 10:40:01 myshost kernel: ------------[ cut here ]------------
Jul 03 10:40:01 myshost kernel: Unpatched return thunk in use. This should not happen!
Jul 03 10:40:01 myshost kernel: WARNING: CPU: 13 PID: 1240 at arch/x86/kernel/cpu/bugs.c:3023 __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel: Modules linked in: soundwire_bus(+) wl(POE+) mac80211(+) snd_hda_intel pcspkr snd_intel_dspcfg snd_hda_scodec_tas2781_i2c snd_soc_tas2781_fmwlib snd_intel_sd>
Jul 03 10:40:01 myshost kernel:  dm_multipath nfnetlink zram dm_crypt xe drm_gpuvm drm_exec gpu_sched drm_suballoc_helper drm_ttm_helper hid_sensor_hub intel_ishtp_hid i915 crct10dif_pclmul>
Jul 03 10:40:01 myshost kernel: Unloaded tainted modules: nvidia_peermem(POE):1
Jul 03 10:40:01 myshost kernel: CPU: 13 PID: 1240 Comm: (udev-worker) Tainted: P           OE      6.9.6-200.fc40.x86_64 #1
Jul 03 10:40:01 myshost kernel: Hardware name: LENOVO 83DN/LNVNB161216, BIOS NKCN25WW 02/05/2024
Jul 03 10:40:01 myshost kernel: RIP: 0010:__warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel: Code: 66 0f 1f 00 0f 1f 44 00 00 80 3d a1 18 77 02 00 74 05 c3 cc cc cc cc 48 c7 c7 a0 80 b3 b5 c6 05 8c 18 77 02 01 e8 d6 51 0c 00 <0f> 0b c3 cc cc cc cc 66>
Jul 03 10:40:01 myshost kernel: RSP: 0018:ffffac938226fbb8 EFLAGS: 00010282
Jul 03 10:40:01 myshost kernel: RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000027
Jul 03 10:40:01 myshost kernel: RDX: ffff9f4d1f4a18c8 RSI: 0000000000000001 RDI: ffff9f4d1f4a18c0
Jul 03 10:40:01 myshost kernel: RBP: ffffac938226fc08 R08: 0000000000000000 R09: ffffac938226fb48
Jul 03 10:40:01 myshost kernel: R10: ffffffffb5b380d7 R11: 0000000000000000 R12: ffffffffc6259bb8
Jul 03 10:40:01 myshost kernel: R13: ffffac938226fc50 R14: 00007f81284a207d R15: ffffac938226fce0
Jul 03 10:40:01 myshost kernel: FS:  00007f8127cbe980(0000) GS:ffff9f4d1f480000(0000) knlGS:0000000000000000
Jul 03 10:40:01 myshost kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jul 03 10:40:01 myshost kernel: CR2: 0000557c84680028 CR3: 0000000116628005 CR4: 0000000000f70ef0
Jul 03 10:40:01 myshost kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jul 03 10:40:01 myshost kernel: DR3: 0000000000000000 DR6: 00000000ffff07f0 DR7: 0000000000000400
Jul 03 10:40:01 myshost kernel: PKRU: 55555554
Jul 03 10:40:01 myshost kernel: Call Trace:
Jul 03 10:40:01 myshost kernel:  <TASK>
Jul 03 10:40:01 myshost kernel:  ? __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel:  ? __warn.cold+0x8e/0xe8
Jul 03 10:40:01 myshost kernel:  ? __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel:  ? report_bug+0xff/0x140
Jul 03 10:40:01 myshost kernel:  ? console_unlock+0x84/0x130
Jul 03 10:40:01 myshost kernel:  ? handle_bug+0x3c/0x80
Jul 03 10:40:01 myshost kernel:  ? exc_invalid_op+0x17/0x70
Jul 03 10:40:01 myshost kernel:  ? asm_exc_invalid_op+0x1a/0x20
Jul 03 10:40:01 myshost kernel:  ? __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel:  ? __warn_thunk+0x2a/0x40
Jul 03 10:40:01 myshost kernel:  warn_thunk_thunk+0x1a/0x30
Jul 03 10:40:01 myshost kernel:  getvar+0x20/0x70 [wl]
Jul 03 10:40:01 myshost kernel:  ? orc_header+0x1644/0x1644 [wl]
Jul 03 10:40:01 myshost kernel:  wl_module_init+0x17/0xa0 [wl]
Jul 03 10:40:01 myshost kernel:  ? do_one_initcall+0x58/0x310
Jul 03 10:40:01 myshost kernel:  ? do_init_module+0x90/0x250
Jul 03 10:40:01 myshost kernel:  ? __do_sys_init_module+0x17a/0x1b0
Jul 03 10:40:01 myshost kernel:  ? do_syscall_64+0x82/0x160
Jul 03 10:40:01 myshost kernel:  ? __handle_mm_fault+0xc61/0xe10
Jul 03 10:40:01 myshost kernel:  ? __count_memcg_events+0x69/0x100
Jul 03 10:40:01 myshost kernel:  ? count_memcg_events.constprop.0+0x1a/0x30
Jul 03 10:40:01 myshost kernel:  ? handle_mm_fault+0x1f0/0x300
Jul 03 10:40:01 myshost kernel:  ? do_user_addr_fault+0x34e/0x620
1 Like

The result of lshw:

           *-network
                description: Wireless interface
                product: BCM43142 802.11b/g/n
                vendor: Broadcom Inc. and subsidiaries
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: wlp2s0
                version: 01
                serial: 64:27:37:f7:62:c5
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=wl0 driverversion=6.30.223.271 (r587334) ip=192.168.1.16 latency=0 multicast=yes wireless=IEEE 802.11
                resources: irq:16 memory:f1900000-f1907fff
 

The result of lspci -v:

02:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01)
        Subsystem: Dell Wireless 1704 802.11n + BT 4.0
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at f1900000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>
        Kernel driver in use: wl
        Kernel modules: bcma, wl

Your system errors in snd_hda_intel – nothing to do with wifi, but could be useful to add to the bug report as it points to a wider issue than one wifi firmware blob.

1 Like

So, I bought a new USB Wifi dongle from another branch.
I compiled the out of tree module for this Wifi USB module and …

Result from lsusb:

Bus 001 Device 003: ID 2357:011e TP-Link AC600 wireless Realtek RTL8811AU [Archer T2U Nano]

[58877.150196] WARNING: CPU: 3 PID: 58238 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.c:62 rtw_odm_init_ic_type+0x44/0x70 [88XXau]
[58877.150291] Modules linked in: 88XXau(OE+) cfg80211 uinput snd_seq_dummy snd_hrtimer nf_conntrack_netbios_ns nf_conntrack_broadcast nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nf_tables qrtr sunrpc binfmt_misc intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp at24 coretemp snd_hda_codec_conexant snd_hda_codec_generic snd_hda_codec_hdmi kvm_intel iTCO_wdt rtsx_usb_ms mei_hdcp intel_pmc_bxt memstick mei_pxp uvcvideo iTCO_vendor_support dell_laptop kvm snd_hda_intel rfkill uvc vfat videobuf2_vmalloc fat videobuf2_memops snd_intel_dspcfg dell_smm_hwmon snd_intel_sdw_acpi snd_hda_codec videobuf2_v4l2 pktcdvd snd_hda_core snd_hwdep videobuf2_common dell_wmi rapl snd_seq videodev snd_seq_device dell_smbios intel_cstate snd_pcm dcdbas intel_uncore sparse_keymap wmi_bmof mc dell_wmi_descriptor pcspkr i2c_i801 snd_timer i2c_smbus snd alx mdio mei_me lpc_ich bcma soundcore
[58877.150373]  mei dell_smo8800 joydev loop nfnetlink zram i915 hid_logitech_hidpp nouveau rtsx_usb_sdmmc mmc_core crct10dif_pclmul crc32_pclmul crc32c_intel rtsx_usb polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 drm_ttm_helper gpu_sched drm_gpuvm drm_exec mxm_wmi drm_buddy i2c_algo_bit ttm drm_display_helper cec video wmi hid_logitech_dj serio_raw ip6_tables ip_tables fuse i2c_dev
[58877.150410] CPU: 3 PID: 58238 Comm: (udev-worker) Tainted: G        W  OE      6.9.8-200.fc40.x86_64 #1
[58877.150414] Hardware name: Dell Inc.          Vostro 3460/0WCY8Y, BIOS A12 09/13/2012
[58877.150416] RIP: 0010:rtw_odm_init_ic_type+0x44/0x70 [88XXau]
[58877.150495] Code: 3e 00 00 80 fa 0e 76 17 8b 15 a4 26 1e 00 85 d2 74 18 be 04 00 00 00 48 89 c7 e9 17 a3 08 00 8b 14 95 c0 d5 cb c1 85 d2 75 e8 <0f> 0b be 04 00 00 00 48 89 c7 e9 fd a2 08 00 66 66 2e 0f 1f 84 00
[58877.150498] RSP: 0018:ffffb6d925d838a8 EFLAGS: 00010246
[58877.150502] RAX: ffffb6d901614ed0 RBX: ffffb6d90006b000 RCX: 0000000000000008
[58877.150504] RDX: 0000000000000000 RSI: 0000000000000018 RDI: ffffb6d90006b000
[58877.150506] RBP: ffffb6d901614ed0 R08: 0000000000000008 R09: 0000000000000002
[58877.150508] R10: ffffb6d90006e792 R11: 0000000000000000 R12: ffffb6d901611000
[58877.150509] R13: ffff97d409eba000 R14: ffffffffc1bb3aa0 R15: ffff97d40a9d6790
[58877.150512] FS:  00007fd6e1c13980(0000) GS:ffff97d72f180000(0000) knlGS:0000000000000000
[58877.150514] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[58877.150516] CR2: 00007f7ff3e09720 CR3: 00000003793a6004 CR4: 00000000001706f0
[58877.150519] Call Trace:
[58877.150522]  <TASK>
[58877.150524]  ? rtw_odm_init_ic_type+0x44/0x70 [88XXau]
[58877.150600]  ? __warn.cold+0x8e/0xe8
[58877.150606]  ? rtw_odm_init_ic_type+0x44/0x70 [88XXau]
[58877.150681]  ? report_bug+0xff/0x140
[58877.150688]  ? handle_bug+0x3c/0x80
[58877.150693]  ? exc_invalid_op+0x17/0x70
[58877.150697]  ? asm_exc_invalid_op+0x1a/0x20
[58877.150703]  ? rtw_odm_init_ic_type+0x44/0x70 [88XXau]
[58877.150776]  ? Init_ODM_ComInfo+0x37/0x5b0 [88XXau]
[58877.150864]  ? rtl8812_init_dm_priv+0x43/0xb0 [88XXau]
[58877.150949]  ? rtw_hal_dm_init+0x21/0x50 [88XXau]
[58877.151045]  ? rtw_init_drv_sw+0x24a/0x280 [88XXau]
[58877.151127]  ? rtw_usb_primary_adapter_init+0x13f/0xa50 [88XXau]
[58877.151208]  ? rtw_usb_primary_adapter_init+0x452/0xa50 [88XXau]
[58877.151285]  ? pm_runtime_enable+0x1f/0x90
[58877.151292]  ? usb_probe_interface+0xe8/0x2b0
[58877.151298]  ? really_probe+0xde/0x340
[58877.151302]  ? pm_runtime_barrier+0x54/0x90
[58877.151305]  ? __pfx___driver_attach+0x10/0x10
[58877.151308]  ? __driver_probe_device+0x78/0x110
[58877.151311]  ? driver_probe_device+0x1f/0xa0
[58877.151314]  ? __driver_attach+0xba/0x1c0
[58877.151317]  ? bus_for_each_dev+0x8f/0xe0
[58877.151323]  ? bus_add_driver+0x142/0x220
[58877.151326]  ? driver_register+0x72/0xd0
[58877.151330]  ? usb_register_driver+0x7e/0x120
[58877.151335]  ? init_module+0x55/0xff0 [88XXau]
[58877.151385]  ? __UNIQUE_ID_vermagic434+0x4926b828dd00/0x4926b828dd00 [88XXau]
[58877.151433]  ? do_one_initcall+0x5b/0x310
[58877.151440]  ? do_init_module+0x90/0x250
[58877.151444]  ? __do_sys_init_module+0x17a/0x1b0
[58877.151449]  ? do_syscall_64+0x82/0x160
[58877.151452]  ? __mod_memcg_lruvec_state+0xc2/0x180
[58877.151457]  ? __lruvec_stat_mod_folio+0x68/0xa0
[58877.151460]  ? set_ptes.isra.0+0x28/0x90
[58877.151464]  ? do_anonymous_page+0x410/0x770
[58877.151468]  ? pmdp_invalidate+0xe0/0x100
[58877.151473]  ? __handle_mm_fault+0xc7d/0xe30
[58877.151479]  ? __count_memcg_events+0x69/0x100
[58877.151482]  ? count_memcg_events.constprop.0+0x1a/0x30
[58877.151486]  ? handle_mm_fault+0x1f0/0x300
[58877.151490]  ? do_user_addr_fault+0x34e/0x620
[58877.151495]  ? exc_page_fault+0x7e/0x180
[58877.151499]  ? entry_SYSCALL_64_after_hwframe+0x76/0x7e
[58877.151505]  </TASK>
[58877.151506] ---[ end trace 0000000000000000 ]---
[58877.152324] usbcore: registered new interface driver rtl88XXau
[58877.172186] rtl88XXau 1-4:1.0 wlp0s20u4: renamed from wlan0
[58877.317482] [Warning] Supportability Init Warning !!!
[58877.318443] [phydm_cck_pd_init]warning
[58899.862766] [phydm_cck_pd_th]warning

Can somebody point me a kernel supported Wifi USB module I can buy on amazon ?

Some wifi chips have support for older kernels, but without vendor support they are often fall behind when newer kernels appear, see: https://github.com/morrownr/USB-WiFi/issues/314.

Don’t buy USB WiFi unless the vendor provides the USB ID and you confirm that the ID is supported by linux.org “in kernel” drivers, easily checked using https://linux-hardware.org/?view=search&vendorid=2357&deviceid=011E&typeid=net%2Fwireless#list by editing the ID’s in the URL. You can also try a “site” search: site:https://linux-hardware.org/ vendor part-name.

1 Like

Thanks a lot for these information. I will check first to build the driver for this last WIFI driver. There was a ticket in:

If it doesn’t work, I will check for a new dongle.