syzbot


WARNING in ieee80211_beacon_get_tim (3)

Status: auto-obsoleted due to no activity on 2023/03/01 22:17
Reported-by: syzbot+b93be886904433d8393e@syzkaller.appspotmail.com
First crash: 534d, last: 534d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in ieee80211_beacon_get_tim (2) 2 746d 863d 0/1 auto-closed as invalid on 2022/08/02 15:19
linux-4.19 WARNING in ieee80211_beacon_get_tim 1 1088d 1088d 0/1 auto-closed as invalid on 2021/08/25 20:24

Sample crash report:
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
WARNING: CPU: 1 PID: 20917 at net/mac80211/tx.c:4154 __ieee80211_csa_update_counter net/mac80211/tx.c:4154 [inline]
WARNING: CPU: 1 PID: 20917 at net/mac80211/tx.c:4154 __ieee80211_csa_update_counter net/mac80211/tx.c:4149 [inline]
WARNING: CPU: 1 PID: 20917 at net/mac80211/tx.c:4154 __ieee80211_beacon_get+0x1678/0x1a30 net/mac80211/tx.c:4347
Kernel panic - not syncing: panic_on_warn set ...

 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f26789065a9
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2676e79168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f2678a26f80 RCX: 00007f26789065a9
RDX: 0000000000000000 RSI: 0000000020000400 RDI: 0000000000000005
RBP: 00007f26789617b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd9812becf R14: 00007f2676e79300 R15: 0000000000022000
CPU: 1 PID: 20917 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
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:4154 [inline]
RIP: 0010:__ieee80211_csa_update_counter net/mac80211/tx.c:4149 [inline]
RIP: 0010:__ieee80211_beacon_get+0x1678/0x1a30 net/mac80211/tx.c:4347
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 e6 9f bf f9 45 84 e4 0f 85 4f f5 ff ff e8 a8 9e bf f9 <0f> 0b e9 43 f5 ff ff e8 9c 9e bf f9 e8 c7 c6 ad f9 31 ff 41 89 c4
RSP: 0018:ffff8880ba107c18 EFLAGS: 00010206
RAX: ffff8880965c8200 RBX: ffff8880618fedf8 RCX: ffffffff87a2e6ba
RDX: 0000000000000100 RSI: ffffffff87a2e6c8 RDI: 0000000000000001
RBP: ffff888062d013c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880a5707080 R14: 0000000000000000 R15: ffff8880ba107d60
 ieee80211_beacon_get_tim+0x88/0x890 net/mac80211/tx.c:4463
 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:536 [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:write_comp_data+0x23/0x70 kernel/kcov.c:122
Code: 1f 84 00 00 00 00 00 49 89 f1 49 89 fa 65 48 8b 34 25 c0 df 01 00 65 8b 05 7a 59 9f 7e a9 00 01 1f 00 75 4f 8b 86 60 13 00 00 <83> f8 03 75 44 48 8b 86 68 13 00 00 8b b6 64 13 00 00 48 8b 38 48
RSP: 0018:ffff8880971776d8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000002 RBX: 1ffff11012e2eee0 RCX: ffffffff8158819e
RDX: 0000000000000001 RSI: ffff8880965c8200 RDI: 0000000000000005
RBP: ffff8880971777a8 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000002
 csd_lock_wait kernel/smp.c:108 [inline]
 smp_call_function_single+0x1ee/0x420 kernel/smp.c:302
 smp_call_function_many+0x743/0x8d0 kernel/smp.c:434
 smp_call_function kernel/smp.c:492 [inline]
 on_each_cpu+0x47/0x240 kernel/smp.c:602
 text_poke_bp+0x100/0x1a0 arch/x86/kernel/alternative.c:830
 __jump_label_transform+0x2d6/0x460 arch/x86/kernel/jump_label.c:103
 arch_jump_label_transform+0x26/0x40 arch/x86/kernel/jump_label.c:111
 __jump_label_update+0x1cf/0x230 kernel/jump_label.c:383
 jump_label_update kernel/jump_label.c:768 [inline]
 jump_label_update+0x177/0x310 kernel/jump_label.c:747
 static_key_slow_inc_cpuslocked+0x1ae/0x240 kernel/jump_label.c:109
 static_key_slow_inc+0x16/0x20 kernel/jump_label.c:124
 tracepoint_add_func+0x819/0xb90 kernel/tracepoint.c:315
 tracepoint_probe_register_prio kernel/tracepoint.c:403 [inline]
 tracepoint_probe_register+0xa1/0xf0 kernel/tracepoint.c:423
 trace_event_reg+0x28f/0x340 kernel/trace/trace_events.c:306
 perf_trace_event_reg kernel/trace/trace_event_perf.c:124 [inline]
 perf_trace_event_init+0x4c1/0x920 kernel/trace/trace_event_perf.c:199
 perf_trace_init+0x176/0x240 kernel/trace/trace_event_perf.c:223
 perf_tp_event_init+0xa2/0x120 kernel/events/core.c:8491
 perf_try_init_event+0x124/0x2e0 kernel/events/core.c:9884
 perf_init_event kernel/events/core.c:9922 [inline]
 perf_event_alloc.part.0+0x109d/0x2eb0 kernel/events/core.c:10189
 perf_event_alloc kernel/events/core.c:10559 [inline]
 __do_sys_perf_event_open kernel/events/core.c:10660 [inline]
 __se_sys_perf_event_open+0x550/0x2720 kernel/events/core.c:10549
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5d7d7995a9
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5d7bceb168 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f5d7d8ba050 RCX: 00007f5d7d7995a9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180
RBP: 00007f5d7d7f47b0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4dc92f0f R14: 00007f5d7bceb300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	84 00                	test   %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	00 00                	add    %al,(%rax)
   6:	49 89 f1             	mov    %rsi,%r9
   9:	49 89 fa             	mov    %rdi,%r10
   c:	65 48 8b 34 25 c0 df 	mov    %gs:0x1dfc0,%rsi
  13:	01 00
  15:	65 8b 05 7a 59 9f 7e 	mov    %gs:0x7e9f597a(%rip),%eax        # 0x7e9f5996
  1c:	a9 00 01 1f 00       	test   $0x1f0100,%eax
  21:	75 4f                	jne    0x72
  23:	8b 86 60 13 00 00    	mov    0x1360(%rsi),%eax
* 29:	83 f8 03             	cmp    $0x3,%eax <-- trapping instruction
  2c:	75 44                	jne    0x72
  2e:	48 8b 86 68 13 00 00 	mov    0x1368(%rsi),%rax
  35:	8b b6 64 13 00 00    	mov    0x1364(%rsi),%esi
  3b:	48 8b 38             	mov    (%rax),%rdi
  3e:	48                   	rex.W

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/01 22:17 linux-4.19.y 3f8a27f9e27b 08977f5d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in ieee80211_beacon_get_tim
* Struck through repros no longer work on HEAD.