syzbot


INFO: rcu detected stall in sys_clock_settime

Status: upstream: reported C repro on 2020/07/12 17:54
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+f3bd350a4124f10acdae@syzkaller.appspotmail.com
First crash: 1602d, last: 1d14h
Cause bisection: introduced by (bisect log) :
commit 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22
Author: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Date: Sat Sep 29 00:59:43 2018 +0000

  tc: Add support for configuring the taprio scheduler

Crash: INFO: rcu detected stall in corrupted (log)
Repro: C syz .config
  
Fix bisection the fix commit could be any of (bisect log):
  c636eef2ee36 Merge tag 'hwlock-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc
  ba816d3c265c Merge tag 'arm-soc-fixes-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
  
Discussions (1)
Title Replies (including bot) Last reply
INFO: rcu detected stall in sys_clock_settime 0 (2) 2020/07/19 17:16
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in sys_clock_settime 31 62d 589d 0/3 upstream: reported on 2023/04/11 17:25
linux-5.15 INFO: rcu detected stall in sys_clock_settime 25 40d 497d 0/3 upstream: reported on 2023/07/13 03:09
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/07/14 16:32 23m retest repro upstream OK log
2024/03/02 09:26 17m retest repro upstream report log
2023/12/23 05:31 15m retest repro upstream report log
2023/09/16 09:35 1h21m retest repro linux-next OK log
2023/09/15 12:51 22m retest repro linux-next OK log
2023/09/15 12:51 19m retest repro linux-next OK log
2023/09/15 12:51 24m retest repro linux-next OK log
2023/09/15 12:51 25m retest repro upstream OK log
2023/09/15 12:51 27m retest repro linux-next OK log
2023/09/13 23:38 23m retest repro upstream OK log
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2021/05/21 03:27 32m bisect fix upstream OK (2) job log
2021/04/05 17:17 28m bisect fix upstream OK (0) job log log
2021/03/01 08:16 28m bisect fix upstream OK (0) job log log
2021/02/07 12:03 0m bisect fix upstream error job log
2021/01/08 11:42 21m bisect fix upstream OK (0) job log log
2020/10/28 23:15 26m bisect fix upstream OK (0) job log log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=4bc4/1/0x4000000000000000 softirq=5852/5852 fqs=0
rcu: 	(detected by 0, t=10502 jiffies, g=5081, q=90 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5087 Comm: syz-executor184 Not tainted 6.7.0-rc3-syzkaller-00033-g3b47bc037bd4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:kasan_check_range+0x1a/0x190 mm/kasan/generic.c:186
Code: 5d 41 5c c3 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 48 85 f6 0f 84 48 01 00 00 48 89 f8 41 54 44 0f b6 c2 48 01 f0 55 <53> 0f 82 c6 00 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 f8 0f 83
RSP: 0018:ffffc900001f0bd8 EFLAGS: 00000096
RAX: ffffffff91f19e90 RBX: 0000000000000069 RCX: ffffffff8167db35
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff91f19e88
RBP: 0000000000000040 R08: 0000000000000000 R09: fffffbfff23e33d1
R10: ffffffff91f19e8f R11: 0000000000000001 R12: ffff88807cb24668
R13: ffff88807cb24661 R14: ffff88807cb24640 R15: 0000000000000002
FS:  0000555555b86380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000600 CR3: 000000002123f000 CR4: 0000000000350ef0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 __lock_acquire+0xec5/0x3b20 kernel/locking/lockdep.c:5107
 lock_acquire kernel/locking/lockdep.c:5754 [inline]
 lock_acquire+0x1ae/0x520 kernel/locking/lockdep.c:5719
 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0x36/0x50 kernel/locking/spinlock.c:170
 __run_hrtimer kernel/time/hrtimer.c:1692 [inline]
 __hrtimer_run_queues+0x2bd/0xc20 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline]
 __sysvec_apic_timer_interrupt+0x105/0x400 arch/x86/kernel/apic/apic.c:1082
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1076
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x70 kernel/locking/spinlock.c:194
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 f6 e6 e4 f6 48 89 df e8 5e 5e e5 f6 f7 c5 00 02 00 00 75 1f 9c 58 f6 c4 02 75 2f <bf> 01 00 00 00 e8 75 17 d7 f6 65 8b 05 46 97 80 75 85 c0 74 12 5b
RSP: 0018:ffffc90003a3fcb8 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffff8880b982b940 RCX: 1ffffffff23e3516
RDX: 0000000000000000 RSI: ffffffff8accb7e0 RDI: ffffffff8b2f0dc0
RBP: 0000000000000282 R08: 0000000000000001 R09: fffffbfff23e33d0
R10: ffffffff91f19e87 R11: 0000000000000002 R12: 0000000000000004
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
 clock_was_set+0x592/0x850 kernel/time/hrtimer.c:972
 do_settimeofday64+0x3b7/0x5c0 kernel/time/timekeeping.c:1345
 do_sys_settimeofday64+0x1dc/0x260 kernel/time/time.c:195
 __do_sys_clock_settime kernel/time/posix-timers.c:1129 [inline]
 __se_sys_clock_settime kernel/time/posix-timers.c:1113 [inline]
 __x64_sys_clock_settime+0x1bc/0x290 kernel/time/posix-timers.c:1113
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f1877331e69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 19 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:00007fff1cee0d08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f1877331e69
RDX: 00007f1877331e69 RSI: 0000000020000080 RDI: 0000000000000000
RBP: 00000000000f4240 R08: 0000000100000000 R09: 0000000100000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff1cee0d60
R13: 0000000000000001 R14: 00007fff1cee0d60 R15: 0000000000000003
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.043 msecs
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g5081 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=5977
rcu: rcu_preempt kthread starved for 10502 jiffies! g5081 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:28752 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0xedb/0x5af0 kernel/sched/core.c:6688
 __schedule_loop kernel/sched/core.c:6763 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6778
 schedule_timeout+0x137/0x290 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x1ec/0xb10 kernel/rcu/tree.c:1631
 rcu_gp_kthread+0x24b/0x380 kernel/rcu/tree.c:1830
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (334):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/30 20:34 upstream 3b47bc037bd4 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2020/08/12 16:29 upstream c636eef2ee36 bb3e5fe6 .config console log report syz C ci-upstream-kasan-gce-root
2020/08/06 07:29 upstream fffe3ae0ee84 0487ea6f .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/07/28 18:43 upstream 92ed30191993 cb93dc6a .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/07/24 04:03 upstream d15be546031c 70c104a1 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/07/15 10:24 upstream e9919e11e219 609fb517 .config console log report syz C ci-upstream-kasan-gce-root
2020/07/09 17:20 upstream 0bddd227f3dc bc238812 .config console log report syz C ci-upstream-kasan-gce-root
2020/07/09 10:05 upstream 0bddd227f3dc bc238812 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/07/09 08:44 upstream 0bddd227f3dc bc238812 .config console log report syz C ci-upstream-kasan-gce-root
2020/07/09 07:14 upstream 0bddd227f3dc bc238812 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/07/08 20:29 upstream 7cc2a8ea1048 51095195 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/07/08 17:45 upstream 7cc2a8ea1048 51095195 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/08/03 15:43 linux-next 01830e6c042e 196277c4 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/20 06:35 linux-next 4c43049f19a2 9c812472 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/13 05:06 linux-next d31958b30ea3 9ebcc5b1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/11 16:34 linux-next d31958b30ea3 18d18b59 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/11 08:56 linux-next d31958b30ea3 18d18b59 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2024/11/19 16:02 upstream 158f238aa69d 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/11/17 19:40 upstream f66d6acccbc0 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/11/16 10:43 upstream f868cd251776 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_clock_settime
2024/11/13 22:54 upstream f1b785f4c787 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/11/08 20:20 upstream 906bd684e4b1 179b040e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_clock_settime
2024/11/08 05:51 upstream 906bd684e4b1 c069283c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/11/03 20:22 upstream b9021de3ec2f f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/10/30 13:24 upstream c1e939a21eb1 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/10/29 10:01 upstream e42b1a9a2557 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/10/28 18:01 upstream 819837584309 9efb3cc7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/10/24 16:03 upstream c2ee9f594da8 9fc8fe02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/10/20 19:05 upstream 715ca9dd687f cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/10/12 16:21 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/10/09 22:37 upstream b983b271662b 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/10/06 11:39 upstream 8f602276d390 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/10/05 09:15 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/10/03 12:14 upstream 7ec462100ef9 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/09/30 07:47 upstream 9852d85ec9d4 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/09/19 00:38 upstream 4a39ac5b7d62 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/09/18 11:18 upstream bdf56c7580d2 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/09/17 03:43 upstream a430d95c5efa c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/09/11 21:41 upstream 7c6a3a65ace7 d94c83d8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/09/10 20:02 upstream 8d8d276ba2fb 79eef296 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/09/10 06:17 upstream bc83b4d1f086 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/08/28 22:40 upstream 928f79a188aa 940f38c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/08/22 13:35 upstream 872cf28b8df9 295a4b50 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/08/18 20:43 upstream c3f2d783a459 dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/08/17 10:09 upstream e5fa841af679 dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/08/11 19:43 upstream cb2e5ee8e7a0 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/08/10 00:22 upstream ee9a43b7cfe2 a9e7e9e3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_clock_settime
2024/08/08 19:51 upstream 6a0e38264012 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/08/07 13:03 upstream d4560686726f 7b2f2f35 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/08/07 12:58 upstream d4560686726f 7b2f2f35 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/08/07 10:17 upstream d4560686726f e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_clock_settime
2024/07/29 18:04 upstream dc1c8034e31b 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_clock_settime
2024/07/25 19:22 upstream c33ffdb70cc6 32fcf98f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/07/25 10:01 upstream c33ffdb70cc6 b24754ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/07/17 12:24 upstream 51835949dda3 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/06/30 13:49 upstream 8282d5af7be8 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_clock_settime
2024/06/19 16:52 upstream 2ccbdf43d5e7 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/06/13 01:53 upstream cea2a26553ac 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/11/18 13:33 linux-next ae58226b89ac 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/07/28 03:14 linux-next 668d33c9ff92 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/07/23 02:42 linux-next 41c196e567fb f063dfd9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/07/17 16:42 linux-next 797012914d2d 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/07/15 04:03 linux-next 3fe121b62282 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/06/13 13:31 linux-next a957267fa7e9 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2024/06/06 01:49 linux-next 234cb065ad82 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_clock_settime
2020/07/02 15:56 upstream cd77006e01b3 bed10395 .config console log report ci-upstream-kasan-gce-selinux-root
2020/12/09 06:52 linux-next a9e26cb5f261 40cc414d .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.