syzbot


INFO: rcu detected stall in batadv_nc_worker (3)

Status: upstream: reported C repro on 2020/10/01 10:35
Reported-by: syzbot+69904c3b4a09e8fa2e1b@syzkaller.appspotmail.com
First crash: 941d, last: 5d20h

Cause bisection: introduced by (bisect log) :
commit f8a4018c826fde6137425bbdbe524d5973feb173
Author: Mark Brown <broonie@kernel.org>
Date: Thu Jun 2 13:53:04 2022 +0000

  ASoC: tas2770: Use modern ASoC DAI format terminology

Crash: INFO: rcu detected stall in corrupted (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in batadv_nc_worker 7 1098d 1100d 0/24 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in batadv_nc_worker (2) 4 1063d 1064d 0/24 closed as invalid on 2020/01/09 08:13
Patch testing requests:
Created Duration User Patch Repo Result
2022/10/18 06:16 17m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 55be6084c8e0 report log
2022/10/17 11:41 12m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 55be6084c8e0 report log
2022/10/16 11:03 15m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 55be6084c8e0 report log
2022/10/16 04:48 19m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 55be6084c8e0 report log
2022/10/16 01:40 10m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 55be6084c8e0 report log
2022/10/15 23:48 11m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 55be6084c8e0 report log

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (1 GPs behind) idle=d61c/1/0x4000000000000000 softirq=5548/5551 fqs=5
	(t=10501 jiffies g=4985 q=1169 ncpus=2)
rcu: rcu_preempt kthread starved for 10488 jiffies! g4985 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:28728 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5178 [inline]
 __schedule+0xadf/0x5270 kernel/sched/core.c:6490
 schedule+0xda/0x1b0 kernel/sched/core.c:6566
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1658
 rcu_gp_kthread+0x236/0x360 kernel/rcu/tree.c:1857
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 47 Comm: kworker/u4:3 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: bat_events batadv_nc_worker
RIP: 0010:check_kcov_mode kernel/kcov.c:166 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x7/0x60 kernel/kcov.c:200
Code: 4c 00 5d be 03 00 00 00 e9 d6 43 84 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 f9 24 87 7e <89> c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b 14 25 80 6f 02 00 a9
RSP: 0018:ffffc900001f0c48 EFLAGS: 00000286
RAX: 0000000000000101 RBX: ffff88806b299c90 RCX: ffffffff878c4a1d
RDX: ffff888017893b00 RSI: 0000000000000100 RDI: 0000000000000007
RBP: fffffff0a3da8872 R08: 0000000000000007 R09: 0000000000000000
R10: fffffff0a3da8872 R11: 000000000008c07d R12: fffffff0a3da8872
R13: ffff888018f5ab00 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000026ef0000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 pie_calculate_probability+0x32b/0x7c0 net/sched/sch_pie.c:387
 fq_pie_timer+0x170/0x2a0 net/sched/sch_fq_pie.c:380
 call_timer_fn+0x1a0/0x6b0 kernel/time/timer.c:1474
 expire_timers kernel/time/timer.c:1519 [inline]
 __run_timers.part.0+0x674/0xa80 kernel/time/timer.c:1790
 __run_timers kernel/time/timer.c:1768 [inline]
 run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803
 __do_softirq+0x1d0/0x9c8 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:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:rcu_preempt_read_exit kernel/rcu/tree_plugin.h:382 [inline]
RIP: 0010:__rcu_read_unlock+0x2d/0x570 kernel/rcu/tree_plugin.h:421
Code: 55 41 54 55 65 48 8b 2c 25 80 6f 02 00 53 48 8d bd 3c 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 <48> 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 24 02 00 00 65
RSP: 0018:ffffc90000b87c58 EFLAGS: 00000a07
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff891cd30e RDI: ffff888017893f3c
RBP: ffff888017893b00 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000345
 rcu_read_unlock include/linux/rcupdate.h:770 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline]
 batadv_nc_worker+0x853/0xfa0 net/batman-adv/network-coding.c:719
 process_one_work+0x991/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.452 msecs
CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:pie_calculate_probability+0x1a5/0x7c0 net/sched/sch_pie.c:354
Code: 20 48 b8 82 be e0 12 01 00 00 00 48 89 fa 48 c1 ea 03 4c 0f af e0 48 b8 00 00 00 00 00 fc ff df 80 3c 02 00 0f 85 e4 05 00 00 <4c> 89 ea 4c 8b 7b 20 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80
RSP: 0018:ffffc90000157b40 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffff88806b81acc0 RCX: 0000000000000100
RDX: 1ffff1100d70359c RSI: ffffffff878c480f RDI: ffff88806b81ace0
RBP: 0000000225c17d04 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07d R12: 00000015798ee228
R13: ffff888017498300 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffddaac90a8 CR3: 0000000011aec000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 fq_pie_timer+0x170/0x2a0 net/sched/sch_fq_pie.c:380
 call_timer_fn+0x1a0/0x6b0 kernel/time/timer.c:1474
 expire_timers kernel/time/timer.c:1519 [inline]
 __run_timers.part.0+0x674/0xa80 kernel/time/timer.c:1790
 __run_timers kernel/time/timer.c:1768 [inline]
 run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1803
 __do_softirq+0x1d0/0x9c8 kernel/softirq.c:571
 run_ksoftirqd kernel/softirq.c:934 [inline]
 run_ksoftirqd+0x2d/0x60 kernel/softirq.c:926
 smpboot_thread_fn+0x645/0x9c0 kernel/smpboot.c:164
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (99):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2022/10/15 19:01 upstream 55be6084c8e0 67cb024c .config log report syz C INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2022/12/01 10:17 upstream ef4d3ea40565 4c2a66e8 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2022/11/24 03:41 upstream 4312098baf37 12c66417 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2022/11/05 00:13 upstream 10d916c86eca 6d752409 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/10/03 05:46 upstream a962b54e162c feb56351 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/09/29 03:26 upstream c3e0e1e23c70 e2556bc3 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/09/28 02:43 upstream 46452d3786a8 75c78242 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce 2022/09/25 21:47 upstream 105a36f3694e 0042f2b4 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/09/09 17:05 upstream 9b4509495418 356d8217 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/09/07 01:03 upstream d2ec799d1c1b 5fc30c37 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/09/04 19:33 upstream 7726d4c3e60b 28811d0a .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/08/28 14:00 upstream 10d4879f9ef0 07177916 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/08/26 22:32 upstream 3e5c673f0d75 e5a303f1 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/08/19 19:07 upstream 4c2d0b039c5c 26a13b38 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/08/17 08:30 upstream 7ebfc85e2cd7 4e72d229 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2022/08/05 15:21 upstream 200e340f2196 a65a7ce9 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/07/08 23:47 upstream a471da3100ef b5765a15 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/07/07 19:02 upstream e8a4e1c1bb69 bff65f44 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/06/27 20:11 upstream 03c765b0e3b4 ef82eb2c .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/06/22 23:55 upstream 3abc3ae553c7 912f5df7 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/06/13 15:45 upstream b13baccc3850 0d5abf15 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/05/09 20:45 upstream 9be9ed2612b5 8b277b8e .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/04/20 14:22 upstream 559089e0a93d 160a3f31 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/04/15 10:14 upstream 028192fea1de b17b2923 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/04/06 17:57 upstream 3e732ebf7316 97582466 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2022/04/02 16:26 upstream 88e6c0207623 79a2a8fc .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/03/22 00:54 upstream f443e374ae13 e2d91b1d .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2022/03/12 07:36 upstream 68453767131a 9e8eaa75 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/02/11 07:07 upstream f1baf68e1383 0b33604d .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2022/02/01 21:44 upstream 9f7fb8de5d9b c1c1631d .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2021/12/28 17:31 upstream a8ad9a2434dc 76c8cf06 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2021/12/23 10:40 upstream bc491fb12513 6caa12e4 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2021/12/22 20:37 upstream 3f066e882bf1 6caa12e4 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2021/12/15 19:05 upstream 5472f14a3742 572bcb40 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2021/12/10 21:13 upstream b8a98b6bf66a 49ca1f59 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2021/12/09 14:52 upstream 2a987e65025e b54aa474 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2021/12/01 12:01 upstream 58e1100fdc59 5fa3eacc .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2021/12/01 10:21 upstream 58e1100fdc59 5fa3eacc .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2021/12/01 05:56 upstream f080815fdb3e 80270552 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2021/11/28 22:46 upstream d06c942efea4 63eeac02 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2021/11/28 17:01 upstream 3498e7f2bb41 63eeac02 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2021/11/25 22:27 upstream b501b85957de 63eeac02 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2021/11/22 11:41 upstream 136057256686 4eb20a4e .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2021/10/28 12:41 upstream 1fc596a56b33 be531bb4 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-smack-root 2021/10/27 07:18 upstream d25f27432f80 d50eb50a .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2021/10/22 20:01 upstream 64222515138e 282f03fb .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2021/10/22 03:08 upstream 2f111a6fd5b5 55f90bc6 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2021/10/21 00:52 upstream 8e37395c3a5d f111d03b .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-selinux-root 2021/10/18 09:16 upstream cf52ad5ff16c 0c5d9412 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-bpf-kasan-gce 2021/06/29 17:22 bpf d6765985a42a 9d2ab5df .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-net-kasan-gce 2022/01/09 00:20 net-next 82192cb497f9 2ca0d385 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-bpf-next-kasan-gce 2021/09/20 23:34 bpf-next e57f52b42d1f af796c18 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-linux-next-kasan-gce-root 2022/11/24 05:53 linux-next 15f3bff12cf6 12c66417 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-linux-next-kasan-gce-root 2022/10/06 14:56 linux-next aaa11ce2ffc8 131b38ac .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-linux-next-kasan-gce-root 2022/06/12 21:09 linux-next 6d0c80680317 0d5abf15 .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-linux-next-kasan-gce-root 2022/04/25 23:44 linux-next e7d6987e09a3 152baedd .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-linux-next-kasan-gce-root 2022/04/25 20:58 linux-next e7d6987e09a3 152baedd .config log report info INFO: rcu detected stall in batadv_nc_worker
ci-upstream-kasan-gce-root 2020/12/31 16:10 upstream f6e1ea196492 79264ae3 .config log report info
ci-upstream-kasan-gce-smack-root 2020/08/06 00:31 upstream fffe3ae0ee84 0487ea6f .config log report
ci-upstream-kasan-gce-root 2020/05/10 07:00 upstream 1d3962ae3b3d 8742a2b9 .config log report
ci-upstream-kasan-gce-386 2020/07/13 03:50 upstream 4437dd6e8f71 9ebcc5b1 .config log report
ci-upstream-net-this-kasan-gce 2020/07/22 15:39 net 2c4dc3148603 128cd85f .config log report
* Struck through repros no longer work on HEAD.