syzbot


WARNING in __rate_control_send_low

Status: upstream: reported C repro on 2020/10/14 12:01
Reported-by: syzbot+fdc5123366fb9c3fdc6d@syzkaller.appspotmail.com
First crash: 788d, last: 3d10h

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in __rate_control_send_low (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in __rate_control_send_low C 4 21d 792d 0/1 upstream: reported C repro on 2020/10/08 02:03
linux-4.19 WARNING in __rate_control_send_low C 341 8d03h 781d 0/1 upstream: reported C repro on 2020/10/19 12:45

Sample crash report:
------------[ cut here ]------------
no supported rates for sta (null) (0xffffffff, band 0) in rate_mask 0x0 with flags 0x0
WARNING: CPU: 2 PID: 29 at net/mac80211/rate.c:371 __rate_control_send_low+0x6ae/0x7f0 net/mac80211/rate.c:371
Modules linked in:
CPU: 2 PID: 29 Comm: kworker/2:0 Not tainted 5.19.0-rc6-syzkaller-00115-g4a57a8400075 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Workqueue: events linkwatch_event
RIP: 0010:__rate_control_send_low+0x6ae/0x7f0 net/mac80211/rate.c:371
Code: b4 a8 e4 00 00 00 e8 31 a8 b4 f8 44 8b 44 24 2c 45 89 e9 44 89 e1 48 8b 74 24 18 44 89 f2 48 c7 c7 20 f1 f3 8a e8 1e 16 6d 00 <0f> 0b e9 37 fd ff ff 48 8b 3c 24 e8 22 c3 00 f9 e9 bf fa ff ff 48
RSP: 0018:ffffc900007a09d8 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff88801b45c828 RCX: 0000000000000000
RDX: ffff8880126b2100 RSI: ffffffff815ffb88 RDI: fffff520000f412d
RBP: ffff88801e6e3368 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000101 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 00000000ffffffff R15: ffff88801e6e0de0
FS:  0000000000000000(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001108 CR3: 000000000ba8e000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 rate_control_send_low+0x29e/0x830 net/mac80211/rate.c:396
 rate_control_get_rate+0x1b9/0x5a0 net/mac80211/rate.c:908
 ieee80211_beacon_get_finish+0x427/0x5c0 net/mac80211/tx.c:5035
 ieee80211_beacon_get_ap net/mac80211/tx.c:5113 [inline]
 __ieee80211_beacon_get+0x1239/0x1870 net/mac80211/tx.c:5148
 ieee80211_beacon_get_tim+0x8f/0x930 net/mac80211/tx.c:5244
 ieee80211_beacon_get include/net/mac80211.h:5091 [inline]
 mac80211_hwsim_beacon_tx+0x111/0x920 drivers/net/wireless/mac80211_hwsim.c:1908
 __iterate_interfaces+0x1e5/0x560 net/mac80211/util.c:793
 ieee80211_iterate_active_interfaces_atomic+0x70/0x180 net/mac80211/util.c:829
 mac80211_hwsim_beacon+0xcd/0x1c0 drivers/net/wireless/mac80211_hwsim.c:1961
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:200
Code: 48 89 ef 5d e9 b1 9b 4b 00 5d be 03 00 00 00 e9 86 79 82 02 66 0f 1f 44 00 00 48 8b be a8 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 <65> 8b 05 09 d4 88 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b
RSP: 0018:ffffc90000787940 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880126b2100 RSI: ffffffff815fece1 RDI: 0000000000000007
RBP: ffffc90000787980 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000200 R11: 0000000000000007 R12: 0000000000000038
R13: ffff8880128f2100 R14: 0000000000000200 R15: ffffc900007879d0
 console_trylock_spinning kernel/printk/printk.c:1922 [inline]
 vprintk_emit+0x3f7/0x5f0 kernel/printk/printk.c:2270
 vprintk+0x80/0x90 kernel/printk/printk_safe.c:50
 _printk+0xba/0xed kernel/printk/printk.c:2292
 addrconf_notify.cold+0x26/0x68 net/ipv6/addrconf.c:3608
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:87
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:1945
 netdev_state_change net/core/dev.c:1334 [inline]
 netdev_state_change+0x100/0x130 net/core/dev.c:1327
 linkwatch_do_dev+0x10e/0x150 net/core/link_watch.c:168
 __linkwatch_run_queue+0x243/0x6b0 net/core/link_watch.c:221
 linkwatch_event+0x4a/0x60 net/core/link_watch.c:264
 process_one_work+0x996/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
----------------
Code disassembly (best guess):
   0:	48 89 ef             	mov    %rbp,%rdi
   3:	5d                   	pop    %rbp
   4:	e9 b1 9b 4b 00       	jmpq   0x4b9bba
   9:	5d                   	pop    %rbp
   a:	be 03 00 00 00       	mov    $0x3,%esi
   f:	e9 86 79 82 02       	jmpq   0x282799a
  14:	66 0f 1f 44 00 00    	nopw   0x0(%rax,%rax,1)
  1a:	48 8b be a8 01 00 00 	mov    0x1a8(%rsi),%rdi
  21:	e8 b4 ff ff ff       	callq  0xffffffda
  26:	31 c0                	xor    %eax,%eax
  28:	c3                   	retq
  29:	90                   	nop
* 2a:	65 8b 05 09 d4 88 7e 	mov    %gs:0x7e88d409(%rip),%eax        # 0x7e88d43a <-- trapping instruction
  31:	89 c1                	mov    %eax,%ecx
  33:	48 8b 34 24          	mov    (%rsp),%rsi
  37:	81 e1 00 01 00 00    	and    $0x100,%ecx
  3d:	65                   	gs
  3e:	48                   	rex.W
  3f:	8b                   	.byte 0x8b

Crashes (509):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2022/07/20 05:01 upstream 4a57a8400075 775344bc .config log report syz C WARNING in __rate_control_send_low
ci-qemu-upstream 2022/07/16 10:56 upstream 4a57a8400075 95cb00d1 .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/04/23 07:24 upstream c00c5e1d157b 131df97d .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce 2022/01/04 15:05 upstream c9e6606c7fe9 7f723fbe .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce-selinux-root 2021/07/24 22:46 upstream f0fddcec6b62 4d1b57d4 .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce-selinux-root 2021/04/01 18:36 upstream d19cc4bfbff1 6a81331a .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2021/02/19 08:14 upstream f40ddce88593 14052202 .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2021/02/15 08:22 upstream f40ddce88593 98682e5e .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2021/02/09 11:23 upstream e0756cfc7d7c 2bd9619f .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2021/01/31 18:25 upstream 6642d600b541 fc9fd31e .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce 2021/01/26 22:42 upstream 13391c60da33 55a7d4df .config log report syz C WARNING in __rate_control_send_low
ci-upstream-linux-next-kasan-gce-root 2021/07/02 04:17 linux-next a1f92694393a 658ebc66 .config log report syz C WARNING in __rate_control_send_low
ci-upstream-linux-next-kasan-gce-root 2021/04/17 14:50 linux-next 1216f02e46a4 7e2b734b .config log report syz C WARNING in __rate_control_send_low
ci-upstream-linux-next-kasan-gce-root 2021/04/07 05:43 linux-next 9c54130cd255 6a81331a .config log report syz C WARNING in __rate_control_send_low
ci-upstream-kasan-gce 2020/12/03 22:04 upstream 34816d20f173 e6b0d314 .config log report syz C
ci-upstream-kasan-gce 2020/11/28 07:59 upstream 99c710c46dfc 486f93ef .config log report syz C
ci-upstream-kasan-gce-386 2020/11/25 02:15 upstream 80145ac2f739 e34b696c .config log report syz C
ci-upstream-kasan-gce-selinux-root 2022/07/28 14:24 upstream 6e7765cb477a fb95c74d .config log report syz WARNING in __rate_control_send_low
ci-upstream-kasan-gce-selinux-root 2021/04/02 10:26 upstream ffd9fb546d49 6a81331a .config log report syz WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2021/02/19 14:16 upstream f40ddce88593 14052202 .config log report syz WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2021/02/15 17:52 upstream f40ddce88593 98682e5e .config log report syz WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2021/02/01 04:28 upstream 6642d600b541 fc9fd31e .config log report syz WARNING in __rate_control_send_low
ci-upstream-linux-next-kasan-gce-root 2022/06/26 20:48 linux-next 2f9cb3d3bd73 a371c43c .config log report syz WARNING in __rate_control_send_low
ci-upstream-linux-next-kasan-gce-root 2021/04/07 11:21 linux-next 9c54130cd255 6a81331a .config log report syz WARNING in __rate_control_send_low
ci-upstream-linux-next-kasan-gce-root 2021/03/23 05:01 linux-next e3128d2f068e 8092f30d .config log report syz WARNING in __rate_control_send_low
ci-qemu-upstream 2022/12/03 14:36 upstream 97ee9d1c1696 e080de16 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-selinux-root 2022/11/26 01:54 upstream 0b1dcc2cf55a 74a66371 .config log report info WARNING in __rate_control_send_low
ci-qemu-upstream 2022/11/14 11:31 upstream 094226ad94f4 943f4cb8 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2022/11/09 03:00 upstream f141df371335 060f945e .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/11/06 10:25 upstream 2f5065a0bc9d 6d752409 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2022/11/05 20:24 upstream b208b9fbbcba 6d752409 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce 2022/10/28 23:09 upstream b229b6ca5abb ea12ae9b .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2022/10/28 00:16 upstream b229b6ca5abb 86777b7f .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/10/27 15:50 upstream 98555239e4c3 86777b7f .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2022/10/25 19:11 upstream a970174d7a10 45645420 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2022/10/23 15:22 upstream d47136c28015 23bf86af .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2022/08/16 10:06 upstream 7ebfc85e2cd7 7a7cb304 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/08/11 15:19 upstream 200e340f2196 787ed7e0 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2022/08/01 10:32 upstream 3d7cb6b04c3f fef302b1 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-selinux-root 2022/07/30 08:06 upstream e65c6a46df94 fef302b1 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/07/28 20:53 upstream 33ea1340bafe fb95c74d .config log report info WARNING in __rate_control_send_low
ci-qemu-upstream 2022/07/14 01:04 upstream 4a57a8400075 5d921b08 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/07/12 00:34 upstream 5a29232d870d da3d6955 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-selinux-root 2022/07/11 14:30 upstream 32346491ddf2 da3d6955 .config log report info WARNING in __rate_control_send_low
ci-qemu-upstream 2022/07/11 08:35 upstream 32346491ddf2 b5765a15 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/07/09 09:02 upstream e5524c2a1fc4 b5765a15 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/07/03 01:00 upstream 34074da5424c 1434eec0 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce 2022/07/02 04:13 upstream 089866061428 1434eec0 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce 2022/07/01 06:34 upstream 1a0e93df1e10 1434eec0 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-selinux-root 2022/06/29 21:30 upstream d9b2ba67917c 1434eec0 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-smack-root 2022/06/28 18:45 upstream 941e3e791269 496a8536 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-root 2022/06/27 12:33 upstream 03c765b0e3b4 a371c43c .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce 2022/06/25 01:47 upstream 6a0a17e6c6d1 a371c43c .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/12/06 12:18 upstream bce9332220bd 045cbb84 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/11/29 16:22 upstream ca57f02295f1 05dc7993 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/11/29 05:52 upstream ca57f02295f1 ca9683b8 .config log report info WARNING in __rate_control_send_low
ci-qemu-upstream-386 2022/11/10 04:29 upstream f67dd6ce0723 b2488a87 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/11/05 01:41 upstream 64c3dd0b98f5 6d752409 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/11/02 19:46 upstream b229b6ca5abb 08977f5d .config log report info WARNING in __rate_control_send_low
ci-qemu-upstream-386 2022/10/29 22:21 upstream 200204f56f3b 2a71366b .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/10/24 00:13 upstream a70385240892 23bf86af .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/08/15 23:50 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/08/14 12:43 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/08/13 04:13 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in __rate_control_send_low
ci-qemu-upstream-386 2022/08/02 06:28 upstream 9de1f9c8ca51 fef302b1 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/08/02 01:09 upstream 9de1f9c8ca51 fef302b1 .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/07/31 09:06 upstream 6a010258447d fef302b1 .config log report info WARNING in __rate_control_send_low
ci-qemu-upstream-386 2022/07/21 10:33 upstream 4a57a8400075 6e67af9d .config log report info WARNING in __rate_control_send_low
ci-qemu-upstream-386 2022/07/13 06:13 upstream b047602d579b d91dd8ea .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce-386 2022/07/11 11:19 upstream 32346491ddf2 da3d6955 .config log report info WARNING in __rate_control_send_low
ci-upstream-net-this-kasan-gce 2022/11/30 12:27 net 01f856ae6d0c 4c2a66e8 .config log report info WARNING in __rate_control_send_low
ci-upstream-net-this-kasan-gce 2022/11/15 06:08 net 8979f428a4af 943f4cb8 .config log report info WARNING in __rate_control_send_low
ci-upstream-net-this-kasan-gce 2022/10/28 02:39 net 9f172134dde7 86777b7f .config log report info WARNING in __rate_control_send_low
ci-upstream-net-this-kasan-gce 2022/10/23 18:07 net 0bda03623e6b 23bf86af .config log report info WARNING in __rate_control_send_low
ci-upstream-net-this-kasan-gce 2022/10/23 02:31 net 0bda03623e6b c0b80a55 .config log report info WARNING in __rate_control_send_low
ci-upstream-net-this-kasan-gce 2022/07/13 10:24 net 22b9c41a3fb8 5d921b08 .config log report info WARNING in __rate_control_send_low
ci-upstream-net-this-kasan-gce 2022/07/12 08:33 net 4a46de446d3f da3d6955 .config log report info WARNING in __rate_control_send_low
ci-upstream-net-kasan-gce 2022/12/03 10:33 net-next 65e6af6cebef e080de16 .config log report info WARNING in __rate_control_send_low
ci-upstream-net-kasan-gce 2022/06/22 14:49 net-next a80d8fb70cc7 0fc5c330 .config log report info WARNING in __rate_control_send_low
ci-upstream-linux-next-kasan-gce-root 2022/12/04 06:38 linux-next 9e46a7996732 e080de16 .config log report info WARNING in __rate_control_send_low
ci-upstream-linux-next-kasan-gce-root 2022/11/16 20:55 linux-next 15f3bff12cf6 3a127a31 .config log report info WARNING in __rate_control_send_low
ci-upstream-gce-arm64 2022/12/06 14:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 d88f3abb .config log report info WARNING in __rate_control_send_low
ci-upstream-gce-arm64 2022/12/04 17:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e3cb714fb489 e080de16 .config log report info WARNING in __rate_control_send_low
ci-upstream-gce-arm64 2022/11/18 12:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 4ba8ab94 .config log report info WARNING in __rate_control_send_low
ci-upstream-gce-arm64 2022/11/12 18:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report info WARNING in __rate_control_send_low
ci-upstream-kasan-gce 2020/10/12 16:40 upstream bbf5c979011a d32b0bbf .config log report info
ci-upstream-net-kasan-gce 2021/01/11 05:02 net-next 73b7a6047971 2c1f2513 .config log report info
* Struck through repros no longer work on HEAD.