syzbot


divide error in ath9k_htc_swba

Status: auto-obsoleted due to no activity on 2024/06/23 08:10
Subsystems: usb wireless
[Documentation on labels]
Reported-by: syzbot+90d241d7661ca2493f0b@syzkaller.appspotmail.com
First crash: 1259d, last: 259d
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: UBSAN: division-overflow in ath9k_htc_swba (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 24355fcb0d4cbcb6ddda262596558e8cfba70f11
Author: Toke Høiland-Jørgensen <toke@redhat.com>
Date: Fri Jan 26 14:02:17 2024 +0000

  wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] divide error in ath9k_htc_swba 1 (4) 2024/06/09 08:10
Last patch testing requests (11)
Created Duration User Patch Repo Result
2024/06/18 14:57 46m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log
2024/06/16 15:11 27m retest repro upstream OK log
2024/06/16 12:23 24m retest repro upstream OK log
2024/06/16 12:23 21m retest repro upstream OK log
2024/05/18 22:10 26m retest repro https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing OK log
2024/05/04 22:30 21m retest repro upstream OK log
2024/05/04 21:51 21m retest repro upstream OK log
2024/04/27 07:13 21m retest repro upstream OK log
2024/04/27 07:13 21m retest repro linux-next OK log
2024/04/07 03:52 23m retest repro upstream error
2021/06/18 10:31 17m paskripkin@gmail.com patch upstream OK
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2024/06/08 23:56 8h12m bisect fix upstream OK (1) job log
2022/08/07 16:08 19m bisect fix upstream OK (2) job log
2022/07/08 15:47 20m bisect fix upstream OK (0) job log log
2022/06/08 15:20 27m bisect fix upstream OK (0) job log log
marked invalid by web-security-scanner@google.com
2022/05/09 11:34 19m bisect fix upstream OK (0) job log log
marked invalid by web-security-scanner@google.com
2022/01/26 16:34 21m bisect fix upstream OK (0) job log log
marked invalid by web-security-scanner@google.com
2021/12/27 16:14 19m bisect fix upstream OK (0) job log log
2021/11/22 22:53 20m bisect fix upstream OK (0) job log log
2021/10/23 22:32 21m bisect fix upstream OK (0) job log log
2021/09/23 15:05 21m bisect fix upstream OK (0) job log log

Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:ath9k_htc_choose_bslot drivers/net/wireless/ath/ath9k/htc_drv_beacon.c:277 [inline]
RIP: 0010:ath9k_htc_swba+0x1be/0xc70 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c:310
Code: 00 48 8b 13 0f b7 c9 bb 01 00 00 00 4d 8d bd b0 03 00 00 4c 89 ff 48 0f ca 48 89 d0 c1 ea 0a 48 c1 e8 20 c1 e0 16 09 d0 31 d2 <f7> f1 8d 04 12 31 d2 f7 f1 29 c3 e8 72 57 5c 04 48 63 c3 48 83 f8
RSP: 0018:ffffc90000157c18 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880605b33f0
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880605b3040 R14: 0000000000000210 R15: ffff8880605b33f0
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc2dff8ff8 CR3: 0000000028fe6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ath9k_wmi_event_tasklet+0x34e/0x460 drivers/net/wireless/ath/ath9k/wmi.c:165
 tasklet_action_common.constprop.0+0x242/0x3d0 kernel/softirq.c:780
 __do_softirq+0x21a/0x8de kernel/softirq.c:553
 run_ksoftirqd kernel/softirq.c:921 [inline]
 run_ksoftirqd+0x31/0x60 kernel/softirq.c:913
 smpboot_thread_fn+0x660/0xa10 kernel/smpboot.c:164
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ath9k_htc_choose_bslot drivers/net/wireless/ath/ath9k/htc_drv_beacon.c:277 [inline]
RIP: 0010:ath9k_htc_swba+0x1be/0xc70 drivers/net/wireless/ath/ath9k/htc_drv_beacon.c:310
Code: 00 48 8b 13 0f b7 c9 bb 01 00 00 00 4d 8d bd b0 03 00 00 4c 89 ff 48 0f ca 48 89 d0 c1 ea 0a 48 c1 e8 20 c1 e0 16 09 d0 31 d2 <f7> f1 8d 04 12 31 d2 f7 f1 29 c3 e8 72 57 5c 04 48 63 c3 48 83 f8
RSP: 0018:ffffc90000157c18 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880605b33f0
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880605b3040 R14: 0000000000000210 R15: ffff8880605b33f0
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc2dff8ff8 CR3: 000000000cf79000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 48 8b             	add    %cl,-0x75(%rax)
   3:	13 0f                	adc    (%rdi),%ecx
   5:	b7 c9                	mov    $0xc9,%bh
   7:	bb 01 00 00 00       	mov    $0x1,%ebx
   c:	4d 8d bd b0 03 00 00 	lea    0x3b0(%r13),%r15
  13:	4c 89 ff             	mov    %r15,%rdi
  16:	48 0f ca             	bswap  %rdx
  19:	48 89 d0             	mov    %rdx,%rax
  1c:	c1 ea 0a             	shr    $0xa,%edx
  1f:	48 c1 e8 20          	shr    $0x20,%rax
  23:	c1 e0 16             	shl    $0x16,%eax
  26:	09 d0                	or     %edx,%eax
  28:	31 d2                	xor    %edx,%edx
