lwfinger / rtl8192ee

Alternate (vendor) driver for RTL8192EE
MIT License
68 stars 12 forks source link

Kernel Bug #35

Open zwhiteley opened 1 year ago

zwhiteley commented 1 year ago

Hello,

I am having an issue with this driver -- when used, the wireless device seems to be missing (it does not show when I run networkctl or iwctl). Furthermore, it causes my computer to hang on shutdown/reboot.

dmesg and journalctl show (the same) error regarding some buffer overflow issue.

Installation

I installed the driver using make:

git clone https://github.com/lwfinger/rtl8192ee.git
cd rtl8192ee
make all
sudo make install
echo "blacklist rtl8192ee" | sudo tee -a /etc/modprobe.d/50-blacklist.conf
echo "8192ee" | sudo tee -a /etc/modules-load.d/8192ee.conf

All of which completed successfully.

System

I am using Arch Linux with Linux Kernel version 6.5.3.

Logs

Sep 14 11:17:07 pc-zachary kernel: rtl8192ee 0000:05:00.0: enabling device (0000 -> 0003)
Sep 14 11:17:07 pc-zachary kernel: detected buffer overflow in __fortify_strlen
Sep 14 11:17:07 pc-zachary kernel: ------------[ cut here ]------------
Sep 14 11:17:07 pc-zachary kernel: kernel BUG at lib/string_helpers.c:1031!
Sep 14 11:17:07 pc-zachary kernel: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
Sep 14 11:17:07 pc-zachary kernel: CPU: 1 PID: 263 Comm: systemd-modules Tainted: G           OE      6.5.3-arch1-1 #1 ed5b3b894d0aeb37298a77837232ca9b353c>
Sep 14 11:17:07 pc-zachary kernel: Hardware name: Micro-Star International Co., Ltd. MS-7B98/Z390-A PRO (MS-7B98), BIOS 1.C0 10/10/2020
Sep 14 11:17:07 pc-zachary kernel: RIP: 0010:fortify_panic+0x13/0x20
Sep 14 11:17:07 pc-zachary kernel: Code: 41 5d c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 89 fe 48 c7 c7 40 1d e8 8c e8 >
Sep 14 11:17:07 pc-zachary kernel: RSP: 0018:ffffc0a0415b7868 EFLAGS: 00010246
Sep 14 11:17:07 pc-zachary kernel: RAX: 000000000000002c RBX: ffff995905533740 RCX: 0000000000000000
Sep 14 11:17:07 pc-zachary kernel: RDX: 0000000000000000 RSI: ffff995c5dc616c0 RDI: ffff995c5dc616c0
Sep 14 11:17:07 pc-zachary kernel: RBP: ffff995905533ab0 R08: 0000000000000000 R09: ffffc0a0415b7710
Sep 14 11:17:07 pc-zachary kernel: R10: 0000000000000003 R11: ffffffff8d6ca068 R12: ffff995905533ae8
Sep 14 11:17:07 pc-zachary kernel: R13: ffffc0a040275000 R14: 0000000000000000 R15: 0000000000000000
Sep 14 11:17:07 pc-zachary kernel: FS:  00007f46e985c480(0000) GS:ffff995c5dc40000(0000) knlGS:0000000000000000
Sep 14 11:17:07 pc-zachary kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 14 11:17:07 pc-zachary kernel: CR2: 00007fa4868da130 CR3: 0000000100d1c003 CR4: 00000000003706e0
Sep 14 11:17:07 pc-zachary kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Sep 14 11:17:07 pc-zachary kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Sep 14 11:17:07 pc-zachary kernel: Call Trace:
Sep 14 11:17:07 pc-zachary kernel:  <TASK>
Sep 14 11:17:07 pc-zachary kernel:  ? die+0x36/0x90
Sep 14 11:17:07 pc-zachary kernel:  ? do_trap+0xda/0x100
Sep 14 11:17:07 pc-zachary kernel:  ? fortify_panic+0x13/0x20
Sep 14 11:17:07 pc-zachary kernel:  ? do_error_trap+0x6a/0x90
Sep 14 11:17:07 pc-zachary kernel:  ? fortify_panic+0x13/0x20
Sep 14 11:17:07 pc-zachary kernel:  ? exc_invalid_op+0x50/0x70
Sep 14 11:17:07 pc-zachary kernel:  ? fortify_panic+0x13/0x20
Sep 14 11:17:07 pc-zachary kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 14 11:17:07 pc-zachary kernel:  ? fortify_panic+0x13/0x20
Sep 14 11:17:07 pc-zachary kernel:  ? fortify_panic+0x13/0x20
Sep 14 11:17:07 pc-zachary kernel:  rtw_ps_deny_get+0x22d/0x500 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? rtw_txpwr_lmt_add+0x6d/0xb0 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? phy_set_tx_power_limit+0x382/0x3f0 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? odm_read_and_config_mp_8192e_txpwr_lmt+0x4a/0x90 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? odm_config_rf_with_header_file+0xc9/0x140 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? phy_load_tx_power_limit+0xb2/0x330 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? rtw_init_drv_sw+0x2ee/0x340 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? rtw_pci_primary_adapter_init+0x163/0xf740 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? rtw_pci_primary_adapter_init+0x8e5/0xf740 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? local_pci_probe+0x42/0xa0
Sep 14 11:17:07 pc-zachary kernel:  ? pci_device_probe+0xc1/0x260
Sep 14 11:17:07 pc-zachary kernel:  ? sysfs_do_create_link_sd+0x6e/0xe0
Sep 14 11:17:07 pc-zachary kernel:  ? really_probe+0x19b/0x3e0
Sep 14 11:17:07 pc-zachary kernel:  ? __pfx___driver_attach+0x10/0x10
Sep 14 11:17:07 pc-zachary kernel:  ? __driver_probe_device+0x78/0x160
Sep 14 11:17:07 pc-zachary kernel:  ? driver_probe_device+0x1f/0x90
Sep 14 11:17:07 pc-zachary kernel:  ? __driver_attach+0xd2/0x1c0
Sep 14 11:17:07 pc-zachary kernel:  ? bus_for_each_dev+0x85/0xd0
Sep 14 11:17:07 pc-zachary kernel:  ? bus_add_driver+0x116/0x220
Sep 14 11:17:07 pc-zachary kernel:  ? driver_register+0x59/0x100
Sep 14 11:17:07 pc-zachary kernel:  ? __UNIQUE_ID_vermagic196+0x3f5f7e1e6b54/0x3f5f7e1e6b54 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? init_module+0x52/0xff0 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? __UNIQUE_ID_vermagic196+0x3f5f7e1e6b54/0x3f5f7e1e6b54 [8192ee f61d033aa746dd1ccfc87b28cb494620d0226135]
Sep 14 11:17:07 pc-zachary kernel:  ? do_one_initcall+0x5a/0x320
Sep 14 11:17:07 pc-zachary kernel:  ? do_init_module+0x60/0x240
Sep 14 11:17:07 pc-zachary kernel:  ? init_module_from_file+0x89/0xe0
Sep 14 11:17:07 pc-zachary kernel:  ? idempotent_init_module+0x120/0x2b0
Sep 14 11:17:07 pc-zachary kernel:  ? __x64_sys_finit_module+0x5e/0xb0
Sep 14 11:17:07 pc-zachary kernel:  ? do_syscall_64+0x5d/0x90
Sep 14 11:17:07 pc-zachary kernel:  ? ksys_mmap_pgoff+0xec/0x1f0
Sep 14 11:17:07 pc-zachary kernel:  ? do_syscall_64+0x6c/0x90
Sep 14 11:17:07 pc-zachary kernel:  ? syscall_exit_to_user_mode+0x2b/0x40
Sep 14 11:17:07 pc-zachary kernel:  ? do_syscall_64+0x6c/0x90
Sep 14 11:17:07 pc-zachary kernel:  ? do_syscall_64+0x6c/0x90
Sep 14 11:17:07 pc-zachary kernel:  ? syscall_exit_to_user_mode+0x2b/0x40
Sep 14 11:17:07 pc-zachary kernel:  ? do_syscall_64+0x6c/0x90
Sep 14 11:17:07 pc-zachary kernel:  ? entry_SYSCALL_64_after_hwframe+0x6e/0xd8
Sep 14 11:17:07 pc-zachary kernel:  </TASK>
Sep 14 11:17:07 pc-zachary kernel: Modules linked in: 8192ee(OE+) cfg80211 rfkill fuse dm_mod loop vfat fat ip_tables x_tables ext4 crc32c_generic crc16 mb>
Sep 14 11:17:07 pc-zachary kernel: ---[ end trace 0000000000000000 ]---
Sep 14 11:17:07 pc-zachary kernel: RIP: 0010:fortify_panic+0x13/0x20
Sep 14 11:17:07 pc-zachary kernel: Code: 41 5d c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 89 fe 48 c7 c7 40 1d e8 8c e8 >
Sep 14 11:17:07 pc-zachary kernel: RSP: 0018:ffffc0a0415b7868 EFLAGS: 00010246
Sep 14 11:17:07 pc-zachary kernel: RAX: 000000000000002c RBX: ffff995905533740 RCX: 0000000000000000
Sep 14 11:17:07 pc-zachary kernel: RDX: 0000000000000000 RSI: ffff995c5dc616c0 RDI: ffff995c5dc616c0
Sep 14 11:17:07 pc-zachary kernel: RBP: ffff995905533ab0 R08: 0000000000000000 R09: ffffc0a0415b7710
Sep 14 11:17:07 pc-zachary kernel: R10: 0000000000000003 R11: ffffffff8d6ca068 R12: ffff995905533ae8
Sep 14 11:17:07 pc-zachary kernel: R13: ffffc0a040275000 R14: 0000000000000000 R15: 0000000000000000
Sep 14 11:17:07 pc-zachary kernel: FS:  00007f46e985c480(0000) GS:ffff995c5dc40000(0000) knlGS:0000000000000000
Sep 14 11:17:07 pc-zachary kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 14 11:17:07 pc-zachary kernel: CR2: 00007fa4868da130 CR3: 0000000100d1c003 CR4: 00000000003706e0
Sep 14 11:17:07 pc-zachary kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Sep 14 11:17:07 pc-zachary kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
divcyb commented 1 year ago

Same issue here, it works for lts kernel for now. or just use the driver included in linux-firmware.