syzbot


INFO: trying to register non-static key in ath9k_wmi_event_tasklet

Status: fixed on 2022/03/08 16:11
Subsystems: wireless usb
[Documentation on labels]
Reported-by: syzbot+31d54c60c5b254d6f75b@syzkaller.appspotmail.com
Fix commit: 8b3046abc99e ath9k_htc: fix NULL pointer dereference at ath9k_htc_tx_get_packet()
First crash: 1261d, last: 1080d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit 7e49afc03212010d0ee27532a75cfeb0125bd868
Author: Masahiro Yamada <masahiroy@kernel.org>
Date: Fri Apr 17 18:04:55 2020 +0000

  um: do not evaluate compiler's library path when cleaning

Crash: INFO: trying to register non-static key in ath9k_wmi_event_tasklet (log)
Repro: C syz .config
  
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 5.10 00/23] 5.10.136-rc1 review 31 (31) 2022/08/10 14:42
[PATCH 5.16 0000/1039] 5.16.3-rc1 review 1058 (1058) 2022/02/03 14:49
[PATCH 5.15 000/846] 5.15.17-rc1 review 859 (859) 2022/01/27 16:04
[PATCH AUTOSEL 5.15 001/188] Bluetooth: Fix debugfs entry leak in hci_register_dev() 193 (193) 2022/01/22 19:19
[PATCH AUTOSEL 5.16 001/217] Bluetooth: hci_sock: purge socket queues in the destruct() callback 226 (226) 2022/01/22 19:17
[PATCH 2/2 (RESEND)] ath9k_htc: fix NULL pointer dereference at ath9k_htc_tx_get_packet() 3 (3) 2021/10/02 11:18
[PATCH] ath9k_htc: fix NULL pointer dereference at ath9k_htc_tx_get_packet() 1 (1) 2021/09/12 07:18
[syzbot] INFO: trying to register non-static key in ath9k_wmi_event_tasklet 0 (1) 2021/06/14 11:12
Last patch testing requests (2)
Created Duration User Patch Repo Result
2021/09/12 07:03 11m penguin-kernel@i-love.sakura.ne.jp patch upstream OK
2021/07/27 21:23 10m thisisrast7@gmail.com patch upstream report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2021/11/06 03:07 20m bisect fix upstream OK (0) job log log
2021/10/07 02:46 21m bisect fix upstream OK (0) job log log
2021/09/07 01:49 20m bisect fix upstream OK (0) job log log

Sample crash report:
INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
CPU: 1 PID: 19 Comm: ksoftirqd/1 Not tainted 5.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105
 assign_lock_key kernel/locking/lockdep.c:939 [inline]
 register_lock_class+0xf79/0x10c0 kernel/locking/lockdep.c:1251
 __lock_acquire+0x105/0x54a0 kernel/locking/lockdep.c:4894
 lock_acquire kernel/locking/lockdep.c:5625 [inline]
 lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175
 spin_lock_bh include/linux/spinlock.h:359 [inline]
 ath9k_wmi_event_tasklet+0x231/0x3f0 drivers/net/wireless/ath/ath9k/wmi.c:172
 tasklet_action_common.constprop.0+0x201/0x2e0 kernel/softirq.c:783
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 run_ksoftirqd kernel/softirq.c:920 [inline]
 run_ksoftirqd+0x2d/0x60 kernel/softirq.c:912
 smpboot_thread_fn+0x645/0x9c0 kernel/smpboot.c:164
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
------------[ cut here ]------------
WARNING: CPU: 1 PID: 19 at drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:656 ath9k_htc_txstatus+0x3bb/0x500 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:656
Modules linked in:
CPU: 1 PID: 19 Comm: ksoftirqd/1 Not tainted 5.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compu

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/07 21:45 upstream c9194f32bfd9 6972b106 .config console log report syz C ci-upstream-kasan-gce INFO: trying to register non-static key in ath9k_wmi_event_tasklet
2021/06/10 12:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing e89bb4288378 1ba81399 .config console log report syz C ci2-upstream-usb INFO: trying to register non-static key in ath9k_wmi_event_tasklet
2021/12/08 06:11 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d598c3c46ea6 0230ba3e .config console log report info ci2-upstream-usb INFO: trying to register non-static key in ath9k_wmi_event_tasklet
2021/11/28 07:42 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c4bc515d73b5 63eeac02 .config console log report info ci2-upstream-usb INFO: trying to register non-static key in ath9k_wmi_event_tasklet
2021/11/22 04:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 4616dddcfaf7 4eb20a4e .config console log report info ci2-upstream-usb INFO: trying to register non-static key in ath9k_wmi_event_tasklet
2021/08/04 01:01 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 64cd4271ea8e 6c236867 .config console log report info ci2-upstream-usb INFO: trying to register non-static key in ath9k_wmi_event_tasklet
2021/06/10 11:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing e89bb4288378 1ba81399 .config console log report info ci2-upstream-usb INFO: trying to register non-static key in ath9k_wmi_event_tasklet
* Struck through repros no longer work on HEAD.