divide error in mac80211_hwsim_bss_info_changed

3 views
Skip to first unread message

syzbot

unread,
Oct 19, 2022, 1:15:45 PM10/19/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14c8c644880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=a41cb5719cf7954f2278
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a41cb5...@syzkaller.appspotmail.com

divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 10383 Comm: kworker/u4:8 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: phy3 ieee80211_scan_work
RIP: 0010:mac80211_hwsim_bss_info_changed+0xd4b/0xf20 drivers/net/wireless/mac80211_hwsim.c:1781
Code: 48 ba 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 11 00 0f 85 96 01 00 00 49 8b b6 90 12 00 00 49 8d be 20 13 00 00 31 d2 89 f1 <48> f7 f1 29 d6 b9 01 00 00 00 31 d2 48 69 f6 e8 03 00 00 e8 9d 60
RSP: 0018:ffff888041cdfa50 EFLAGS: 00010246
RAX: 0005eb66591524e1 RBX: 0000000000000200 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888048d4c480
RBP: ffff888048ee7700 R08: ffffffff8c665058 R09: 000000000002baf6
R10: 0000000000000004 R11: ffffffff8c66505b R12: ffff888048d49840
R13: ffff888048d4c3f0 R14: ffff888048d4b160 R15: ffff888048d4b160
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 000000009f70e000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
drv_bss_info_changed net/mac80211/driver-ops.h:178 [inline]
ieee80211_bss_info_change_notify+0x311/0x920 net/mac80211/main.c:204
ieee80211_offchannel_return+0x37e/0x540 net/mac80211/offchannel.c:180
__ieee80211_scan_completed+0x6b3/0x1690 net/mac80211/scan.c:424
ieee80211_scan_work+0x3be/0x19b0 net/mac80211/scan.c:1022
process_one_work+0x864/0x1570 kernel/workqueue.c:2153
worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 8071b67f2c2a9e17 ]---
RIP: 0010:mac80211_hwsim_bss_info_changed+0xd4b/0xf20 drivers/net/wireless/mac80211_hwsim.c:1781
Code: 48 ba 00 00 00 00 00 fc ff df 48 c1 e9 03 80 3c 11 00 0f 85 96 01 00 00 49 8b b6 90 12 00 00 49 8d be 20 13 00 00 31 d2 89 f1 <48> f7 f1 29 d6 b9 01 00 00 00 31 d2 48 69 f6 e8 03 00 00 e8 9d 60
RSP: 0018:ffff888041cdfa50 EFLAGS: 00010246
RAX: 0005eb66591524e1 RBX: 0000000000000200 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888048d4c480
RBP: ffff888048ee7700 R08: ffffffff8c665058 R09: 000000000002baf6
R10: 0000000000000004 R11: ffffffff8c66505b R12: ffff888048d49840
R13: ffff888048d4c3f0 R14: ffff888048d4b160 R15: ffff888048d4b160
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa06c0ce000 CR3: 0000000093089000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
7: fc ff df
a: 48 c1 e9 03 shr $0x3,%rcx
e: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1)
12: 0f 85 96 01 00 00 jne 0x1ae
18: 49 8b b6 90 12 00 00 mov 0x1290(%r14),%rsi
1f: 49 8d be 20 13 00 00 lea 0x1320(%r14),%rdi
26: 31 d2 xor %edx,%edx
28: 89 f1 mov %esi,%ecx
* 2a: 48 f7 f1 div %rcx <-- trapping instruction
2d: 29 d6 sub %edx,%esi
2f: b9 01 00 00 00 mov $0x1,%ecx
34: 31 d2 xor %edx,%edx
36: 48 69 f6 e8 03 00 00 imul $0x3e8,%rsi,%rsi
3d: e8 .byte 0xe8
3e: 9d popfq
3f: 60 (bad)


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Feb 16, 2023, 12:15:41 PM2/16/23
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages