aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.39k stars 749 forks source link

6.6.31 on x86_64 , adapter comes up but doesnt transfer any frames #1155

Open Simon566 opened 1 month ago

Simon566 commented 1 month ago

funny thing is , that 6.6.30 with the same kernel config was working

something in between killed the functionality ( its a 8812au adapter )

shaked8634 commented 1 month ago

I may be affected from the same issue. Managed mode works great, but monitor mode has stopped working recently (no packets are seen and no error in dmesg).

I suspect that it's something to do with nl80211. Though it only reported on 6.9.

koku17 commented 1 month ago

status of NetworkManager in Debian

● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-05-25 20:20:54 IST; 6min ago
Docs: man:NetworkManager(8)
Main PID: 850 (NetworkManager)
Tasks: 3 (limit: 33335)
Memory: 18.4M
CPU: 153ms
CGroup: /system.slice/NetworkManager.service
└─850 /usr/sbin/NetworkManager --no-daemon

May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3519] device (enx5ed7df4dee2e): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3967] device (enx5ed7df4dee2e): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3968] device (enx5ed7df4dee2e): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3970] manager: NetworkManager state is now CONNECTED_SITE
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3972] device (enx5ed7df4dee2e): Activation: successful, device activated.
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3974] manager: NetworkManager state is now CONNECTED_GLOBAL
May 25 20:26:06 myhost NetworkManager[850]: <warn>  [1716648966.7345] platform-linux: do-change-link[3]: failure 1 (Operation not permitted)
May 25 20:26:06 myhost NetworkManager[850]: <warn>  [1716648966.7345] device (wlx3460f9103cfd): set-hw-addr: failedto set MAC address to xx:yy:zz:xx:yy:zz (scanning) (NME_UNSPEC)
May 25 20:26:06 myhost NetworkManager[850]: <info>  [1716648966.8424] device (wlx3460f9103cfd): supplicant interface state: disconnected -> inactive
May 25 20:26:06 myhost NetworkManager[850]: <info>  [1716648966.8425] device (p2p-dev-wlx3460f9103cfd): supplicant management interface state: disconnected -> inactive

Kernel (6.1.0) dmesg

