syzbot


divide error in mac80211_hwsim_link_info_changed (2)

Status: upstream: reported on 2025/04/11 03:06
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+5bb5f06f99924ea0cf86@syzkaller.appspotmail.com
First crash: 8d06h, last: 8d06h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [wireless?] divide error in mac80211_hwsim_link_info_changed (2) 0 (1) 2025/04/11 03:06
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream divide error in mac80211_hwsim_link_info_changed wireless 1 271d 271d 0/28 auto-obsoleted due to no activity on 2024/10/25 21:22

Sample crash report:
Oops: divide error: 0000 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted 6.14.0-syzkaller-13546-g16cd1c265776 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: events_unbound cfg80211_wiphy_work
RIP: 0010:mac80211_hwsim_link_info_changed+0x42a/0xf10 drivers/net/wireless/virtual/mac80211_hwsim.c:2549
Code: 00 49 89 c5 74 08 4c 89 ff e8 22 25 cf fa 49 8b 0f 89 ce 48 89 d8 48 c1 e8 20 4c 8b 74 24 10 0f 84 18 01 00 00 48 89 d8 31 d2 <48> f7 f6 e9 11 01 00 00 e8 89 fb 64 fa eb 05 e8 82 fb 64 fa 4c 8d
RSP: 0018:ffffc90000117700 EFLAGS: 00010246
RAX: 000632276c5d693b RBX: 000632276c5d693b RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000040
RBP: ffffc900001177f0 R08: ffffffff81b0eef1 R09: 1ffffffff20bfbee
R10: dffffc0000000000 R11: ffffffff81624770 R12: 0000000000000200
R13: dffffc0000000000 R14: 1ffff92000022eec R15: ffff88807a30f040
FS:  0000000000000000(0000) GS:ffff888125096000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000008000579c CR3: 0000000068a92000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 drv_link_info_changed+0x53d/0x8b0 net/mac80211/driver-ops.c:-1
 ieee80211_offchannel_return+0x3a4/0x530 net/mac80211/offchannel.c:160
 __ieee80211_scan_completed+0x77f/0xb60 net/mac80211/scan.c:495
 ieee80211_scan_work+0x1d6/0x1dd0 net/mac80211/scan.c:1162
 cfg80211_wiphy_work+0x2f0/0x490 net/wireless/core.c:435
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319
 worker_thread+0x870/0xd50 kernel/workqueue.c:3400
 kthread+0x7b7/0x940 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mac80211_hwsim_link_info_changed+0x42a/0xf10 drivers/net/wireless/virtual/mac80211_hwsim.c:2549
Code: 00 49 89 c5 74 08 4c 89 ff e8 22 25 cf fa 49 8b 0f 89 ce 48 89 d8 48 c1 e8 20 4c 8b 74 24 10 0f 84 18 01 00 00 48 89 d8 31 d2 <48> f7 f6 e9 11 01 00 00 e8 89 fb 64 fa eb 05 e8 82 fb 64 fa 4c 8d
RSP: 0018:ffffc90000117700 EFLAGS: 00010246
RAX: 000632276c5d693b RBX: 000632276c5d693b RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000040
RBP: ffffc900001177f0 R08: ffffffff81b0eef1 R09: 1ffffffff20bfbee
R10: dffffc0000000000 R11: ffffffff81624770 R12: 0000000000000200
R13: dffffc0000000000 R14: 1ffff92000022eec R15: ffff88807a30f040
FS:  0000000000000000(0000) GS:ffff888125096000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000080065018 CR3: 000000005144e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	49 89 c5             	mov    %rax,%r13
   3:	74 08                	je     0xd
   5:	4c 89 ff             	mov    %r15,%rdi
   8:	e8 22 25 cf fa       	call   0xfacf252f
   d:	49 8b 0f             	mov    (%r15),%rcx
  10:	89 ce                	mov    %ecx,%esi
  12:	48 89 d8             	mov    %rbx,%rax
  15:	48 c1 e8 20          	shr    $0x20,%rax
  19:	4c 8b 74 24 10       	mov    0x10(%rsp),%r14
  1e:	0f 84 18 01 00 00    	je     0x13c
  24:	48 89 d8             	mov    %rbx,%rax
  27:	31 d2                	xor    %edx,%edx
* 29:	48 f7 f6             	div    %rsi <-- trapping instruction
  2c:	e9 11 01 00 00       	jmp    0x142
  31:	e8 89 fb 64 fa       	call   0xfa64fbbf
  36:	eb 05                	jmp    0x3d
  38:	e8 82 fb 64 fa       	call   0xfa64fbbf
  3d:	4c                   	rex.WR
  3e:	8d                   	.byte 0x8d

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/07 02:59 upstream 16cd1c265776 1c65791e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 divide error in mac80211_hwsim_link_info_changed
* Struck through repros no longer work on HEAD.