on different machine running 6.8.0-31-generic:
[ 8341.842158] ------------[ cut here ]------------
[ 8341.842166] UBSAN: array-index-out-of-bounds in /build/linux-yrLejD/linux-6.8.0/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c:3005:36
[ 8341.842173] index 10 is out of range for type 'u8 [10]'
[ 8341.842177] CPU: 0 PID: 9796 Comm: kworker/0:2 Tainted: P IO 6.8.0-31-generic #31-Ubuntu
[ 8341.842181] Hardware name: Dell Inc. Precision WorkStation T7500 /0D881F, BIOS A18 10/15/2018
[ 8341.842184] Workqueue: rtl92ee_pci rtl_c2hcmd_wq_callback [rtlwifi]
[ 8341.842211] Call Trace:
[ 8341.842213]
[ 8341.842217] dump_stack_lvl+0x48/0x70
[ 8341.842227] dump_stack+0x10/0x20
[ 8341.842231] __ubsan_handle_out_of_bounds+0xc6/0x110
[ 8341.842237] ex_btc8192e2ant_bt_info_notify+0x42b/0x4c0 [btcoexist]
[ 8341.842260] exhalbtc_bt_info_notify+0x9c/0xe0 [btcoexist]
[ 8341.842284] rtl_btc_btinfo_notify+0x1d/0x40 [btcoexist]
[ 8341.842305] rtl_c2h_content_parsing.isra.0+0x66/0x100 [rtlwifi]
[ 8341.842322] rtl_c2hcmd_wq_callback+0x3c/0x80 [rtlwifi]
[ 8341.842339] process_one_work+0x16f/0x350
[ 8341.842345] worker_thread+0x306/0x440
[ 8341.842349] ? _raw_spin_lock_irqsave+0xe/0x20
[ 8341.842354] ? __pfx_worker_thread+0x10/0x10
[ 8341.842358] kthread+0xf2/0x120
[ 8341.842362] ? __pfx_kthread+0x10/0x10
[ 8341.842365] ret_from_fork+0x47/0x70
[ 8341.842369] ? __pfx_kthread+0x10/0x10
[ 8341.842372] ret_from_fork_asm+0x1b/0x30
[ 8341.842378]
[ 8341.842413] ---[ end trace ]---
[ 8341.847443] ------------[ cut here ]------------
[ 8341.847445] UBSAN: invalid-load in /build/linux-yrLejD/linux-6.8.0/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c:889:11
[ 8341.847450] load of value 248 is not a valid value for type '_Bool'
[ 8341.847453] CPU: 0 PID: 9796 Comm: kworker/0:2 Tainted: P IO 6.8.0-31-generic #31-Ubuntu
[ 8341.847456] Hardware name: Dell Inc. Precision WorkStation T7500 /0D881F, BIOS A18 10/15/2018
[ 8341.847458] Workqueue: rtl92ee_pci rtl_c2hcmd_wq_callback [rtlwifi]
[ 8341.847477] Call Trace:
[ 8341.847479]
[ 8341.847481] dump_stack_lvl+0x48/0x70
[ 8341.847486] dump_stack+0x10/0x20
[ 8341.847490] __ubsan_handle_load_invalid_value+0xce/0x120
[ 8341.847495] btc8192e2ant_rf_shrink.constprop.0.cold+0x79/0xb2 [btcoexist]
[ 8341.847517] btc8192e2ant_run_coexist_mechanism.part.0+0x1be/0x2c0 [btcoexist]
[ 8341.847534] btc8192e2ant_run_coexist_mechanism+0x54/0x70 [btcoexist]
[ 8341.847550] ex_btc8192e2ant_bt_info_notify+0x30f/0x4c0 [btcoexist]
[ 8341.847569] exhalbtc_bt_info_notify+0x9c/0xe0 [btcoexist]
[ 8341.847592] rtl_btc_btinfo_notify+0x1d/0x40 [btcoexist]
[ 8341.847613] rtl_c2h_content_parsing.isra.0+0x66/0x100 [rtlwifi]
[ 8341.847630] rtl_c2hcmd_wq_callback+0x3c/0x80 [rtlwifi]
[ 8341.847647] process_one_work+0x16f/0x350
[ 8341.847652] worker_thread+0x306/0x440
[ 8341.847656] ? _raw_spin_lock_irqsave+0xe/0x20
[ 8341.847660] ? __pfx_worker_thread+0x10/0x10
[ 8341.847664] kthread+0xf2/0x120
[ 8341.847668] ? __pfx_kthread+0x10/0x10
[ 8341.847671] ret_from_fork+0x47/0x70
[ 8341.847674] ? __pfx_kthread+0x10/0x10
[ 8341.847677] ret_from_fork_asm+0x1b/0x30
[ 8341.847683]
[ 8341.847695] ---[ end trace ]---
[ 8341.847697] ------------[ cut here ]------------
[ 8341.847698] UBSAN: invalid-load in /build/linux-yrLejD/linux-6.8.0/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c:892:14
[ 8341.847702] load of value 248 is not a valid value for type '_Bool'
[ 8341.847704] CPU: 0 PID: 9796 Comm: kworker/0:2 Tainted: P IO 6.8.0-31-generic #31-Ubuntu
[ 8341.847707] Hardware name: Dell Inc. Precision WorkStation T7500 /0D881F, BIOS A18 10/15/2018
[ 8341.847709] Workqueue: rtl92ee_pci rtl_c2hcmd_wq_callback [rtlwifi]
[ 8341.847727] Call Trace:
[ 8341.847728]
[ 8341.847730] dump_stack_lvl+0x48/0x70
[ 8341.847735] dump_stack+0x10/0x20
[ 8341.847738] __ubsan_handle_load_invalid_value+0xce/0x120
[ 8341.847743] btc8192e2ant_rf_shrink.constprop.0.cold+0x98/0xb2 [btcoexist]
[ 8341.847765] btc8192e2ant_run_coexist_mechanism.part.0+0x1be/0x2c0 [btcoexist]
[ 8341.847782] btc8192e2ant_run_coexist_mechanism+0x54/0x70 [btcoexist]
[ 8341.847798] ex_btc8192e2ant_bt_info_notify+0x30f/0x4c0 [btcoexist]
[ 8341.847817] exhalbtc_bt_info_notify+0x9c/0xe0 [btcoexist]
[ 8341.847840] rtl_btc_btinfo_notify+0x1d/0x40 [btcoexist]
[ 8341.847861] rtl_c2h_content_parsing.isra.0+0x66/0x100 [rtlwifi]
[ 8341.847878] rtl_c2hcmd_wq_callback+0x3c/0x80 [rtlwifi]
[ 8341.847895] process_one_work+0x16f/0x350
[ 8341.847900] worker_thread+0x306/0x440
[ 8341.847904] ? _raw_spin_lock_irqsave+0xe/0x20
[ 8341.847908] ? __pfx_worker_thread+0x10/0x10
[ 8341.847912] kthread+0xf2/0x120
[ 8341.847916] ? __pfx_kthread+0x10/0x10
[ 8341.847919] ret_from_fork+0x47/0x70
[ 8341.847923] ? __pfx_kthread+0x10/0x10
[ 8341.847926] ret_from_fork_asm+0x1b/0x30
[ 8341.847931]
[ 8341.847932] ---[ end trace ]---
[ 8341.847934] ------------[ cut here ]------------
[ 8341.847936] UBSAN: invalid-load in /build/linux-yrLejD/linux-6.8.0/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c:998:11
[ 8341.847939] load of value 240 is not a valid value for type '_Bool'
[ 8341.847942] CPU: 0 PID: 9796 Comm: kworker/0:2 Tainted: P IO 6.8.0-31-generic #31-Ubuntu
[ 8341.847945] Hardware name: Dell Inc. Precision WorkStation T7500 /0D881F, BIOS A18 10/15/2018
[ 8341.847946] Workqueue: rtl92ee_pci rtl_c2hcmd_wq_callback [rtlwifi]
[ 8341.847964] Call Trace:
[ 8341.847965]
[ 8341.847966] dump_stack_lvl+0x48/0x70
[ 8341.847971] dump_stack+0x10/0x20
[ 8341.847975] __ubsan_handle_load_invalid_value+0xce/0x120
[ 8341.847979] btc8192e2ant_sw_mechanism2.constprop.0.cold+0xd2/0x129 [btcoexist]
[ 8341.848001] btc8192e2ant_run_coexist_mechanism.part.0+0x1cf/0x2c0 [btcoexist]
[ 8341.848018] btc8192e2ant_run_coexist_mechanism+0x54/0x70 [btcoexist]
[ 8341.848034] ex_btc8192e2ant_bt_info_notify+0x30f/0x4c0 [btcoexist]
[ 8341.848053] exhalbtc_bt_info_notify+0x9c/0xe0 [btcoexist]
[ 8341.848076] rtl_btc_btinfo_notify+0x1d/0x40 [btcoexist]
[ 8341.848097] rtl_c2h_content_parsing.isra.0+0x66/0x100 [rtlwifi]
[ 8341.848114] rtl_c2hcmd_wq_callback+0x3c/0x80 [rtlwifi]
[ 8341.848131] process_one_work+0x16f/0x350
[ 8341.848136] worker_thread+0x306/0x440
[ 8341.848140] ? _raw_spin_lock_irqsave+0xe/0x20
[ 8341.848144] ? __pfx_worker_thread+0x10/0x10
[ 8341.848148] kthread+0xf2/0x120
[ 8341.848151] ? __pfx_kthread+0x10/0x10
[ 8341.848155] ret_from_fork+0x47/0x70
[ 8341.848158] ? __pfx_kthread+0x10/0x10
[ 8341.848161] ret_from_fork_asm+0x1b/0x30
[ 8341.848166]
[ 8341.848171] ---[ end trace ]---
[ 8341.848173] ------------[ cut here ]------------
[ 8341.848174] UBSAN: invalid-load in /build/linux-yrLejD/linux-6.8.0/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c:1001:14
[ 8341.848177] load of value 240 is not a valid value for type '_Bool'
[ 8341.848179] CPU: 0 PID: 9796 Comm: kworker/0:2 Tainted: P IO 6.8.0-31-generic #31-Ubuntu
[ 8341.848182] Hardware name: Dell Inc. Precision WorkStation T7500 /0D881F, BIOS A18 10/15/2018
[ 8341.848184] Workqueue: rtl92ee_pci rtl_c2hcmd_wq_callback [rtlwifi]
[ 8341.848202] Call Trace:
[ 8341.848203]
[ 8341.848205] dump_stack_lvl+0x48/0x70
[ 8341.848210] dump_stack+0x10/0x20
[ 8341.848213] __ubsan_handle_load_invalid_value+0xce/0x120
[ 8341.848218] btc8192e2ant_sw_mechanism2.constprop.0.cold+0xf4/0x129 [btcoexist]
[ 8341.848240] btc8192e2ant_run_coexist_mechanism.part.0+0x1cf/0x2c0 [btcoexist]
[ 8341.848257] btc8192e2ant_run_coexist_mechanism+0x54/0x70 [btcoexist]
[ 8341.848274] ex_btc8192e2ant_bt_info_notify+0x30f/0x4c0 [btcoexist]
[ 8341.848292] exhalbtc_bt_info_notify+0x9c/0xe0 [btcoexist]
[ 8341.848315] rtl_btc_btinfo_notify+0x1d/0x40 [btcoexist]
[ 8341.848336] rtl_c2h_content_parsing.isra.0+0x66/0x100 [rtlwifi]
[ 8341.848354] rtl_c2hcmd_wq_callback+0x3c/0x80 [rtlwifi]
[ 8341.848371] process_one_work+0x16f/0x350
[ 8341.848376] worker_thread+0x306/0x440
[ 8341.848380] ? _raw_spin_lock_irqsave+0xe/0x20
[ 8341.848384] ? __pfx_worker_thread+0x10/0x10
[ 8341.848388] kthread+0xf2/0x120
[ 8341.848392] ? __pfx_kthread+0x10/0x10
[ 8341.848395] ret_from_fork+0x47/0x70
[ 8341.848398] ? __pfx_kthread+0x10/0x10
[ 8341.848402] ret_from_fork_asm+0x1b/0x30
[ 8341.848407]
[ 8341.848408] ---[ end trace ]---
[ 8341.848410] ------------[ cut here ]------------
[ 8341.848411] UBSAN: invalid-load in /build/linux-yrLejD/linux-6.8.0/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c:939:11
[ 8341.848414] load of value 239 is not a valid value for type '_Bool'
[ 8341.848416] CPU: 0 PID: 9796 Comm: kworker/0:2 Tainted: P IO 6.8.0-31-generic #31-Ubuntu
[ 8341.848419] Hardware name: Dell Inc. Precision WorkStation T7500 /0D881F, BIOS A18 10/15/2018
[ 8341.848421] Workqueue: rtl92ee_pci rtl_c2hcmd_wq_callback [rtlwifi]
[ 8341.848440] Call Trace:
[ 8341.848441]
[ 8341.848443] dump_stack_lvl+0x48/0x70
[ 8341.848448] dump_stack+0x10/0x20
[ 8341.848451] __ubsan_handle_load_invalid_value+0xce/0x120
[ 8341.848456] btc8192e2ant_sw_mechanism2.constprop.0.cold+0x23/0x129 [btcoexist]
[ 8341.848478] btc8192e2ant_run_coexist_mechanism.part.0+0x1cf/0x2c0 [btcoexist]
[ 8341.848496] btc8192e2ant_run_coexist_mechanism+0x54/0x70 [btcoexist]
[ 8341.848512] ex_btc8192e2ant_bt_info_notify+0x30f/0x4c0 [btcoexist]
[ 8341.848531] exhalbtc_bt_info_notify+0x9c/0xe0 [btcoexist]
[ 8341.848554] rtl_btc_btinfo_notify+0x1d/0x40 [btcoexist]
[ 8341.848576] rtl_c2h_content_parsing.isra.0+0x66/0x100 [rtlwifi]
[ 8341.848593] rtl_c2hcmd_wq_callback+0x3c/0x80 [rtlwifi]
[ 8341.848611] process_one_work+0x16f/0x350
[ 8341.848616] worker_thread+0x306/0x440
[ 8341.848620] ? _raw_spin_lock_irqsave+0xe/0x20
[ 8341.848624] ? __pfx_worker_thread+0x10/0x10
[ 8341.848628] kthread+0xf2/0x120
[ 8341.848632] ? __pfx_kthread+0x10/0x10
[ 8341.848635] ret_from_fork+0x47/0x70
[ 8341.848638] ? __pfx_kthread+0x10/0x10
[ 8341.848641] ret_from_fork_asm+0x1b/0x30
[ 8341.848646]
[ 8341.848663] ---[ end trace ]---
[ 8341.848666] ------------[ cut here ]------------
[ 8341.848667] UBSAN: invalid-load in /build/linux-yrLejD/linux-6.8.0/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c:946:15
[ 8341.848670] load of value 239 is not a valid value for type '_Bool'
[ 8341.848673] CPU: 0 PID: 9796 Comm: kworker/0:2 Tainted: P IO 6.8.0-31-generic #31-Ubuntu
[ 8341.848676] Hardware name: Dell Inc. Precision WorkStation T7500 /0D881F, BIOS A18 10/15/2018
[ 8341.848678] Workqueue: rtl92ee_pci rtl_c2hcmd_wq_callback [rtlwifi]
[ 8341.848696] Call Trace:
[ 8341.848698]
[ 8341.848699] dump_stack_lvl+0x48/0x70
[ 8341.848704] dump_stack+0x10/0x20
[ 8341.848708] __ubsan_handle_load_invalid_value+0xce/0x120
[ 8341.848713] btc8192e2ant_sw_mechanism2.constprop.0.cold+0x57/0x129 [btcoexist]
[ 8341.848735] btc8192e2ant_run_coexist_mechanism.part.0+0x1cf/0x2c0 [btcoexist]
[ 8341.848752] btc8192e2ant_run_coexist_mechanism+0x54/0x70 [btcoexist]
[ 8341.848769] ex_btc8192e2ant_bt_info_notify+0x30f/0x4c0 [btcoexist]
[ 8341.848787] exhalbtc_bt_info_notify+0x9c/0xe0 [btcoexist]
[ 8341.848810] rtl_btc_btinfo_notify+0x1d/0x40 [btcoexist]
[ 8341.848832] rtl_c2h_content_parsing.isra.0+0x66/0x100 [rtlwifi]
[ 8341.848849] rtl_c2hcmd_wq_callback+0x3c/0x80 [rtlwifi]
[ 8341.848866] process_one_work+0x16f/0x350
[ 8341.848872] worker_thread+0x306/0x440
[ 8341.848876] ? _raw_spin_lock_irqsave+0xe/0x20
[ 8341.848880] ? __pfx_worker_thread+0x10/0x10
[ 8341.848884] kthread+0xf2/0x120
[ 8341.848888] ? __pfx_kthread+0x10/0x10
[ 8341.848891] ret_from_fork+0x47/0x70
[ 8341.848894] ? __pfx_kthread+0x10/0x10
[ 8341.848897] ret_from_fork_asm+0x1b/0x30
[ 8341.848903]
[ 8341.848904] ---[ end trace ]---