* 2a:	f7 f1                	div    %ecx <-- trapping instruction
  2c:	8d 04 12             	lea    (%rdx,%rdx,1),%eax
  2f:	31 d2                	xor    %edx,%edx
  31:	f7 f1                	div    %ecx
  33:	29 c3                	sub    %eax,%ebx
  35:	e8 72 57 5c 04       	call   0x45c57ac
  3a:	48 63 c3             	movslq %ebx,%rax
  3d:	48                   	rex.W
  3e:	83                   	.byte 0x83
  3f:	f8                   	clc

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/13 16:58 upstream 052d534373b7 551587c1 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce divide error in ath9k_htc_swba
2022/04/01 23:37 upstream e8b767f5e040 20955a24 .config console log report syz C ci-upstream-kasan-gce-selinux-root divide error in ath9k_htc_swba
2022/02/25 11:26 upstream 73878e5eb1bd 7c337266 .config console log report syz C ci-upstream-kasan-gce-smack-root divide error in ath9k_htc_swba
2022/02/10 07:12 upstream f4bc5bbb5fef 0b33604d .config console log report syz C ci-upstream-kasan-gce-root divide error in ath9k_htc_swba
2021/08/09 18:22 upstream 36a21d51725a 6972b106 .config console log report syz C ci-upstream-kasan-gce divide error in ath9k_htc_swba
2023/09/05 15:53 upstream 3f86ed6ec0b3 0b6286dc .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream divide error in ath9k_htc_swba
2024/01/13 14:57 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 933bb7b878dd 551587c1 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-upstream-usb divide error in ath9k_htc_swba
2022/03/06 02:26 linux-next 91265a6da44d 7bdd8b2c .config console log report syz C ci-upstream-linux-next-kasan-gce-root divide error in ath9k_htc_swba
2021/06/14 10:08 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 37fdb7c90f8c 1ba81399 .config console log report syz C ci2-upstream-usb divide error in ath9k_htc_swba
2024/01/13 13:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 933bb7b878dd 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb divide error in ath9k_htc_swba
2021/11/27 16:14 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing c4bc515d73b5 63eeac02 .config console log report info ci2-upstream-usb divide error in ath9k_htc_swba
2021/08/24 13:44 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing e4788edc730a b599f2fc .config console log report info ci2-upstream-usb divide error in ath9k_htc_swba
2021/08/05 08:00 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 64cd4271ea8e 7f7bb950 .config console log report info ci2-upstream-usb divide error in ath9k_htc_swba
2021/06/28 10:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 7756f1d6369e 9d2ab5df .config console log report info ci2-upstream-usb divide error in ath9k_htc_swba
2021/06/25 19:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 7756f1d6369e ae6bf8dd .config console log report info ci2-upstream-usb divide error in ath9k_htc_swba
2021/06/14 09:14 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 37fdb7c90f8c 1ba81399 .config console log report info ci2-upstream-usb divide error in ath9k_htc_swba
* Struck through repros no longer work on HEAD.