regression in jammy kernel 5.15 for module ath9k

Bug #1968631 reported by David LaFreniere
74
This bug affects 13 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

wireless connection is unstable with kernel 5.15 in jammy release.

the following line is in my log,

ath: phy0: DMA failed to stop in 10 ms AR_CR=0x00000024 AR_DIAG_SW=0x02000020 DMADBG_7=0x00006100

the bug appears to no longer be present in kernel 5.17.2 from the mainline kernel ppa.

lsb_release -rd output:

Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-5.15.0-25-generic 5.15.0-25.25
ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30
Uname: Linux 5.15.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu80
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: david 1871 F.... pulseaudio
 /dev/snd/controlC1: david 1871 F.... pulseaudio
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 11 18:05:36 2022
InstallationDate: Installed on 2022-02-01 (69 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
MachineType: ASUSTeK COMPUTER INC. X550LA
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-25-generic root=UUID=eb3fe525-e2d6-4de4-aa48-57ebb0fa0881 ro libata.noacpi=1 quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-25-generic N/A
 linux-backports-modules-5.15.0-25-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu1
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
UpgradeStatus: Upgraded to jammy on 2022-04-09 (2 days ago)
dmi.bios.date: 05/14/2014
dmi.bios.release: 4.6
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: X550LA.508
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: X550LA
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: ATN12345678901234567
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrX550LA.508:bd05/14/2014:br4.6:svnASUSTeKCOMPUTERINC.:pnX550LA:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnX550LA:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:skuASUS-NotebookSKU:
dmi.product.family: X
dmi.product.name: X550LA
dmi.product.sku: ASUS-NotebookSKU
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
David LaFreniere (dlafreniere349) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
David LaFreniere (dlafreniere349) wrote :

Reproduced with the daily live iso to avoid loading out of tree module, installing qemu-system and loading the kvm module triggers the issue as well.

Revision history for this message
Juerg Haefliger (juergh) wrote :

This might be related since it shows ath9k symbols:

[ 11.077358] ================================================================================
[ 11.077361] UBSAN: invalid-load in /build/linux-9H675w/linux-5.15.0/net/mac80211/status.c:1164:21
[ 11.077364] load of value 255 is not a valid value for type '_Bool'
[ 11.077366] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.0-25-generic #25-Ubuntu
[ 11.077369] Hardware name: ASUSTeK COMPUTER INC. X550LA/X550LA, BIOS X550LA.508 05/14/2014
[ 11.077370] Call Trace:
[ 11.077371] <IRQ>
[ 11.077374] show_stack+0x52/0x58
[ 11.077379] dump_stack_lvl+0x4a/0x5f
[ 11.077384] dump_stack+0x10/0x12
[ 11.077386] ubsan_epilogue+0x9/0x45
[ 11.077388] __ubsan_handle_load_invalid_value.cold+0x44/0x49
[ 11.077391] ieee80211_tx_status_ext.cold+0x4e/0x5f [mac80211]
[ 11.077448] ieee80211_tx_status+0x72/0xa0 [mac80211]
[ 11.077475] ath_txq_unlock_complete+0x12d/0x160 [ath9k]
[ 11.077483] ath_tx_edma_tasklet+0xef/0x4c0 [ath9k]
[ 11.077491] ? del_timer_sync+0x6c/0xb0
[ 11.077494] ath9k_tasklet+0x14e/0x290 [ath9k]
[ 11.077501] tasklet_action_common.constprop.0+0xc0/0xf0
[ 11.077505] tasklet_action+0x22/0x30
[ 11.077507] __do_softirq+0xd9/0x2e3
[ 11.077511] irq_exit_rcu+0x8c/0xb0
[ 11.077514] common_interrupt+0x8a/0xa0
[ 11.077519] </IRQ>
[ 11.077519] <TASK>
[ 11.077520] asm_common_interrupt+0x1e/0x40
[ 11.077523] RIP: 0010:cpuidle_enter_state+0xd9/0x620
[ 11.077527] Code: 3d e4 5b 5e 5c e8 d7 ad 6c ff 49 89 c7 0f 1f 44 00 00 31 ff e8 28 ba 6c ff 80 7d d0 00 0f 85 5d 01 00 00 fb 66 0f 1f 44 00 00 <45> 85 f6 0f 88 69 01 00 00 4d 63 ee 49 83 fd 09 0f 87 e3 03 00 00
[ 11.077529] RSP: 0018:ffffa5ff000bbe28 EFLAGS: 00000246
[ 11.077532] RAX: ffff94b5d6eb0f00 RBX: ffffc5feffc80000 RCX: 0000000000000000
[ 11.077533] RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
[ 11.077534] RBP: ffffa5ff000bbe78 R08: 000000029442c2c7 R09: 0000000000004e20
[ 11.077535] R10: 0000000000000009 R11: 071c71c71c71c71c R12: ffffffffa50d3600
[ 11.077537] R13: 0000000000000001 R14: 0000000000000001 R15: 000000029442c2c7
[ 11.077539] ? cpuidle_enter_state+0xc8/0x620
[ 11.077542] cpuidle_enter+0x2e/0x40
[ 11.077544] cpuidle_idle_call+0x13e/0x1e0
[ 11.077546] do_idle+0x83/0xf0
[ 11.077548] cpu_startup_entry+0x20/0x30
[ 11.077550] start_secondary+0x12a/0x180
[ 11.077553] secondary_startup_64_no_verify+0xc2/0xcb
[ 11.077557] </TASK>
[ 11.077558] ================================================================================

Revision history for this message
Greg McCarthy (gmc1) wrote :

Experiencing the same issue and also seeing the same dump:

[ 104.357253] ================================================================================
[ 104.357264] UBSAN: invalid-load in /build/linux-9H675w/linux-5.15.0/net/mac80211/status.c:1164:21
[ 104.357270] load of value 255 is not a valid value for type '_Bool'
[ 104.357274] CPU: 1 PID: 1583 Comm: dbus-daemon Tainted: G OE 5.15.0-25-generic #25-Ubuntu
[ 104.357279] Hardware name: ASUSTeK COMPUTER INC. X553MA/X553MA, BIOS X553MA.211 04/10/2015
[ 104.357281] Call Trace:
[ 104.357285] <TASK>
[ 104.357289] show_stack+0x52/0x58
[ 104.357298] dump_stack_lvl+0x4a/0x5f
[ 104.357312] dump_stack+0x10/0x12
[ 104.357315] ubsan_epilogue+0x9/0x45
[ 104.357319] __ubsan_handle_load_invalid_value.cold+0x44/0x49
[ 104.357324] ieee80211_tx_status_ext.cold+0x4e/0x5f [mac80211]
[ 104.357420] ieee80211_tx_status+0x72/0xa0 [mac80211]
[ 104.357484] ath_txq_unlock_complete+0x12d/0x160 [ath9k]
[ 104.357498] ath_tx_edma_tasklet+0xef/0x4c0 [ath9k]
[ 104.357510] ? del_timer_sync+0x6c/0xb0
[ 104.357516] ath9k_tasklet+0x14e/0x290 [ath9k]
[ 104.357528] tasklet_action_common.constprop.0+0xc0/0xf0
[ 104.357534] tasklet_action+0x22/0x30
[ 104.357538] __do_softirq+0xd9/0x2e3
[ 104.357544] irq_exit_rcu+0x8c/0xb0
[ 104.357548] common_interrupt+0x4a/0xa0
[ 104.357554] ? asm_common_interrupt+0x8/0x40
[ 104.357558] asm_common_interrupt+0x1e/0x40
[ 104.357562] RIP: 0033:0x55a15a659cdd
[ 104.357566] Code: c0 75 23 e9 32 fe ff ff 0f 1f 44 00 00 e8 db e6 ff ff 41 89 c0 48 89 e8 45 85 c0 75 2a 48 85 ed 0f 84 14 fe ff ff 4c 8b 60 10 <48> 8b 68 08 49 8b 3c 24 48 3b 6b 18 75 d5 e8 b0 e6 ff ff 85 c0 0f
[ 104.357570] RSP: 002b:00007fffd4987cf0 EFLAGS: 00000202
[ 104.357575] RAX: 00007f4bd3f62d20 RBX: 000055a15ac19e90 RCX: 0000000000000000
[ 104.357577] RDX: 0000000000056ee0 RSI: 0000000000000068 RDI: 000055a15ad6b990
[ 104.357580] RBP: 00007f4bd3f62d20 R08: 0000000000000000 R09: 0000000000000000
[ 104.357582] R10: 00007fffd49b9080 R11: 00007fffd49b9090 R12: 000055a15ad6cb70
[ 104.357584] R13: ffffffffffffffff R14: 0000000000000000 R15: 00007fffd4987e30
[ 104.357590] </TASK>
[ 104.357592] ================================================================================
[

Revision history for this message
Michael Moll (kvedulv) wrote :

I'm running Kernel 5.15.0-28.29 from jammy-proposed now and the connection stability problems seem fixed for me, while one time on boot the UBSAN message is still emmitted.

Revision history for this message
Krzysztof (krzysdz) wrote :

The "UBSAN: invalid-load in /net/mac80211/status.c:1164:21" is fixed in kernel 5.18 (tested on 5.18-rc1 as newer builds for amd64 fail on the Mainline PPA). I believe it was solved in https://patchwork.kernel.org/project/linux-wireless/patch/iwlwifi.20220202104617.0ff363d4fa56.I45792c0187034a6d0e1c99a7db741996ef7caba3@changeid/

Revision history for this message
David LaFreniere (dlafreniere349) wrote :

The kernel in jammy-proposed works for me as well. Can confirm that I get the same message as well.

Revision history for this message
simo (simon-georget) wrote :

Same issue here,

I've tried updating to kernel to kernel 5.17.2, kernel 5.17.5 and 5.18-rc1 but I experience the same issue .... any help welcome ! Thanks

Revision history for this message
simo (simon-georget) wrote :

By the way, I did install it manually following these instructions and packages : https://sypalo.com/how-to-upgrade-ubuntu

Revision history for this message
jacquesclouseau (jacquesclouseau) wrote :

Have the bug at Lubuntu 22.04

Revision history for this message
jacquesclouseau (jacquesclouseau) wrote :

Sudo dmesg:

] UBSAN: invalid-load in /build/linux-WD899k/linux-5.15.0/net/mac80211/status.c:1164:21
[ 44.049079] load of value 255 is not a valid value for type '_Bool'
[ 44.049090] CPU: 1 PID: 749 Comm: wpa_supplicant Not tainted 5.15.0-30-generic #31-Ubuntu
[ 44.049100] Hardware name: ASUSTeK COMPUTER INC. X540SA/X540SA, BIOS X540SA.304 01/20/2017
[ 44.049105] Call Trace:
[ 44.049110] <TASK>
[ 44.049118] show_stack+0x52/0x58
[ 44.049135] dump_stack_lvl+0x4a/0x5f
[ 44.049148] dump_stack+0x10/0x12
[ 44.049155] ubsan_epilogue+0x9/0x45
[ 44.049162] __ubsan_handle_load_invalid_value.cold+0x44/0x49
[ 44.049171] ieee80211_tx_status_ext.cold+
...

Revision history for this message
Peter Langner (posten11) wrote :

Similar/same issue for mt76 - causing unstable wifi hostapd connection:

[ 28.086284] UBSAN: invalid-load in /build/linux-WD899k/linux-5.15.0/net/mac80211/status.c:1164:21
[ 28.086294] load of value 255 is not a valid value for type '_Bool'
[ 28.086301] CPU: 0 PID: 114 Comm: kworker/u8:2 Not tainted 5.15.0-30-generic #31-Ubuntu
[ 28.086309] Hardware name: Intel(R) Client Systems NUC11ATKC4/NUC11ATBC4, BIOS ATJSLCPX.0029.2021.1117.2104 11/17/2021
[ 28.086314] Workqueue: mt76 mt76u_tx_status_data [mt76_usb]
[ 28.086335] Call Trace:
[ 28.086340] <TASK>
[ 28.086346] show_stack+0x52/0x58
[ 28.086360] dump_stack_lvl+0x4a/0x5f
[ 28.086372] dump_stack+0x10/0x12
[ 28.086378] ubsan_epilogue+0x9/0x45
[ 28.086385] __ubsan_handle_load_invalid_value.cold+0x44/0x49
[ 28.086392] ? usb_control_msg+0xfe/0x140
[ 28.086401] ieee80211_tx_status_ext.cold+0x4e/0x5f [mac80211]
[ 28.086568] mt76_tx_status_unlock+0x10c/0x160 [mt76]
[ 28.086590] mt76x02_send_tx_status+0x168/0x3f0 [mt76x02_lib]
[ 28.086611] mt76x02_tx_status_data+0x47/0x70 [mt76x02_lib]
[ 28.086628] mt76u_tx_status_data+0x64/0xc0 [mt76_usb]
[ 28.086639] process_one_work+0x228/0x3d0
[ 28.086650] worker_thread+0x53/0x410
[ 28.086659] ? process_one_work+0x3d0/0x3d0
[ 28.086667] kthread+0x127/0x150
[ 28.086675] ? set_kthread_struct+0x50/0x50
[ 28.086683] ret_from_fork+0x1f/0x30
[ 28.086694] </TASK>
[ 28.086697] ================================================================================

Revision history for this message
simo (simon-georget) wrote (last edit ):

Hi, I still have the same error with kernel 5.15.0-33-generic !! Is that ok for you ?

See below :

[ 103.752602] ================================================================================
[ 103.752613] UBSAN: invalid-load in /build/linux-MLl0vf/linux-5.15.0/net/mac80211/status.c:1164:21
[ 103.752622] load of value 255 is not a valid value for type '_Bool'
[ 103.752628] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P OE 5.15.0-33-generic #34-Ubuntu
[ 103.752636] Hardware name: ASUSTeK COMPUTER INC. N550JK/N550JK, BIOS N550JK.208 09/26/2014
[ 103.752640] Call Trace:
[ 103.752643] <IRQ>
[ 103.752649] show_stack+0x52/0x58
[ 103.752666] dump_stack_lvl+0x4a/0x5f
[ 103.752679] dump_stack+0x10/0x12
[ 103.752686] ubsan_epilogue+0x9/0x45
[ 103.752694] __ubsan_handle_load_invalid_value.cold+0x44/0x49
[ 103.752703] ieee80211_tx_status_ext.cold+0x4e/0x5f [mac80211]
[ 103.752893] ieee80211_tx_status+0x72/0xa0 [mac80211]
[ 103.752995] ath_txq_unlock_complete+0x12d/0x160 [ath9k]
[ 103.753021] ath_tx_edma_tasklet+0xef/0x4c0 [ath9k]
[ 103.753046] ? del_timer_sync+0x6c/0xb0
[ 103.753056] ath9k_tasklet+0x14e/0x290 [ath9k]
[ 103.753079] tasklet_action_common.constprop.0+0xc0/0xf0
[ 103.753091] tasklet_action+0x22/0x30
[ 103.753100] __do_softirq+0xd9/0x2e3
[ 103.753113] irq_exit_rcu+0x8c/0xb0
[ 103.753122] common_interrupt+0x8a/0xa0
[ 103.753134] </IRQ>
[ 103.753137] <TASK>
[ 103.753139] asm_common_interrupt+0x1e/0x40
[ 103.753149] RIP: 0010:cpuidle_enter_state+0xd9/0x620
[ 103.753161] Code: 3d f4 4b 7e 7a e8 07 ae 6c ff 49 89 c7 0f 1f 44 00 00 31 ff e8 58 ba 6c ff 80 7d d0 00 0f 85 5d 01 00 00 fb 66 0f 1f 44 00 00 <45> 85 f6 0f 88 69 01 00 00 4d 63 ee 49 83 fd 09 0f 87 e3 03 00 00
[ 103.753167] RSP: 0018:ffffffff86c03db8 EFLAGS: 00000246
[ 103.753174] RAX: ffff88c12ee30f00 RBX: ffffc6afffc21500 RCX: 0000000000000000
[ 103.753179] RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
[ 103.753182] RBP: ffffffff86c03e08 R08: 0000001828226b71 R09: 000000000007a120
[ 103.753187] R10: 0000000000000006 R11: 071c71c71c71c71c R12: ffffffff86ed36c0
[ 103.753191] R13: 0000000000000005 R14: 0000000000000005 R15: 0000001828226b71
[ 103.753199] ? cpuidle_enter_state+0xc8/0x620
[ 103.753209] cpuidle_enter+0x2e/0x40
[ 103.753216] cpuidle_idle_call+0x13e/0x1e0
[ 103.753225] do_idle+0x83/0xf0
[ 103.753232] cpu_startup_entry+0x20/0x30
[ 103.753239] rest_init+0xd3/0x100
[ 103.753246] ? acpi_enable_subsystem+0x20b/0x213
[ 103.753257] arch_call_rest_init+0xe/0x1b
[ 103.753269] start_kernel+0x4b6/0x4d3
[ 103.753279] x86_64_start_reservations+0x24/0x26
[ 103.753289] x86_64_start_kernel+0xe4/0xeb
[ 103.753298] secondary_startup_64_no_verify+0xc2/0xcb
[ 103.753313] </TASK>
[ 103.753341] ================================================================================

Revision history for this message
simo (simon-georget) wrote :

It seems to be fixed with kernel 5.15.0-40-generic !!!
Thank you !!!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers