syzbot


WARNING in __ieee80211_beacon_get

Status: upstream: reported C repro on 2020/10/05 08:38
Reported-by: syzbot+18c783c5cf6a781e3e2c@syzkaller.appspotmail.com
First crash: 852d, last: 2h06m

Cause bisection: introduced by (bisect log) :
commit 7dfd8ac327301f302b03072066c66eb32578e940
Author: Ramon Fontes <ramonreisfontes@gmail.com>
Date: Thu Oct 10 18:13:07 2019 +0000

  mac80211_hwsim: add support for OCB

Crash: WARNING in __ieee80211_beacon_get (log)
Repro: C syz .config
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in __ieee80211_beacon_get (3) C 193 2d04h 473d 0/1 upstream: reported C repro on 2021/10/16 16:09
linux-4.19 WARNING in __ieee80211_beacon_get 2 760d 763d 0/1 auto-closed as invalid on 2021/05/02 15:33
linux-4.14 WARNING in __ieee80211_beacon_get 1 831d 831d 0/1 auto-closed as invalid on 2021/02/20 01:09
linux-4.19 WARNING in __ieee80211_beacon_get (2) 4 607d 633d 0/1 auto-closed as invalid on 2021/10/02 04:19
Last patch testing requests:
Created Duration User Patch Repo Result
2021/06/22 09:08 10m phind.uet@gmail.com upstream report log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3671 at net/mac80211/tx.c:4918 __ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4918 [inline]
WARNING: CPU: 1 PID: 3671 at net/mac80211/tx.c:4918 __ieee80211_beacon_get+0x176e/0x1a80 net/mac80211/tx.c:5237
Modules linked in:
CPU: 1 PID: 3671 Comm: syz-executor304 Not tainted 6.1.0-rc7-syzkaller-00012-gca57f02295f1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__ieee80211_beacon_update_cntdwn net/mac80211/tx.c:4918 [inline]
RIP: 0010:__ieee80211_beacon_get+0x176e/0x1a80 net/mac80211/tx.c:5237
Code: e9 d5 fb ff ff 45 31 f6 c7 44 24 58 00 00 00 00 e9 98 f7 ff ff c7 44 24 58 00 00 00 00 45 31 f6 e9 88 f7 ff ff e8 b2 cc 4a f8 <0f> 0b e9 2c f3 ff ff 48 89 de 48 c7 c7 00 44 24 8e e8 5c cf f3 fa
RSP: 0018:ffffc900001e0bd8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888022cd8c00 RCX: 0000000000000100
RDX: ffff88801f41ba80 RSI: ffffffff89354c6e RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffff8880722a66d0 R14: 1ffff9200003c18f R15: ffff8880722a6248
FS:  00007f5a30a1c700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000202d9030 CR3: 00000000779c1000 CR4: 0000000000350ee0
Call Trace:
 <IRQ>
 ieee80211_beacon_get_tim+0x99/0x4e0 net/mac80211/tx.c:5324
 ieee80211_beacon_get include/net/mac80211.h:5247 [inline]
 mac80211_hwsim_beacon_tx+0x1d4/0xab0 drivers/net/wireless/mac80211_hwsim.c:2086
 __iterate_interfaces+0x2c8/0x550 net/mac80211/util.c:796
 ieee80211_iterate_active_interfaces_atomic+0x74/0x180 net/mac80211/util.c:832
 mac80211_hwsim_beacon+0x101/0x200 drivers/net/wireless/mac80211_hwsim.c:2142
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x690/0xfb0 kernel/time/hrtimer.c:1749
 hrtimer_run_softirq+0x17f/0x360 kernel/time/hrtimer.c:1766
 __do_softirq+0x1fb/0xadc kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:lock_release+0x429/0x810 kernel/locking/lockdep.c:5676
Code: 7e 83 f8 01 0f 85 02 02 00 00 9c 58 f6 c4 02 0f 85 ed 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c5 48 c7 45 00 00 00 00 00 c7 45 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc90003e4f6b8 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: ffffffffffffffff RCX: ffffc90003e4f708
RDX: 1ffff11003e83898 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 1ffff920007c9ed9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000001 R14: ffff88801f41c4c8 R15: ffff88801f41ba80
 __mutex_unlock_slowpath+0x99/0x5e0 kernel/locking/mutex.c:907
 __unix_dgram_recvmsg+0x434/0xb90 net/unix/af_unix.c:2519
 unix_dgram_recvmsg+0xc4/0xf0 net/unix/af_unix.c:2535
 sock_recvmsg_nosec net/socket.c:995 [inline]
 ____sys_recvmsg+0x53c/0x610 net/socket.c:2699
 ___sys_recvmsg+0xf2/0x180 net/socket.c:2743
 do_recvmmsg+0x25e/0x6e0 net/socket.c:2837
 __sys_recvmmsg net/socket.c:2916 [inline]
 __do_sys_recvmmsg net/socket.c:2939 [inline]
 __se_sys_recvmmsg net/socket.c:2932 [inline]
 __x64_sys_recvmmsg+0x20f/0x260 net/socket.c:2932
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f5a30a8cf39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 90 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:00007f5a30a1c308 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f5a30b15438 RCX: 00007f5a30a8cf39
RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007f5a30b15430 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 00007f5a30b1543c
R13: 00007f5a30ae21c4 R14: 0031313230386c6e R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	7e 83                	jle    0xffffff85
   2:	f8                   	clc
   3:	01 0f                	add    %ecx,(%rdi)
   5:	85 02                	test   %eax,(%rdx)
   7:	02 00                	add    (%rax),%al
   9:	00 9c 58 f6 c4 02 0f 	add    %bl,0xf02c4f6(%rax,%rbx,2)
  10:	85 ed                	test   %ebp,%ebp
  12:	01 00                	add    %eax,(%rax)
  14:	00 48 f7             	add    %cl,-0x9(%rax)
  17:	04 24                	add    $0x24,%al
  19:	00 02                	add    %al,(%rdx)
  1b:	00 00                	add    %al,(%rax)
  1d:	74 01                	je     0x20
  1f:	fb                   	sti
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	48 01 c5             	add    %rax,%rbp <-- trapping instruction
  2d:	48 c7 45 00 00 00 00 	movq   $0x0,0x0(%rbp)
  34:	00
  35:	c7 45 08 00 00 00 00 	movl   $0x0,0x8(%rbp)
  3c:	48                   	rex.W
  3d:	8b                   	.byte 0x8b
  3e:	84                   	.byte 0x84
  3f:	24                   	.byte 0x24

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/12/26 12:44 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report syz C
* Struck through repros no longer work on HEAD.
Crashes (2535):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/11/29 19:00 upstream ca57f02295f1 05dc7993 .config console log report syz C [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2022/08/14 07:54 upstream 7ebfc85e2cd7 8dfcaa3d .config strace log report syz C WARNING in __ieee80211_beacon_get
ci-upstream-net-kasan-gce 2020/10/04 17:38 net-next 456afe01b100 5ef9c291 .config console log report syz C
ci-upstream-net-this-kasan-gce 2022/10/31 07:34 net a2c65a9d0568 2a71366b .config console log report syz [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-linux-next-kasan-gce-root 2022/10/22 05:53 linux-next 4d48f589d294 4bfd3c27 .config console log report syz [disk image] [vmlinux] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/02/01 15:07 upstream c0b67534c95c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/02/01 05:59 upstream 58706f7fb045 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/02/01 01:16 upstream 58706f7fb045 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/31 23:05 upstream 58706f7fb045 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/01/31 15:45 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/31 13:39 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/31 12:39 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/31 10:40 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce 2023/01/31 06:58 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/31 05:43 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/01/31 04:01 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/01/31 02:45 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/30 17:52 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/30 16:23 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/30 13:02 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce 2023/01/30 03:39 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/30 00:54 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/01/29 22:09 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/29 10:20 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/01/29 07:46 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/29 05:30 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/28 22:45 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/28 18:04 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/28 15:26 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/01/28 14:23 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/28 09:27 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/28 07:53 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/28 06:17 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-root 2023/01/28 03:51 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/28 02:50 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/28 01:08 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/27 12:08 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/26 07:20 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/26 04:37 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/25 18:40 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-selinux-root 2023/01/25 16:38 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-smack-root 2023/01/25 15:01 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-qemu-upstream 2023/01/24 00:27 upstream 7bf70dbb1882 7374c4e5 .config console log report info WARNING in __ieee80211_beacon_get
ci-upstream-kasan-gce-386 2022/12/21 14:30 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-qemu-upstream-386 2022/12/17 07:54 upstream 77856d911a8c 05494336 .config console log report info WARNING in __ieee80211_beacon_get
ci-upstream-net-this-kasan-gce 2023/01/29 15:58 net a6efc42a86c0 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-net-kasan-gce 2023/01/28 13:16 net-next 70eb3911d80f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-net-kasan-gce 2023/01/28 11:41 net-next 70eb3911d80f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-linux-next-kasan-gce-root 2023/02/01 12:47 linux-next 66eee64b2354 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-linux-next-kasan-gce-root 2023/01/31 07:42 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-linux-next-kasan-gce-root 2023/01/27 16:00 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-linux-next-kasan-gce-root 2023/01/27 14:00 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-gce-arm64 2023/01/31 20:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-gce-arm64 2023/01/31 19:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-gce-arm64 2023/01/31 18:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-gce-arm64 2023/01/30 14:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-gce-arm64 2023/01/26 22:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1dc22be1f91f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-gce-arm64 2023/01/26 21:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1dc22be1f91f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-gce-arm64 2023/01/26 19:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1dc22be1f91f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-gce-arm64 2023/01/26 10:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e84eedb182e 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __ieee80211_beacon_get
ci-upstream-net-this-kasan-gce 2020/10/02 15:58 net ef9da46ddef0 4969d6ca .config console log report info
ci-upstream-net-kasan-gce 2021/01/17 03:28 net-next c761b2df9df0 65a7a854 .config console log report info
* Struck through repros no longer work on HEAD.