[    8.725309] ------------[ cut here ]------------
[    8.725311] WARNING: CPU: 1 PID: 463 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.c:62 rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    8.725341] Modules linked in: irqbypass bluetooth(+) 88XXau(OE+) ghash_clmulni_intel sha256_ssse3 sha1_ssse3 snd_hda_codec_realtek jitterentropy_rng snd_hda_codec_generic snd_hda_codec_hdmi sha512_ssse3 uvcvideo(+) snd_usb_audio(+) sha512_generic snd_hda_intel videobuf2_vmalloc videobuf2_memops snd_intel_dspcfg videobuf2_v4l2 snd_intel_sdw_acpi videobuf2_common aesni_intel snd_hda_codec snd_usbmidi_lib snd_rawmidi crypto_simd videodev cryptd ctr snd_hda_core snd_seq_device cfg80211 snd_hwdep mc eeepc_wmi drbg asus_wmi snd_pcm rapl battery platform_profile ansi_cprng sparse_keymap sp5100_tco snd_timer ledtrig_audio ecdh_generic pcspkr wmi_bmof k10temp watchdog snd ccp rfkill soundcore ecc joydev acpi_cpufreq sg evdev msr parport_pc ppdev lp parport fuse loop dm_mod efi_pstore configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid amdgpu gpu_sched drm_buddy i2c_algo_bit drm_display_helper cec sd_mod rc_core drm_ttm_helper ttm
[    8.725418]  drm_kms_helper ahci xhci_pci nvme libahci xhci_hcd nvme_core libata r8169 t10_pi drm realtek crc32_pclmul mdio_devres usbcore scsi_mod crc32c_intel crc64_rocksoft libphy crc64 crc_t10dif i2c_piix4 crct10dif_genericscsi_common crct10dif_pclmul usb_common video crct10dif_common wmi button
[    8.725445] CPU: 1 PID: 463 Comm: (udev-worker) Tainted: G           OE      6.1.0-21-amd64 #1  Debian 6.1.90-1
[    8.725449] Hardware name: System manufacturer System Product Name/TUF GAMING X570-PLUS, BIOS 4403 04/28/2022
[    8.725450] RIP: 0010:rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    8.725487] Code: 3e 00 00 80 fa 0e 76 17 8b 15 f8 3d 0a 00 85 d2 74 18 be 04 00 00 00 48 89 c7 e9 0b 08 07 00 8b 14 95 90 7a b2 c1 85 d2 75 e8 <0f> 0b be 04 00 00 00 48 89 c7 e9 f1 07 07 00 90 0f 1f 44 00 00 48
[    8.725489] RSP: 0018:ffffb98680a2ba70 EFLAGS: 00010246
[    8.725492] RAX: ffffb9868135eed0 RBX: ffffb98680757000 RCX: 0000000000000002
[    8.725494] RDX: 0000000000000000 RSI: ffffffffc1b379cd RDI: ffffb98680757000
[    8.725495] RBP: ffff9e36696b7000 R08: ffffffffc1b379cc R09: 0000000000000000
[    8.725497] R10: ffffffffffffffff R11: ffffb98680a2b9c9 R12: ffff9e3669769800
[    8.725498] R13: ffffffffc1b8a440 R14: ffff9e3669769800 R15: ffff9e36de79b000
[    8.725500] FS:  00007f66bae928c0(0000) GS:ffff9e3c51c40000(0000) knlGS:0000000000000000
[    8.725501] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    8.725503] CR2: 00007f7fa0b3d620 CR3: 000000019d6d0000 CR4: 0000000000750ee0
[    8.725504] PKRU: 55555554
[    8.725505] Call Trace:
[    8.725507]  <TASK>
[    8.725510]  ? __warn+0x7d/0xc0
[    8.725514]  ? rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    8.725547]  ? report_bug+0xe2/0x150
[    8.725552]  ? handle_bug+0x41/0x70
[    8.725556]  ? exc_invalid_op+0x13/0x60
[    8.725558]  ? asm_exc_invalid_op+0x16/0x20
[    8.725564]  ? rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    8.725592]  rtw_usb_primary_adapter_init+0x108/0x850 [88XXau]
[    8.725630]  rtw_usb_primary_adapter_init+0x3c2/0x850 [88XXau]
[    8.725663]  usb_probe_interface+0xe2/0x2b0 [usbcore]
[    8.725679]  really_probe+0xde/0x380
[    8.725683]  ? pm_runtime_barrier+0x50/0x90
[    8.725687]  __driver_probe_device+0x78/0x120
[    8.725689]  driver_probe_device+0x1f/0x90
[    8.725692]  __driver_attach+0xce/0x1c0
[    8.725695]  ? __device_attach_driver+0x110/0x110
[    8.725697]  bus_for_each_dev+0x87/0xd0
[    8.725700]  bus_add_driver+0x1ae/0x200
[    8.725704]  driver_register+0x89/0xe0
[    8.725707]  usb_register_driver+0x84/0x120 [usbcore]
[    8.725718]  init_module+0x51/0x1000 [88XXau]
[    8.725740]  ? 0xffffffffc18ae000
[    8.725742]  do_one_initcall+0x59/0x220
[    8.725747]  do_init_module+0x4a/0x1f0
[    8.725751]  __do_sys_finit_module+0xac/0x120
[    8.725756]  do_syscall_64+0x55/0xb0
[    8.725760]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725763]  ? __do_sys_newfstatat+0x4e/0x80
[    8.725768]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725769]  ? exit_to_user_mode_prepare+0x44/0x1f0
[    8.725772]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725773]  ? syscall_exit_to_user_mode+0x1e/0x40
[    8.725776]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725777]  ? do_syscall_64+0x61/0xb0
[    8.725779]  ? do_syscall_64+0x61/0xb0
[    8.725781]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725782]  ? syscall_exit_to_user_mode+0x1e/0x40
[    8.725784]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725785]  ? do_syscall_64+0x61/0xb0
[    8.725787]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725788]  ? exit_to_user_mode_prepare+0x44/0x1f0
[    8.725791]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[    8.725793] RIP: 0033:0x7f66bb083719
[    8.725794] Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b7 06 0d 00 f7 d8 64 89 01 48
[    8.725796] RSP: 002b:00007ffff8894878 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    8.725798] RAX: ffffffffffffffda RBX: 000055faa2611740 RCX: 00007f66bb083719
[    8.725799] RDX: 0000000000000000 RSI: 00007f66bb216efd RDI: 000000000000000f
[    8.725800] RBP: 00007f66bb216efd R08: 0000000000000000 R09: 000055faa2515440
[    8.725801] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000020000
[    8.725802] R13: 0000000000000000 R14: 000055faa260df10 R15: 000055faa0e91ec1
[    8.725806]  </TASK>
[    8.725807] ---[ end trace 0000000000000000 ]---
[    8.738079] Bluetooth: Core ver 2.22
[    8.738308] NET: Registered PF_BLUETOOTH protocol family
[    8.738319] Bluetooth: HCI device and connection manager initialized
[    8.738349] Bluetooth: HCI socket layer initialized
[    8.738371] Bluetooth: L2CAP socket layer initialized
[    8.738414] Bluetooth: SCO socket layer initialized
[    8.757058] usbcore: registered new interface driver btusb
[    8.757956] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
[    8.759945] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    8.759947] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
[    8.760453] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8761bu_fw.bin
[    8.760465] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
[    8.760536] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8761bu_config.bin
[    8.760547] Bluetooth: hci0: RTL: cfg_sz 6, total sz 27814
[    8.802085] SVM: TSC scaling supported
[    8.802089] kvm: Nested Virtualization enabled
[    8.802090] SVM: kvm: Nested Paging enabled
[    8.802104] SVM: Virtual VMLOAD VMSAVE supported
[    8.802105] SVM: Virtual GIF supported
[    8.802106] SVM: LBR virtualization supported
[    8.812223] MCE: In-kernel MCE decoding enabled.
[    8.902758] intel_rapl_common: Found RAPL domain package
[    8.902761] intel_rapl_common: Found RAPL domain core
[    9.010018] Bluetooth: hci0: RTL: fw version 0x09a98a6b
[    9.271300] usb 3-1: 88XXau 34:60:f9:10:3c:fd hw_info[107]
[    9.277163] ------------[ cut here ]------------
[    9.277164] WARNING: CPU: 13 PID: 463 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.c:62 rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    9.277215] Modules linked in: intel_rapl_msr intel_rapl_common edac_mce_amd kvm_amd btusb btrtl btbcm kvm btintel btmtk irqbypass bluetooth 88XXau(OE+) ghash_clmulni_intel sha256_ssse3 sha1_ssse3 snd_hda_codec_realtek jitterentropy_rng snd_hda_codec_generic snd_hda_codec_hdmi sha512_ssse3 uvcvideo(+) snd_usb_audio(+) sha512_generic snd_hda_intel videobuf2_vmalloc videobuf2_memops snd_intel_dspcfg videobuf2_v4l2 snd_intel_sdw_acpi videobuf2_common aesni_intel snd_hda_codec snd_usbmidi_lib snd_rawmidi crypto_simd videodev cryptd ctr snd_hda_core snd_seq_device cfg80211 snd_hwdep mc eeepc_wmi drbg asus_wmi snd_pcm rapl battery platform_profile ansi_cprng sparse_keymap sp5100_tco snd_timer ledtrig_audio ecdh_generic pcspkr wmi_bmof k10temp watchdog snd ccp rfkill soundcore ecc joydev acpi_cpufreq sg evdev msr parport_pc ppdev lp parport fuse loop dm_mod efi_pstore configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid amdgpu gpu_sched
[    9.277299]  drm_buddy i2c_algo_bit drm_display_helper cec sd_mod rc_core drm_ttm_helper ttm drm_kms_helper ahcixhci_pci nvme libahci xhci_hcd nvme_core libata r8169 t10_pi drm realtek crc32_pclmul mdio_devres usbcore scsi_modcrc32c_intel crc64_rocksoft libphy crc64 crc_t10dif i2c_piix4 crct10dif_generic scsi_common crct10dif_pclmul usb_common video crct10dif_common wmi button
[    9.277334] CPU: 13 PID: 463 Comm: (udev-worker) Tainted: G        W  OE      6.1.0-21-amd64 #1  Debian 6.1.90-1
[    9.277337] Hardware name: System manufacturer System Product Name/TUF GAMING X570-PLUS, BIOS 4403 04/28/2022
[    9.277339] RIP: 0010:rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    9.277371] Code: 3e 00 00 80 fa 0e 76 17 8b 15 f8 3d 0a 00 85 d2 74 18 be 04 00 00 00 48 89 c7 e9 0b 08 07 00 8b 14 95 90 7a b2 c1 85 d2 75 e8 <0f> 0b be 04 00 00 00 48 89 c7 e9 f1 07 07 00 90 0f 1f 44 00 00 48
[    9.277374] RSP: 0018:ffffb98680a2b9e0 EFLAGS: 00010246
[    9.277376] RAX: ffffb9868135eed0 RBX: ffffb98680757000 RCX: 0000000000000008
[    9.277378] RDX: 0000000000000000 RSI: 00000000000000ff RDI: ffffb98680757000
[    9.277380] RBP: ffffb9868135eed0 R08: 0000000000000000 R09: ffffb9868075a792
[    9.277381] R10: ffffb9868139f000 R11: 0000000000000000 R12: ffffb9868135b000
[    9.277383] R13: ffff9e36696b7000 R14: ffff9e3669769800 R15: ffff9e36de79b000
[    9.277384] FS:  00007f66bae928c0(0000) GS:ffff9e3c51f40000(0000) knlGS:0000000000000000
[    9.277386] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    9.277388] CR2: 00007f7199880a28 CR3: 000000019d6d0000 CR4: 0000000000750ee0
[    9.277390] PKRU: 55555554
[    9.277391] Call Trace:
[    9.277395]  <TASK>
[    9.277398]  ? __warn+0x7d/0xc0
[    9.277402]  ? rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    9.277430]  ? report_bug+0xe2/0x150
[    9.277437]  ? handle_bug+0x41/0x70
[    9.277440]  ? exc_invalid_op+0x13/0x60
[    9.277443]  ? asm_exc_invalid_op+0x16/0x20
[    9.277449]  ? rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    9.277473]  Init_ODM_ComInfo+0x33/0x5a0 [88XXau]
[    9.277517]  rtl8812_init_dm_priv+0x48/0xa0 [88XXau]
[    9.277555]  rtw_hal_dm_init+0x1d/0x40 [88XXau]
[    9.277595]  rtw_init_drv_sw+0x248/0x270 [88XXau]
[    9.277631]  rtw_usb_primary_adapter_init+0x12c/0x850 [88XXau]
[    9.277660]  rtw_usb_primary_adapter_init+0x3c2/0x850 [88XXau]
[    9.277687]  usb_probe_interface+0xe2/0x2b0 [usbcore]
[    9.277703]  really_probe+0xde/0x380
[    9.277709]  ? pm_runtime_barrier+0x50/0x90
[    9.277713]  __driver_probe_device+0x78/0x120
[    9.277717]  driver_probe_device+0x1f/0x90
[    9.277721]  __driver_attach+0xce/0x1c0
[    9.277724]  ? __device_attach_driver+0x110/0x110
[    9.277727]  bus_for_each_dev+0x87/0xd0
[    9.277732]  bus_add_driver+0x1ae/0x200
[    9.277736]  driver_register+0x89/0xe0
[    9.277740]  usb_register_driver+0x84/0x120 [usbcore]
[    9.277754]  init_module+0x51/0x1000 [88XXau]
[    9.277779]  ? 0xffffffffc18ae000
[    9.277781]  do_one_initcall+0x59/0x220
[    9.277788]  do_init_module+0x4a/0x1f0
[    9.277794]  __do_sys_finit_module+0xac/0x120
[    9.277801]  do_syscall_64+0x55/0xb0
[    9.277806]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277810]  ? __do_sys_newfstatat+0x4e/0x80
[    9.277817]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277819]  ? exit_to_user_mode_prepare+0x44/0x1f0
[    9.277822]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277824]  ? syscall_exit_to_user_mode+0x1e/0x40
[    9.277827]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277829]  ? do_syscall_64+0x61/0xb0
[    9.277832]  ? do_syscall_64+0x61/0xb0
[    9.277834]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277836]  ? syscall_exit_to_user_mode+0x1e/0x40
[    9.277839]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277841]  ? do_syscall_64+0x61/0xb0
[    9.277844]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277846]  ? exit_to_user_mode_prepare+0x44/0x1f0
[    9.277849]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[    9.277852] RIP: 0033:0x7f66bb083719
[    9.277854] Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b7 06 0d 00 f7 d8 64 89 01 48
[    9.277856] RSP: 002b:00007ffff8894878 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    9.277859] RAX: ffffffffffffffda RBX: 000055faa2611740 RCX: 00007f66bb083719
[    9.277861] RDX: 0000000000000000 RSI: 00007f66bb216efd RDI: 000000000000000f
[    9.277862] RBP: 00007f66bb216efd R08: 0000000000000000 R09: 000055faa2515440
[    9.277864] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000020000
[    9.277866] R13: 0000000000000000 R14: 000055faa260df10 R15: 000055faa0e91ec1
[    9.277871]  </TASK>
[    9.277872] ---[ end trace 0000000000000000 ]---
[    9.278241] usbcore: registered new interface driver rtl88XXau
[    9.285878] rtl88XXau 3-1:1.0 wlx3460f9103cfd: renamed from wlan0
[    9.375254] EXT4-fs (nvme0n1p3): mounted filesystem with ordered data mode. Quota mode: none.
[    9.398341] audit: type=1400 audit(1716648653.869:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=780 comm="apparmor_parser"
[    9.398348] audit: type=1400 audit(1716648653.869:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=782 comm="apparmor_parser"
[    9.398696] audit: type=1400 audit(1716648653.869:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oosplash" pid=779 comm="apparmor_parser"
[    9.398921] audit: type=1400 audit(1716648653.869:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=771 comm="apparmor_parser"
[    9.399358] audit: type=1400 audit(1716648653.869:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=774 comm="apparmor_parser"
[    9.399363] audit: type=1400 audit(1716648653.869:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=774 comm="apparmor_parser"
[    9.399495] audit: type=1400 audit(1716648653.869:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=778 comm="apparmor_parser"
[    9.399499] audit: type=1400 audit(1716648653.869:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=778 comm="apparmor_parser"
[    9.399502] audit: type=1400 audit(1716648653.869:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=778 comm="apparmor_parser"
[    9.399893] audit: type=1400 audit(1716648653.869:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirtd" pid=786 comm="apparmor_parser"
[    9.546102] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.546105] Bluetooth: BNEP filters: protocol multicast
[    9.546108] Bluetooth: BNEP socket layer initialized
[    9.547078] Bluetooth: MGMT ver 1.22
[    9.549621] NET: Registered PF_ALG protocol family
[    9.577123] NET: Registered PF_QIPCRTR protocol family
[    9.607785] r8169 0000:03:00.0: firmware: direct-loading firmware rtl_nic/rtl8168h-2.fw
[    9.632250] Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
[    9.820648] r8169 0000:03:00.0 enp3s0: Link is Down
[   10.120499] usb 5-2: set resolution quirk: cval->res = 384
[   10.120781] usbcore: registered new interface driver snd-usb-audio
[   10.120826] usb 5-2: Found UVC 1.00 device <unnamed> (046d:081b)
[   10.160540] input: UVC Camera (046d:081b) as /devices/pci0000:00/0000:00:08.1/0000:08:00.3/usb5/5-2/5-2:1.0/input/input26
[   10.160703] usbcore: registered new interface driver uvcvideo
[   10.282909] [Warning] Supportability Init Warning !!!
[   10.291534] [phydm_cck_pd_init]warning
[   11.754560] Bluetooth: RFCOMM TTY layer initialized
[   11.754566] Bluetooth: RFCOMM socket layer initialized
[   11.754571] Bluetooth: RFCOMM ver 1.11
[   20.435864] [phydm_cck_pd_th]warning
[   24.356923] usb 5-2: reset high-speed USB device number 2 using xhci_hcd
[   32.530112] [phydm_cck_pd_th]warning
[   32.531116] BUG: kernel NULL pointer dereference, address: 0000000000000000
[   32.531127] #PF: supervisor instruction fetch in kernel mode
[   32.531133] #PF: error_code(0x0010) - not-present page
[   32.531140] PGD 0 P4D 0 
[   32.531151] Oops: 0010 [#1] PREEMPT SMP NOPTI
[   32.531159] CPU: 0 PID: 961 Comm: RTW_CMD_THREAD Tainted: G        W  OE      6.1.0-21-amd64 #1  Debian 6.1.90-1
[   32.531170] Hardware name: System manufacturer System Product Name/TUF GAMING X570-PLUS, BIOS 4403 04/28/2022
[   32.531176] RIP: 0010:0x0
[   32.531190] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[   32.531195] RSP: 0018:ffffb98681defd10 EFLAGS: 00010283
[   32.531203] RAX: 0000000000000000 RBX: ffffb9868135eed0 RCX: ffffb98681defd28
[   32.531210] RDX: ffffb98681defd20 RSI: ffffb98681defd18 RDI: ffffb9868135eed0
[   32.531215] RBP: 000000000000001d R08: ffffb98681defd30 R09: 0000000000000000
[   32.531219] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[   32.531223] R13: ffffb98681defd68 R14: 000000000000001e R15: ffff9e365308cf40
[   32.531228] FS:  0000000000000000(0000) GS:ffff9e3c51c00000(0000) knlGS:0000000000000000
[   32.531234] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   32.531238] CR2: ffffffffffffffd6 CR3: 000000019ce10000 CR4: 0000000000750ef0
[   32.531243] PKRU: 55555554
[   32.531247] Call Trace:
[   32.531251]  <TASK>
[   32.531257]  ? __die_body.cold+0x1a/0x1f
[   32.531269]  ? page_fault_oops+0xd2/0x2b0
[   32.531283]  ? exc_page_fault+0x70/0x170
[   32.531294]  ? asm_exc_page_fault+0x22/0x30
[   32.531314]  odm_get_tracking_table+0xd3/0x3d0 [88XXau]
[   32.531387]  odm_txpowertracking_callback_thermal_meter+0x350/0x770 [88XXau]
[   32.531443]  odm_txpowertracking_check+0x42/0xa0 [88XXau]
[   32.531491]  phydm_watchdog+0x88/0xe0 [88XXau]
[   32.531562]  rtw_drvextra_cmd_hdl+0x15d/0x3e0 [88XXau]
[   32.531611]  rtw_cmd_thread+0x23d/0x510 [88XXau]
[   32.531657]  ? session_tracker_cmd_hdl+0x270/0x270 [88XXau]
[   32.531704]  ? rtw_stop_cmd_thread+0x50/0x50 [88XXau]
[   32.531746]  kthread+0xda/0x100
[   32.531755]  ? kthread_complete_and_exit+0x20/0x20
[   32.531764]  ret_from_fork+0x22/0x30
[   32.531781]  </TASK>
[   32.531784] Modules linked in: rfcomm qrtr cmac algif_hash algif_skcipher af_alg bnep binfmt_misc nls_ascii nls_cp437 vfat fat intel_rapl_msr intel_rapl_common edac_mce_amd kvm_amd btusb btrtl btbcm kvm btintel btmtk irqbypass bluetooth 88XXau(OE) ghash_clmulni_intel sha256_ssse3 sha1_ssse3 snd_hda_codec_realtek jitterentropy_rng snd_hda_codec_generic snd_hda_codec_hdmi sha512_ssse3 uvcvideo snd_usb_audio sha512_generic snd_hda_intel videobuf2_vmalloc videobuf2_memops snd_intel_dspcfg videobuf2_v4l2 snd_intel_sdw_acpi videobuf2_common aesni_intel snd_hda_codec snd_usbmidi_lib snd_rawmidi crypto_simd videodev cryptd ctr snd_hda_core snd_seq_device cfg80211 snd_hwdep mc eeepc_wmi drbg asus_wmi snd_pcm rapl battery platform_profile ansi_cprng sparse_keymap sp5100_tco snd_timer ledtrig_audio ecdh_generic pcspkr wmi_bmof k10temp watchdog snd ccp rfkill soundcore ecc joydev acpi_cpufreq sg evdev msr parport_pcppdev lp parport fuse loop dm_mod efi_pstore configfs efivarfs ip_tables x_tables
[   32.531968]  autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid amdgpu gpu_sched drm_buddy i2c_algo_bit drm_display_helper cec sd_mod rc_core drm_ttm_helper ttm drm_kms_helper ahci xhci_pci nvme libahci xhci_hcd nvme_core libata r8169 t10_pi drm realtek crc32_pclmul mdio_devres usbcore scsi_mod crc32c_intel crc64_rocksoftlibphy crc64 crc_t10dif i2c_piix4 crct10dif_generic scsi_common crct10dif_pclmul usb_common video crct10dif_commonwmi button
[   32.532066] CR2: 0000000000000000
[   32.532071] ---[ end trace 0000000000000000 ]---
[   32.662087] RIP: 0010:0x0
[   32.662087] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[   32.662087] RSP: 0018:ffffb98681defd10 EFLAGS: 00010283
[   32.662087] RAX: 0000000000000000 RBX: ffffb9868135eed0 RCX: ffffb98681defd28
[   32.662087] RDX: ffffb98681defd20 RSI: ffffb98681defd18 RDI: ffffb9868135eed0
[   32.662087] RBP: 000000000000001d R08: ffffb98681defd30 R09: 0000000000000000
[   32.662087] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[   32.662087] R13: ffffb98681defd68 R14: 000000000000001e R15: ffff9e365308cf40
[   32.662087] FS:  0000000000000000(0000) GS:ffff9e3c51c00000(0000) knlGS:0000000000000000
[   32.662087] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   32.662087] CR2: ffffffffffffffd6 CR3: 0000000111df4000 CR4: 0000000000750ef0
[   32.662087] PKRU: 55555554
[   32.662087] note: RTW_CMD_THREAD[961] exited with irqs disabled
[  216.866391] usb 3-2: USB disconnect, device number 3
koku17 commented 1 month ago

I have a got a temporary solution, but not good for bleeding edge kernels

Get all the commits done before

$ git log --oneline > ../rtl8812au.commits

Grab a cofee and read them and select what you want :

$ less git ../rtl*.commits

Replace <commit> with what you selected,

$ git reset <commit> --hard
HEAD is now at d8ad927 Fix build on 6.x kernels.

In my case I have selected d8ad927

$ git reset d8ad927 --hard

Remove the module if exist (for more info see installation instructions)

$ cd rtl* ; sudo make dkms_remove

After that follow installation instructions.

 0 0      ---- I didn't wonder git had this feature ----
\___/
shaked8634 commented 1 month ago

Can confirm on then compiling the driver with commit #d8ad927 on 6.6.32 solves the issue.

yoyo956 commented 1 month ago
  • It was working fine before update. However after the update to kernel 6.9.1 (Arch linux) the problem started.

  • I was not able to connect to wifi from Archer T2U Nano, the device was 'unavailable' in nmcli.

  • I used rfkill to remove soft lock on the device, the device was shown as 'disconnected' in nmcli and tried to search for wifi networks buy no success on that.

  • Later I downgrade the kernel to version 6.6.3-2(lts) after removing the modules in version 6.9.1.

  • After reinstalling the modules via dkms for lts I had similar problem, this time device was 'disconnected' instead of 'unmanaged', another reboot I tested the wifi same status 'disconnect'.

  • After I installed Debian (Kernel 6.1.0) and tested again same error as the long-term kernel 6.6.3 as in Arch linux

status of NetworkManager in Debian

● NetworkManager.service - Network Manager
Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-05-25 20:20:54 IST; 6min ago
Docs: man:NetworkManager(8)
Main PID: 850 (NetworkManager)
Tasks: 3 (limit: 33335)
Memory: 18.4M
CPU: 153ms
CGroup: /system.slice/NetworkManager.service
└─850 /usr/sbin/NetworkManager --no-daemon

May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3519] device (enx5ed7df4dee2e): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3967] device (enx5ed7df4dee2e): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3968] device (enx5ed7df4dee2e): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3970] manager: NetworkManager state is now CONNECTED_SITE
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3972] device (enx5ed7df4dee2e): Activation: successful, device activated.
May 25 20:24:24 myhost NetworkManager[850]: <info>  [1716648864.3974] manager: NetworkManager state is now CONNECTED_GLOBAL
May 25 20:26:06 myhost NetworkManager[850]: <warn>  [1716648966.7345] platform-linux: do-change-link[3]: failure 1 (Operation not permitted)
May 25 20:26:06 myhost NetworkManager[850]: <warn>  [1716648966.7345] device (wlx3460f9103cfd): set-hw-addr: failedto set MAC address to xx:yy:zz:xx:yy:zz (scanning) (NME_UNSPEC)
May 25 20:26:06 myhost NetworkManager[850]: <info>  [1716648966.8424] device (wlx3460f9103cfd): supplicant interface state: disconnected -> inactive
May 25 20:26:06 myhost NetworkManager[850]: <info>  [1716648966.8425] device (p2p-dev-wlx3460f9103cfd): supplicant management interface state: disconnected -> inactive

Kernel (6.1.0) dmesg

[    8.725309] ------------[ cut here ]------------
[    8.725311] WARNING: CPU: 1 PID: 463 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.c:62 rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    8.725341] Modules linked in: irqbypass bluetooth(+) 88XXau(OE+) ghash_clmulni_intel sha256_ssse3 sha1_ssse3 snd_hda_codec_realtek jitterentropy_rng snd_hda_codec_generic snd_hda_codec_hdmi sha512_ssse3 uvcvideo(+) snd_usb_audio(+) sha512_generic snd_hda_intel videobuf2_vmalloc videobuf2_memops snd_intel_dspcfg videobuf2_v4l2 snd_intel_sdw_acpi videobuf2_common aesni_intel snd_hda_codec snd_usbmidi_lib snd_rawmidi crypto_simd videodev cryptd ctr snd_hda_core snd_seq_device cfg80211 snd_hwdep mc eeepc_wmi drbg asus_wmi snd_pcm rapl battery platform_profile ansi_cprng sparse_keymap sp5100_tco snd_timer ledtrig_audio ecdh_generic pcspkr wmi_bmof k10temp watchdog snd ccp rfkill soundcore ecc joydev acpi_cpufreq sg evdev msr parport_pc ppdev lp parport fuse loop dm_mod efi_pstore configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid amdgpu gpu_sched drm_buddy i2c_algo_bit drm_display_helper cec sd_mod rc_core drm_ttm_helper ttm
[    8.725418]  drm_kms_helper ahci xhci_pci nvme libahci xhci_hcd nvme_core libata r8169 t10_pi drm realtek crc32_pclmul mdio_devres usbcore scsi_mod crc32c_intel crc64_rocksoft libphy crc64 crc_t10dif i2c_piix4 crct10dif_genericscsi_common crct10dif_pclmul usb_common video crct10dif_common wmi button
[    8.725445] CPU: 1 PID: 463 Comm: (udev-worker) Tainted: G           OE      6.1.0-21-amd64 #1  Debian 6.1.90-1
[    8.725449] Hardware name: System manufacturer System Product Name/TUF GAMING X570-PLUS, BIOS 4403 04/28/2022
[    8.725450] RIP: 0010:rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    8.725487] Code: 3e 00 00 80 fa 0e 76 17 8b 15 f8 3d 0a 00 85 d2 74 18 be 04 00 00 00 48 89 c7 e9 0b 08 07 00 8b 14 95 90 7a b2 c1 85 d2 75 e8 <0f> 0b be 04 00 00 00 48 89 c7 e9 f1 07 07 00 90 0f 1f 44 00 00 48
[    8.725489] RSP: 0018:ffffb98680a2ba70 EFLAGS: 00010246
[    8.725492] RAX: ffffb9868135eed0 RBX: ffffb98680757000 RCX: 0000000000000002
[    8.725494] RDX: 0000000000000000 RSI: ffffffffc1b379cd RDI: ffffb98680757000
[    8.725495] RBP: ffff9e36696b7000 R08: ffffffffc1b379cc R09: 0000000000000000
[    8.725497] R10: ffffffffffffffff R11: ffffb98680a2b9c9 R12: ffff9e3669769800
[    8.725498] R13: ffffffffc1b8a440 R14: ffff9e3669769800 R15: ffff9e36de79b000
[    8.725500] FS:  00007f66bae928c0(0000) GS:ffff9e3c51c40000(0000) knlGS:0000000000000000
[    8.725501] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    8.725503] CR2: 00007f7fa0b3d620 CR3: 000000019d6d0000 CR4: 0000000000750ee0
[    8.725504] PKRU: 55555554
[    8.725505] Call Trace:
[    8.725507]  <TASK>
[    8.725510]  ? __warn+0x7d/0xc0
[    8.725514]  ? rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    8.725547]  ? report_bug+0xe2/0x150
[    8.725552]  ? handle_bug+0x41/0x70
[    8.725556]  ? exc_invalid_op+0x13/0x60
[    8.725558]  ? asm_exc_invalid_op+0x16/0x20
[    8.725564]  ? rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    8.725592]  rtw_usb_primary_adapter_init+0x108/0x850 [88XXau]
[    8.725630]  rtw_usb_primary_adapter_init+0x3c2/0x850 [88XXau]
[    8.725663]  usb_probe_interface+0xe2/0x2b0 [usbcore]
[    8.725679]  really_probe+0xde/0x380
[    8.725683]  ? pm_runtime_barrier+0x50/0x90
[    8.725687]  __driver_probe_device+0x78/0x120
[    8.725689]  driver_probe_device+0x1f/0x90
[    8.725692]  __driver_attach+0xce/0x1c0
[    8.725695]  ? __device_attach_driver+0x110/0x110
[    8.725697]  bus_for_each_dev+0x87/0xd0
[    8.725700]  bus_add_driver+0x1ae/0x200
[    8.725704]  driver_register+0x89/0xe0
[    8.725707]  usb_register_driver+0x84/0x120 [usbcore]
[    8.725718]  init_module+0x51/0x1000 [88XXau]
[    8.725740]  ? 0xffffffffc18ae000
[    8.725742]  do_one_initcall+0x59/0x220
[    8.725747]  do_init_module+0x4a/0x1f0
[    8.725751]  __do_sys_finit_module+0xac/0x120
[    8.725756]  do_syscall_64+0x55/0xb0
[    8.725760]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725763]  ? __do_sys_newfstatat+0x4e/0x80
[    8.725768]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725769]  ? exit_to_user_mode_prepare+0x44/0x1f0
[    8.725772]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725773]  ? syscall_exit_to_user_mode+0x1e/0x40
[    8.725776]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725777]  ? do_syscall_64+0x61/0xb0
[    8.725779]  ? do_syscall_64+0x61/0xb0
[    8.725781]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725782]  ? syscall_exit_to_user_mode+0x1e/0x40
[    8.725784]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725785]  ? do_syscall_64+0x61/0xb0
[    8.725787]  ? srso_alias_return_thunk+0x5/0x7f
[    8.725788]  ? exit_to_user_mode_prepare+0x44/0x1f0
[    8.725791]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[    8.725793] RIP: 0033:0x7f66bb083719
[    8.725794] Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b7 06 0d 00 f7 d8 64 89 01 48
[    8.725796] RSP: 002b:00007ffff8894878 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    8.725798] RAX: ffffffffffffffda RBX: 000055faa2611740 RCX: 00007f66bb083719
[    8.725799] RDX: 0000000000000000 RSI: 00007f66bb216efd RDI: 000000000000000f
[    8.725800] RBP: 00007f66bb216efd R08: 0000000000000000 R09: 000055faa2515440
[    8.725801] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000020000
[    8.725802] R13: 0000000000000000 R14: 000055faa260df10 R15: 000055faa0e91ec1
[    8.725806]  </TASK>
[    8.725807] ---[ end trace 0000000000000000 ]---
[    8.738079] Bluetooth: Core ver 2.22
[    8.738308] NET: Registered PF_BLUETOOTH protocol family
[    8.738319] Bluetooth: HCI device and connection manager initialized
[    8.738349] Bluetooth: HCI socket layer initialized
[    8.738371] Bluetooth: L2CAP socket layer initialized
[    8.738414] Bluetooth: SCO socket layer initialized
[    8.757058] usbcore: registered new interface driver btusb
[    8.757956] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
[    8.759945] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    8.759947] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
[    8.760453] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8761bu_fw.bin
[    8.760465] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
[    8.760536] bluetooth hci0: firmware: direct-loading firmware rtl_bt/rtl8761bu_config.bin
[    8.760547] Bluetooth: hci0: RTL: cfg_sz 6, total sz 27814
[    8.802085] SVM: TSC scaling supported
[    8.802089] kvm: Nested Virtualization enabled
[    8.802090] SVM: kvm: Nested Paging enabled
[    8.802104] SVM: Virtual VMLOAD VMSAVE supported
[    8.802105] SVM: Virtual GIF supported
[    8.802106] SVM: LBR virtualization supported
[    8.812223] MCE: In-kernel MCE decoding enabled.
[    8.902758] intel_rapl_common: Found RAPL domain package
[    8.902761] intel_rapl_common: Found RAPL domain core
[    9.010018] Bluetooth: hci0: RTL: fw version 0x09a98a6b
[    9.271300] usb 3-1: 88XXau 34:60:f9:10:3c:fd hw_info[107]
[    9.277163] ------------[ cut here ]------------
[    9.277164] WARNING: CPU: 13 PID: 463 at /var/lib/dkms/8812au/5.6.4.2_35491.20191025/build/core/rtw_odm.c:62 rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    9.277215] Modules linked in: intel_rapl_msr intel_rapl_common edac_mce_amd kvm_amd btusb btrtl btbcm kvm btintel btmtk irqbypass bluetooth 88XXau(OE+) ghash_clmulni_intel sha256_ssse3 sha1_ssse3 snd_hda_codec_realtek jitterentropy_rng snd_hda_codec_generic snd_hda_codec_hdmi sha512_ssse3 uvcvideo(+) snd_usb_audio(+) sha512_generic snd_hda_intel videobuf2_vmalloc videobuf2_memops snd_intel_dspcfg videobuf2_v4l2 snd_intel_sdw_acpi videobuf2_common aesni_intel snd_hda_codec snd_usbmidi_lib snd_rawmidi crypto_simd videodev cryptd ctr snd_hda_core snd_seq_device cfg80211 snd_hwdep mc eeepc_wmi drbg asus_wmi snd_pcm rapl battery platform_profile ansi_cprng sparse_keymap sp5100_tco snd_timer ledtrig_audio ecdh_generic pcspkr wmi_bmof k10temp watchdog snd ccp rfkill soundcore ecc joydev acpi_cpufreq sg evdev msr parport_pc ppdev lp parport fuse loop dm_mod efi_pstore configfs efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid amdgpu gpu_sched
[    9.277299]  drm_buddy i2c_algo_bit drm_display_helper cec sd_mod rc_core drm_ttm_helper ttm drm_kms_helper ahcixhci_pci nvme libahci xhci_hcd nvme_core libata r8169 t10_pi drm realtek crc32_pclmul mdio_devres usbcore scsi_modcrc32c_intel crc64_rocksoft libphy crc64 crc_t10dif i2c_piix4 crct10dif_generic scsi_common crct10dif_pclmul usb_common video crct10dif_common wmi button
[    9.277334] CPU: 13 PID: 463 Comm: (udev-worker) Tainted: G        W  OE      6.1.0-21-amd64 #1  Debian 6.1.90-1
[    9.277337] Hardware name: System manufacturer System Product Name/TUF GAMING X570-PLUS, BIOS 4403 04/28/2022
[    9.277339] RIP: 0010:rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    9.277371] Code: 3e 00 00 80 fa 0e 76 17 8b 15 f8 3d 0a 00 85 d2 74 18 be 04 00 00 00 48 89 c7 e9 0b 08 07 00 8b 14 95 90 7a b2 c1 85 d2 75 e8 <0f> 0b be 04 00 00 00 48 89 c7 e9 f1 07 07 00 90 0f 1f 44 00 00 48
[    9.277374] RSP: 0018:ffffb98680a2b9e0 EFLAGS: 00010246
[    9.277376] RAX: ffffb9868135eed0 RBX: ffffb98680757000 RCX: 0000000000000008
[    9.277378] RDX: 0000000000000000 RSI: 00000000000000ff RDI: ffffb98680757000
[    9.277380] RBP: ffffb9868135eed0 R08: 0000000000000000 R09: ffffb9868075a792
[    9.277381] R10: ffffb9868139f000 R11: 0000000000000000 R12: ffffb9868135b000
[    9.277383] R13: ffff9e36696b7000 R14: ffff9e3669769800 R15: ffff9e36de79b000
[    9.277384] FS:  00007f66bae928c0(0000) GS:ffff9e3c51f40000(0000) knlGS:0000000000000000
[    9.277386] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    9.277388] CR2: 00007f7199880a28 CR3: 000000019d6d0000 CR4: 0000000000750ee0
[    9.277390] PKRU: 55555554
[    9.277391] Call Trace:
[    9.277395]  <TASK>
[    9.277398]  ? __warn+0x7d/0xc0
[    9.277402]  ? rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    9.277430]  ? report_bug+0xe2/0x150
[    9.277437]  ? handle_bug+0x41/0x70
[    9.277440]  ? exc_invalid_op+0x13/0x60
[    9.277443]  ? asm_exc_invalid_op+0x16/0x20
[    9.277449]  ? rtw_odm_init_ic_type+0x40/0x50 [88XXau]
[    9.277473]  Init_ODM_ComInfo+0x33/0x5a0 [88XXau]
[    9.277517]  rtl8812_init_dm_priv+0x48/0xa0 [88XXau]
[    9.277555]  rtw_hal_dm_init+0x1d/0x40 [88XXau]
[    9.277595]  rtw_init_drv_sw+0x248/0x270 [88XXau]
[    9.277631]  rtw_usb_primary_adapter_init+0x12c/0x850 [88XXau]
[    9.277660]  rtw_usb_primary_adapter_init+0x3c2/0x850 [88XXau]
[    9.277687]  usb_probe_interface+0xe2/0x2b0 [usbcore]
[    9.277703]  really_probe+0xde/0x380
[    9.277709]  ? pm_runtime_barrier+0x50/0x90
[    9.277713]  __driver_probe_device+0x78/0x120
[    9.277717]  driver_probe_device+0x1f/0x90
[    9.277721]  __driver_attach+0xce/0x1c0
[    9.277724]  ? __device_attach_driver+0x110/0x110
[    9.277727]  bus_for_each_dev+0x87/0xd0
[    9.277732]  bus_add_driver+0x1ae/0x200
[    9.277736]  driver_register+0x89/0xe0
[    9.277740]  usb_register_driver+0x84/0x120 [usbcore]
[    9.277754]  init_module+0x51/0x1000 [88XXau]
[    9.277779]  ? 0xffffffffc18ae000
[    9.277781]  do_one_initcall+0x59/0x220
[    9.277788]  do_init_module+0x4a/0x1f0
[    9.277794]  __do_sys_finit_module+0xac/0x120
[    9.277801]  do_syscall_64+0x55/0xb0
[    9.277806]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277810]  ? __do_sys_newfstatat+0x4e/0x80
[    9.277817]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277819]  ? exit_to_user_mode_prepare+0x44/0x1f0
[    9.277822]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277824]  ? syscall_exit_to_user_mode+0x1e/0x40
[    9.277827]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277829]  ? do_syscall_64+0x61/0xb0
[    9.277832]  ? do_syscall_64+0x61/0xb0
[    9.277834]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277836]  ? syscall_exit_to_user_mode+0x1e/0x40
[    9.277839]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277841]  ? do_syscall_64+0x61/0xb0
[    9.277844]  ? srso_alias_return_thunk+0x5/0x7f
[    9.277846]  ? exit_to_user_mode_prepare+0x44/0x1f0
[    9.277849]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[    9.277852] RIP: 0033:0x7f66bb083719
[    9.277854] Code: 08 89 e8 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d b7 06 0d 00 f7 d8 64 89 01 48
[    9.277856] RSP: 002b:00007ffff8894878 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    9.277859] RAX: ffffffffffffffda RBX: 000055faa2611740 RCX: 00007f66bb083719
[    9.277861] RDX: 0000000000000000 RSI: 00007f66bb216efd RDI: 000000000000000f
[    9.277862] RBP: 00007f66bb216efd R08: 0000000000000000 R09: 000055faa2515440
[    9.277864] R10: 000000000000000f R11: 0000000000000246 R12: 0000000000020000
[    9.277866] R13: 0000000000000000 R14: 000055faa260df10 R15: 000055faa0e91ec1
[    9.277871]  </TASK>
[    9.277872] ---[ end trace 0000000000000000 ]---
[    9.278241] usbcore: registered new interface driver rtl88XXau
[    9.285878] rtl88XXau 3-1:1.0 wlx3460f9103cfd: renamed from wlan0
[    9.375254] EXT4-fs (nvme0n1p3): mounted filesystem with ordered data mode. Quota mode: none.
[    9.398341] audit: type=1400 audit(1716648653.869:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-senddoc" pid=780 comm="apparmor_parser"
[    9.398348] audit: type=1400 audit(1716648653.869:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=782 comm="apparmor_parser"
[    9.398696] audit: type=1400 audit(1716648653.869:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-oosplash" pid=779 comm="apparmor_parser"
[    9.398921] audit: type=1400 audit(1716648653.869:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=771 comm="apparmor_parser"
[    9.399358] audit: type=1400 audit(1716648653.869:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=774 comm="apparmor_parser"
[    9.399363] audit: type=1400 audit(1716648653.869:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=774 comm="apparmor_parser"
[    9.399495] audit: type=1400 audit(1716648653.869:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=778 comm="apparmor_parser"
[    9.399499] audit: type=1400 audit(1716648653.869:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=778 comm="apparmor_parser"
[    9.399502] audit: type=1400 audit(1716648653.869:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=778 comm="apparmor_parser"
[    9.399893] audit: type=1400 audit(1716648653.869:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libvirtd" pid=786 comm="apparmor_parser"
[    9.546102] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.546105] Bluetooth: BNEP filters: protocol multicast
[    9.546108] Bluetooth: BNEP socket layer initialized
[    9.547078] Bluetooth: MGMT ver 1.22
[    9.549621] NET: Registered PF_ALG protocol family
[    9.577123] NET: Registered PF_QIPCRTR protocol family
[    9.607785] r8169 0000:03:00.0: firmware: direct-loading firmware rtl_nic/rtl8168h-2.fw
[    9.632250] Generic FE-GE Realtek PHY r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
[    9.820648] r8169 0000:03:00.0 enp3s0: Link is Down
[   10.120499] usb 5-2: set resolution quirk: cval->res = 384
[   10.120781] usbcore: registered new interface driver snd-usb-audio
[   10.120826] usb 5-2: Found UVC 1.00 device <unnamed> (046d:081b)
[   10.160540] input: UVC Camera (046d:081b) as /devices/pci0000:00/0000:00:08.1/0000:08:00.3/usb5/5-2/5-2:1.0/input/input26
[   10.160703] usbcore: registered new interface driver uvcvideo
[   10.282909] [Warning] Supportability Init Warning !!!
[   10.291534] [phydm_cck_pd_init]warning
[   11.754560] Bluetooth: RFCOMM TTY layer initialized
[   11.754566] Bluetooth: RFCOMM socket layer initialized
[   11.754571] Bluetooth: RFCOMM ver 1.11
[   20.435864] [phydm_cck_pd_th]warning
[   24.356923] usb 5-2: reset high-speed USB device number 2 using xhci_hcd
[   32.530112] [phydm_cck_pd_th]warning
[   32.531116] BUG: kernel NULL pointer dereference, address: 0000000000000000
[   32.531127] #PF: supervisor instruction fetch in kernel mode
[   32.531133] #PF: error_code(0x0010) - not-present page
[   32.531140] PGD 0 P4D 0 
[   32.531151] Oops: 0010 [#1] PREEMPT SMP NOPTI
[   32.531159] CPU: 0 PID: 961 Comm: RTW_CMD_THREAD Tainted: G        W  OE      6.1.0-21-amd64 #1  Debian 6.1.90-1
[   32.531170] Hardware name: System manufacturer System Product Name/TUF GAMING X570-PLUS, BIOS 4403 04/28/2022
[   32.531176] RIP: 0010:0x0
[   32.531190] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[   32.531195] RSP: 0018:ffffb98681defd10 EFLAGS: 00010283
[   32.531203] RAX: 0000000000000000 RBX: ffffb9868135eed0 RCX: ffffb98681defd28
[   32.531210] RDX: ffffb98681defd20 RSI: ffffb98681defd18 RDI: ffffb9868135eed0
[   32.531215] RBP: 000000000000001d R08: ffffb98681defd30 R09: 0000000000000000
[   32.531219] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[   32.531223] R13: ffffb98681defd68 R14: 000000000000001e R15: ffff9e365308cf40
[   32.531228] FS:  0000000000000000(0000) GS:ffff9e3c51c00000(0000) knlGS:0000000000000000
[   32.531234] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   32.531238] CR2: ffffffffffffffd6 CR3: 000000019ce10000 CR4: 0000000000750ef0
[   32.531243] PKRU: 55555554
[   32.531247] Call Trace:
[   32.531251]  <TASK>
[   32.531257]  ? __die_body.cold+0x1a/0x1f
[   32.531269]  ? page_fault_oops+0xd2/0x2b0
[   32.531283]  ? exc_page_fault+0x70/0x170
[   32.531294]  ? asm_exc_page_fault+0x22/0x30
[   32.531314]  odm_get_tracking_table+0xd3/0x3d0 [88XXau]
[   32.531387]  odm_txpowertracking_callback_thermal_meter+0x350/0x770 [88XXau]
[   32.531443]  odm_txpowertracking_check+0x42/0xa0 [88XXau]
[   32.531491]  phydm_watchdog+0x88/0xe0 [88XXau]
[   32.531562]  rtw_drvextra_cmd_hdl+0x15d/0x3e0 [88XXau]
[   32.531611]  rtw_cmd_thread+0x23d/0x510 [88XXau]
[   32.531657]  ? session_tracker_cmd_hdl+0x270/0x270 [88XXau]
[   32.531704]  ? rtw_stop_cmd_thread+0x50/0x50 [88XXau]
[   32.531746]  kthread+0xda/0x100
[   32.531755]  ? kthread_complete_and_exit+0x20/0x20
[   32.531764]  ret_from_fork+0x22/0x30
[   32.531781]  </TASK>
[   32.531784] Modules linked in: rfcomm qrtr cmac algif_hash algif_skcipher af_alg bnep binfmt_misc nls_ascii nls_cp437 vfat fat intel_rapl_msr intel_rapl_common edac_mce_amd kvm_amd btusb btrtl btbcm kvm btintel btmtk irqbypass bluetooth 88XXau(OE) ghash_clmulni_intel sha256_ssse3 sha1_ssse3 snd_hda_codec_realtek jitterentropy_rng snd_hda_codec_generic snd_hda_codec_hdmi sha512_ssse3 uvcvideo snd_usb_audio sha512_generic snd_hda_intel videobuf2_vmalloc videobuf2_memops snd_intel_dspcfg videobuf2_v4l2 snd_intel_sdw_acpi videobuf2_common aesni_intel snd_hda_codec snd_usbmidi_lib snd_rawmidi crypto_simd videodev cryptd ctr snd_hda_core snd_seq_device cfg80211 snd_hwdep mc eeepc_wmi drbg asus_wmi snd_pcm rapl battery platform_profile ansi_cprng sparse_keymap sp5100_tco snd_timer ledtrig_audio ecdh_generic pcspkr wmi_bmof k10temp watchdog snd ccp rfkill soundcore ecc joydev acpi_cpufreq sg evdev msr parport_pcppdev lp parport fuse loop dm_mod efi_pstore configfs efivarfs ip_tables x_tables
[   32.531968]  autofs4 ext4 crc16 mbcache jbd2 crc32c_generic hid_generic usbhid hid amdgpu gpu_sched drm_buddy i2c_algo_bit drm_display_helper cec sd_mod rc_core drm_ttm_helper ttm drm_kms_helper ahci xhci_pci nvme libahci xhci_hcd nvme_core libata r8169 t10_pi drm realtek crc32_pclmul mdio_devres usbcore scsi_mod crc32c_intel crc64_rocksoftlibphy crc64 crc_t10dif i2c_piix4 crct10dif_generic scsi_common crct10dif_pclmul usb_common video crct10dif_commonwmi button
[   32.532066] CR2: 0000000000000000
[   32.532071] ---[ end trace 0000000000000000 ]---
[   32.662087] RIP: 0010:0x0
[   32.662087] Code: Unable to access opcode bytes at 0xffffffffffffffd6.
[   32.662087] RSP: 0018:ffffb98681defd10 EFLAGS: 00010283
[   32.662087] RAX: 0000000000000000 RBX: ffffb9868135eed0 RCX: ffffb98681defd28
[   32.662087] RDX: ffffb98681defd20 RSI: ffffb98681defd18 RDI: ffffb9868135eed0
[   32.662087] RBP: 000000000000001d R08: ffffb98681defd30 R09: 0000000000000000
[   32.662087] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[   32.662087] R13: ffffb98681defd68 R14: 000000000000001e R15: ffff9e365308cf40
[   32.662087] FS:  0000000000000000(0000) GS:ffff9e3c51c00000(0000) knlGS:0000000000000000
[   32.662087] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   32.662087] CR2: ffffffffffffffd6 CR3: 0000000111df4000 CR4: 0000000000750ef0
[   32.662087] PKRU: 55555554
[   32.662087] note: RTW_CMD_THREAD[961] exited with irqs disabled
[  216.866391] usb 3-2: USB disconnect, device number 3
yoyo956 commented 1 month ago

I may be affected from the same issue. Managed mode works great, but monitor mode has stopped working recently (no packets are seen and no error in dmesg).

  • I have 2 8821AU USB dongles (Alpha AWUS036ACS and TP-Link Archer T2U Nano).
  • I tried 2 kernels: 6.6.31 and 6.9.1.
  • I tried the new rtw88 drivers.

I suspect that it's something to do with nl80211. Though it only reported on 6.9.

Scott31393 commented 4 weeks ago

Can confirm too! Thanks @koku17. Tested on RTL8811AU attached to imx8mm based board. Cross compiled the driver using Yocto 6.6 sdk boot using nfs.

git clone https://github.com/aircrack-ng/rtl8812au.git
cd rtl8812au
git reset d8ad927 --hard

I set the following changes to cross compile that driver for arm64 (RTL8811AU):

diff --git a/Makefile b/Makefile
index a344591..ef462f8 100755
--- a/Makefile
+++ b/Makefile
@@ -22,9 +22,9 @@ EXTRA_CFLAGS += -I$(src)/hal/phydm -I$(srctree)/$(src)/hal/phydm
 EXTRA_LDFLAGS += --strip-all -O3

 ########################## WIFI IC ############################
-CONFIG_RTL8812A = y
+CONFIG_RTL8812A = n
 CONFIG_RTL8821A = y
-CONFIG_RTL8814A = y
+CONFIG_RTL8814A = n
 ######################### Interface ###########################
 CONFIG_USB_HCI = y
 ########################### Android ###########################
@@ -95,10 +95,10 @@ CONFIG_RTW_SDIO_PM_KEEP_POWER = y
 ###################### MP HW TX MODE FOR VHT #######################
 CONFIG_MP_VHT_HW_TX_MODE = n
 ###################### Platform Related #######################
-CONFIG_PLATFORM_I386_PC = y
+CONFIG_PLATFORM_I386_PC = n
 CONFIG_PLATFORM_ANDROID_ARM64 = n
 CONFIG_PLATFORM_ARM_RPI = n
-CONFIG_PLATFORM_ARM64_RPI = n
+CONFIG_PLATFORM_ARM64_RPI = y
 CONFIG_PLATFORM_ARM_NV_NANO = n
 CONFIG_PLATFORM_ANDROID_X86 = n
 CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
@@ -683,9 +683,9 @@ EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
 ARCH ?= arm64
 CROSS_COMPILE ?=
 KVER ?= $(shell uname -r)
-KSRC := /lib/modules/$(KVER)/build
-MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
-INSTALL_PREFIX :=
+KSRC := /home/tom/work/generic/linux-imx
+MODDESTDIR := /targetfs/lib/modules/6.6.3-g5e34fe202eca-dirty/kernel/drivers/net/wireless/
+INSTALL_PREFIX := /targetfs/
 endif

Then build:

source /opt/fsl-imx-xwayland/6.6-nanbield/environment-setup-armv8a-poky-linux
sudo make install

I test that using the following dongle into imx8mm board (arm64)

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

Some BSP details:

NXP i.MX Release Distro 6.6-nanbield imx8mm-lpddr4-evk ttymxc0
Linux imx8mm-lpddr4-evk 6.6.3-g5e34fe202eca-dirty #242 SMP PREEMPT Fri May 31 17:46:03 CEST 2024 aarch64 GNU/Linux

Log from test:

ip link set wlan0 up
iw wlan0 scan | grep -i ssid
wpa_passphrase WIFI-GUEST WIFI-GUEST-PW > /etc/wpa_guest.conf
wpa_supplicant -i wlan0 -c /etc/wpa_guest.conf -Dwext &
udhcpc -i wlan0 

ping -I wlan0 8.8.8.8 

root@imx8mm-lpddr4-evk:~# ping -I wlan0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 192.168.1.20 wlan0: 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=112 time=27.0 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=112 time=28.4 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=112 time=25.6 ms 64 bytes from 8.8.8.8: icmp_seq=4 ttl=112 time=27.2 ms 64 bytes from 8.8.8.8: icmp_seq=5 ttl=112 time=25.3 ms 64 bytes from 8.8.8.8: icmp_seq=6 ttl=112 time=30.6 ms 64 bytes from 8.8.8.8: icmp_seq=7 ttl=112 time=29.1 ms 64 bytes from 8.8.8.8: icmp_seq=8 ttl=112 time=25.5 ms 64 bytes from 8.8.8.8: icmp_seq=9 ttl=112 time=25.3 ms 64 bytes from 8.8.8.8: icmp_seq=10 ttl=112 time=28.2 ms 64 bytes from 8.8.8.8: icmp_seq=11 ttl=112 time=25.4 ms 64 bytes from 8.8.8.8: icmp_seq=12 ttl=112 time=25.7 ms