Open brinn opened 1 year ago
I fixed the UBSAN: array-index-out-of-bounds in /var/lib/dkms/rtl8852au/1.15.0.1/build/phl/phl_rx_agg.c:252 warning.
Unfortunately, the log you provided does not tell me about the BUG: kernel NULL pointer dereference that crashed the kernel.
Do a git pull, make, and sudo make install. If we are lucky, the first situation caused the crash.
Thank you, I'll give the fix a shot right now. I don't know how to reproduce the issue other than just using the wifi adapter and see what happens...
Unfortunately I don't have any other logs to send you about the crash itself. Let's hope the array-index-out-of-bounds caused the NULL pointer dereference.
Hello,
First thank you for your work! Last Sunday my computer crashed, after I started monitor the dmesg output, the relevant part I guess this: What shall I provide as evidence to have some guidance for me?
Sorry I am not a power user just a user who like to use Linux :-)
10.510032] ================================================================================
[ 10.510053] UBSAN: array-index-out-of-bounds in /var/lib/dkms/rtl8852au/1.15.0.1/build/core/rtw_wlan_util.c:993:48
[ 10.510066] index 1 is out of range for type 'u8 [1]'
[ 10.510075] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G OE 6.5.0-14-generic #14~22.04.1-Ubuntu
[ 10.510085] Hardware name: HP HP ProDesk 400 G6 SFF/859B, BIOS R08 Ver. 02.13.00 03/24/2022
[ 10.510090] Call Trace:
[ 10.510095]
I just pushed a fix that should handle this problem.
Hello
What I made git pull make sudo make install after that I reboot using Ubuntu menu
dmesg reports the following:
Where I made the mistake? The funniest thing the device seems working I will check the speed later.
================================================================================
[ 10.495685] UBSAN: array-index-out-of-bounds in /var/lib/dkms/rtl8852au/1.15.0.1/build/core/rtw_wlan_util.c:993:48
[ 10.495700] index 1 is out of range for type 'u8 [1]'
[ 10.495710] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G OE 6.5.0-14-generic #14~22.04.1-Ubuntu
[ 10.495721] Hardware name: HP HP ProDesk 400 G6 SFF/859B, BIOS R08 Ver. 02.13.00 03/24/2022
[ 10.495726] Call Trace:
[ 10.495731]
That split in the log is not a crash - merely a warning. The kernel will usually run through them, but be slowed by all the logging.
I found a place I missed before. Try again.
I made an another trial, I am not able to tell this is an error or a warning, The good thing still able to work
================================================================================
[ 10.620111] UBSAN: array-index-out-of-bounds in /var/lib/dkms/rtl8852au/1.15.0.1/build/core/rtw_wlan_util.c:993:48
[ 10.620125] index 1 is out of range for type 'u8 [1]'
[ 10.620136] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G OE 6.5.0-14-generic #14~22.04.1-Ubuntu
[ 10.620146] Hardware name: HP HP ProDesk 400 G6 SFF/859B, BIOS R08 Ver. 02.13.00 03/24/2022
[ 10.620151] Call Trace:
[ 10.620157]
I am using rtl8852au, commit 1bf2f7b3 to drive a TP-Link Archer TX20U Plus (USB ID: 2357:013f) on an Ubuntu 22.04 laptop with kernel 5.15.0-58-generic. The build is done via 'dkms install'. Today, while using wifi, the machine froze and after reboot I found these lines in the system log before the freeze: """ Jan 27 20:55:40 ubuntu kernel: ? add_ba_hdl+0xe6/0xe6 [8852au] Jan 27 20:55:40 ubuntu kernel: rtw_run_cmd+0x98/0x16e [8852au] Jan 27 20:55:40 ubuntu kernel: phl_run_core_cmd+0x3c/0x9c [8852au] Jan 27 20:55:40 ubuntu kernel: _phl_cmd_complete+0xb1/0x186 [8852au] Jan 27 20:55:40 ubuntu kernel: push_back_idle_msg+0x56/0x12a [8852au] Jan 27 20:55:40 ubuntu kernel: msg_dispatch+0x15a/0x24e [8852au] Jan 27 20:55:40 ubuntu kernel: dispr_thread_loop_hdl+0x19e/0x1a8 [8852au] Jan 27 20:55:40 ubuntu kernel: dispr_share_thread_loop_hdl+0xe/0x14 [8852au] Jan 27 20:55:40 ubuntu kernel: share_thread_hdl+0x6a/0xfe [8852au] Jan 27 20:55:40 ubuntu kernel: ? phl_ps_leave_ps+0x2f/0x2f [8852au] Jan 27 20:55:40 ubuntu kernel: kthread+0x12a/0x150 Jan 27 20:55:40 ubuntu kernel: ? set_kthread_struct+0x50/0x50 Jan 27 20:55:40 ubuntu kernel: ret_from_fork+0x22/0x30 Jan 27 20:55:40 ubuntu kernel: Jan 27 20:55:40 ubuntu kernel: ================================================================================ Jan 27 20:55:40 ubuntu kernel: ================================================================================ Jan 27 20:55:40 ubuntu kernel: UBSAN: array-index-out-of-bounds in /var/lib/dkms/rtl8852au/1.15.0.1/build/phl/phl_rx_agg.c:252:36 Jan 27 20:55:40 ubuntu kernel: index 8 is out of range for type 'phl_tid_ampdu_rx *[8]' Jan 27 20:55:40 ubuntu kernel: CPU: 6 PID: 11728 Comm: disp_engshare Tainted: P OE 5.15.0-58-generic #64-Ubuntu Jan 27 20:55:40 ubuntu kernel: Hardware name: LENOVO 20UES17F00/20UES17F00, BIOS R1BET73W(1.42 ) 12/09/2022 Jan 27 20:55:40 ubuntu kernel: Call Trace: Jan 27 20:55:40 ubuntu kernel:
Jan 27 20:55:40 ubuntu kernel: show_stack+0x52/0x5c
Jan 27 20:55:40 ubuntu kernel: dump_stack_lvl+0x4a/0x63
Jan 27 20:55:40 ubuntu kernel: dump_stack+0x10/0x16
Jan 27 20:55:40 ubuntu kernel: ubsan_epilogue+0x9/0x49
Jan 27 20:55:40 ubuntu kernel: __ubsan_handle_out_of_bounds.cold+0x44/0x49
Jan 27 20:55:40 ubuntu kernel: rtw_phl_start_rx_ba_session+0x126/0x140 [8852au]
Jan 27 20:55:40 ubuntu kernel: ? add_ba_hdl+0xe6/0xe6 [8852au]
Jan 27 20:55:40 ubuntu kernel: add_ba_rsp_hdl+0xd1/0x1ba [8852au]
Jan 27 20:55:40 ubuntu kernel: ? add_ba_hdl+0xe6/0xe6 [8852au]
Jan 27 20:55:40 ubuntu kernel: rtw_run_cmd+0x98/0x16e [8852au]
Jan 27 20:55:40 ubuntu kernel: phl_run_core_cmd+0x3c/0x9c [8852au]
Jan 27 20:55:40 ubuntu kernel: _phl_cmd_complete+0xb1/0x186 [8852au]
Jan 27 20:55:40 ubuntu kernel: push_back_idle_msg+0x56/0x12a [8852au]
Jan 27 20:55:40 ubuntu kernel: msg_dispatch+0x15a/0x24e [8852au]
Jan 27 20:55:40 ubuntu kernel: dispr_thread_loop_hdl+0x19e/0x1a8 [8852au]
Jan 27 20:55:40 ubuntu kernel: dispr_share_thread_loop_hdl+0xe/0x14 [8852au]
Jan 27 20:55:40 ubuntu kernel: share_thread_hdl+0x6a/0xfe [8852au]
Jan 27 20:55:40 ubuntu kernel: ? phl_ps_leave_ps+0x2f/0x2f [8852au]
Jan 27 20:55:40 ubuntu kernel: kthread+0x12a/0x150
Jan 27 20:55:40 ubuntu kernel: ? set_kthread_struct+0x50/0x50
Jan 27 20:55:40 ubuntu kernel: ret_from_fork+0x22/0x30
Jan 27 20:55:40 ubuntu kernel:
Jan 27 20:55:40 ubuntu kernel: ================================================================================
Jan 27 20:55:40 ubuntu kernel: BUG: kernel NULL pointer dereference, address: 0000000000000031
Jan 27 20:55:40 ubuntu kernel: #PF: supervisor read access in kernel mode
Jan 27 20:55:40 ubuntu kernel: #PF: error_code(0x0000) - not-present page
"""