syzbot


WARNING in __ieee80211_beacon_get (2)

Status: auto-closed as invalid on 2021/10/02 04:19
Reported-by: syzbot+85e0b8d12d9ca877d806@syzkaller.appspotmail.com
First crash: 1073d, last: 1047d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in __ieee80211_beacon_get (3) C 224 406d 912d 0/1 upstream: reported C repro on 2021/10/16 16:09
upstream WARNING in __ieee80211_beacon_get wireless C done 7247 8h00m 1288d 0/26 upstream: reported C repro on 2020/10/05 08:38
linux-5.15 WARNING in __ieee80211_beacon_get origin:upstream C 1688 35m 404d 0/3 upstream: reported C repro on 2023/03/08 22:50
linux-4.19 WARNING in __ieee80211_beacon_get 2 1199d 1203d 0/1 auto-closed as invalid on 2021/05/02 15:33
linux-4.14 WARNING in __ieee80211_beacon_get 1 1271d 1271d 0/1 auto-closed as invalid on 2021/02/20 01:09
linux-6.1 WARNING in __ieee80211_beacon_get origin:upstream C 721 14h08m 400d 0/3 upstream: reported C repro on 2023/03/13 04:41

Sample crash report:
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.4'.
WARNING: CPU: 1 PID: 11828 at net/mac80211/tx.c:4134 __ieee80211_csa_update_counter net/mac80211/tx.c:4134 [inline]
WARNING: CPU: 1 PID: 11828 at net/mac80211/tx.c:4134 __ieee80211_csa_update_counter net/mac80211/tx.c:4129 [inline]
WARNING: CPU: 1 PID: 11828 at net/mac80211/tx.c:4134 __ieee80211_beacon_get+0x1678/0x1a30 net/mac80211/tx.c:4327
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 11828 Comm: syz-executor.0 Not tainted 4.19.193-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:__ieee80211_csa_update_counter net/mac80211/tx.c:4134 [inline]
RIP: 0010:__ieee80211_csa_update_counter net/mac80211/tx.c:4129 [inline]
RIP: 0010:__ieee80211_beacon_get+0x1678/0x1a30 net/mac80211/tx.c:4327
Code: 85 70 03 00 00 41 0f b6 45 24 31 ff 44 8d 60 ff 45 88 65 24 44 89 e6 e8 56 8e c0 f9 45 84 e4 0f 85 4f f5 ff ff e8 18 8d c0 f9 <0f> 0b e9 43 f5 ff ff e8 0c 8d c0 f9 e8 f7 b8 ae f9 31 ff 41 89 c4
RSP: 0018:ffff8880ba107c18 EFLAGS: 00010206
RAX: ffff88809a3cc240 RBX: ffff88809f2c5f78 RCX: ffffffff87a1ec0a
RDX: 0000000000000100 RSI: ffffffff87a1ec18 RDI: 0000000000000001
RBP: ffff88808ed21fe0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880988c6dc0 R14: 0000000000000000 R15: ffff8880ba107d60
 ieee80211_beacon_get_tim+0x88/0x890 net/mac80211/tx.c:4443
 ieee80211_beacon_get include/net/mac80211.h:4484 [inline]
 mac80211_hwsim_beacon_tx+0xff/0x680 drivers/net/wireless/mac80211_hwsim.c:1577
 __iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
 ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
 mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
 __tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
 tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
 __do_softirq+0x265/0x980 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:535 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:lock_release+0x429/0x8b0 kernel/locking/lockdep.c:3930
Code: 84 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 95 03 00 00 48 83 3d 8b 3c a6 08 00 0f 84 cc 01 00 00 48 8b 3c 24 57 9d <0f> 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 49 c7 04 04 00 00 00
RSP: 0018:ffff88809b2573a0 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3049 RBX: ffff88809a3cc240 RCX: 1ffff11013479968
RDX: dffffc0000000000 RSI: 0000000000000004 RDI: 0000000000000282
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000000005 R11: 0000000000000000 R12: 1ffff1101364ae77
R13: 8a5ab2289b4eb405 R14: ffff88809a3cc240 R15: 0000000000000004
 __test_set_page_writeback+0xb8f/0x1750 mm/page-writeback.c:2807
 set_page_writeback include/linux/page-flags.h:497 [inline]
 ext4_bio_write_page+0x243/0x16c0 fs/ext4/page-io.c:432
 mpage_submit_page+0x14b/0x250 fs/ext4/inode.c:2234
 mpage_map_and_submit_buffers fs/ext4/inode.c:2431 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2569 [inline]
 ext4_writepages+0x20fc/0x37f0 fs/ext4/inode.c:2882
 do_writepages+0xe5/0x290 mm/page-writeback.c:2344
 __filemap_fdatawrite_range+0x27d/0x350 mm/filemap.c:446
 file_write_and_wait_range+0x93/0x100 mm/filemap.c:776
 __generic_file_fsync+0x74/0x1f0 fs/libfs.c:985
 ext4_sync_file+0xa35/0x1420 fs/ext4/fsync.c:118
 vfs_fsync_range+0x13a/0x220 fs/sync.c:197
 generic_write_sync include/linux/fs.h:2750 [inline]
 ext4_file_write_iter+0x726/0xf20 fs/ext4/file.c:283
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x51b/0x770 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd9500dc188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056c0f0 RCX: 00000000004665d9
RDX: 00000000fffffc41 RSI: 0000000020001440 RDI: 0000000000000007
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0
R13: 00007fff74ae9d3f R14: 00007fd9500dc300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/04 04:18 linux-4.19.y 1722257b8ece 0740de69 .config console log report info ci2-linux-4-19 WARNING in __ieee80211_beacon_get
2021/05/20 15:13 linux-4.19.y 3c8c23092588 c560a65d .config console log report info ci2-linux-4-19 WARNING in __ieee80211_beacon_get
2021/05/14 02:34 linux-4.19.y 3c8c23092588 ecb594cb .config console log report info ci2-linux-4-19 WARNING in __ieee80211_beacon_get
2021/05/08 18:19 linux-4.19.y 3c8c23092588 bc5434be .config console log report info ci2-linux-4-19 WARNING in __ieee80211_beacon_get
* Struck through repros no longer work on HEAD.