syzbot


INFO: rcu detected stall in sys_clock_nanosleep

Status: auto-obsoleted due to no activity on 2023/07/17 12:13
Reported-by: syzbot+417ff41f1060fee555c2@syzkaller.appspotmail.com
First crash: 395d, last: 395d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sys_clock_nanosleep 1 219d 219d 0/3 auto-obsoleted due to no activity on 2023/12/20 18:13
linux-6.1 INFO: rcu detected stall in sys_clock_nanosleep (2) 2 33d 98d 0/3 upstream: reported on 2024/01/10 22:07
upstream INFO: rcu detected stall in sys_clock_nanosleep (5) kernel C error done 24 10h39m 244d 0/26 upstream: reported C repro on 2023/08/17 09:25
upstream INFO: rcu detected stall in sys_clock_nanosleep (4) kernel 6 568d 688d 0/26 auto-obsoleted due to no activity on 2022/12/31 21:43
upstream INFO: rcu detected stall in sys_clock_nanosleep (3) kernel 3 865d 875d 0/26 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_clock_nanosleep kernel 1 1120d 1120d 0/26 auto-closed as invalid on 2021/06/22 18:23
upstream INFO: rcu detected stall in sys_clock_nanosleep (2) kernel 1 998d 998d 0/26 auto-closed as invalid on 2021/10/22 22:53
linux-5.15 INFO: rcu detected stall in sys_clock_nanosleep (2) 2 22d 95d 0/3 upstream: reported on 2024/01/13 21:31

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=ca4c/1/0x4000000000000000 softirq=88185/88185 fqs=0
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P27660/1:b..l
	(detected by 1, t=10502 jiffies, g=138297, q=77 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3682 Comm: syz-executor.3 Not tainted 6.1.20-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:lock_is_held_type+0x1/0x180 kernel/locking/lockdep.c:5697
Code: 75 d6 48 c7 c7 c0 d1 eb 8a 48 c7 c6 00 d2 eb 8a e8 54 59 c8 f6 0f 0b eb bf e8 ab fd ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 55 <41> 57 41 56 41 55 41 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00
RSP: 0018:ffffc90000007a90 EFLAGS: 00000002
RAX: 1ffffffff19e5801 RBX: 1ffff92000000f54 RCX: 0000000080010001
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8cf27220
RBP: ffffc90000007b30 R08: dffffc0000000000 R09: fffffbfff1ca5dae
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000f70
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000000000
FS:  00005555563aa400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff02b224100 CR3: 000000003e170000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lock_is_held include/linux/lockdep.h:283 [inline]
 rcu_read_lock_sched_held+0x89/0x130 kernel/rcu/update.c:125
 trace_lock_acquire include/trace/events/lock.h:24 [inline]
 lock_acquire+0x12f/0x630 kernel/locking/lockdep.c:5640
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:306
 rcu_read_lock include/linux/rcupdate.h:747 [inline]
 advance_sched+0x6ce/0x940 net/sched/sch_taprio.c:753
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x670/0x1020 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x198/0x680 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8c/0xb0 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:__x64_sys_clock_nanosleep+0x0/0xa0 kernel/time/posix-timers.c:1254
Code: 48 8b 0c 25 28 00 00 00 48 3b 4c 24 40 75 0f 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 17 71 0e 09 0f 1f 80 00 00 00 00 <41> 57 41 56 41 55 41 54 53 48 89 fb 49 bd 00 00 00 00 00 fc ff df
RSP: 0018:ffffc9000481ff28 EFLAGS: 00000202
RAX: 00000000000000e6 RBX: ffffc9000481ff30 RCX: 00000000000000e6
RDX: dffffc0000000000 RSI: ffffffff8aebd320 RDI: ffffc9000481ff58
RBP: ffffc9000481ff48 R08: dffffc0000000000 R09: fffffbfff1ca5dae
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc9000481ff58 R15: 0000000000000000
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbd094b0e21
Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 aa e7 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 e3 e7 ff ff 48 8b 04 24 eb 97 66 2e 0f 1f
RSP: 002b:00007ffe76fe58f0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 0000000000000c83 RCX: 00007fbd094b0e21
RDX: 00007ffe76fe5930 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffe76fe59bc R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 0000000000132e45 R14: 0000000000000001 R15: 00007ffe76fe5a20
 </TASK>
task:syz-executor.4  state:R  running task     stack:28104 pid:27660 ppid:3673   flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5238 [inline]
 __schedule+0x1391/0x4390 kernel/sched/core.c:6551
 preempt_schedule_common+0x83/0xd0 kernel/sched/core.c:6720
 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6744
 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x36/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:390 [inline]
 filemap_map_pages+0xf30/0x11f0 mm/filemap.c:3407
 do_fault_around mm/memory.c:4518 [inline]
 do_read_fault mm/memory.c:4544 [inline]
 do_fault mm/memory.c:4678 [inline]
 handle_pte_fault mm/memory.c:4950 [inline]
 __handle_mm_fault mm/memory.c:5092 [inline]
 handle_mm_fault+0x32d1/0x5140 mm/memory.c:5213
 do_user_addr_fault arch/x86/mm/fault.c:1428 [inline]
 handle_page_fault arch/x86/mm/fault.c:1519 [inline]
 exc_page_fault+0x655/0x860 arch/x86/mm/fault.c:1575
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x7ff02b224100
RSP: 002b:00007fff1b8ebeb8 EFLAGS: 00010246
RAX: 00007fff1b8ec5d0 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 00007fff1b8ec5b0 RSI: 0000000000000025 RDI: 00007ff02b2e7a5b
RBP: 00007fff1b8ec410 R08: 0000000000000000 R09: 00007fff1b8ec520
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff1b8ec430
R13: 00007ff02b2e7a5b R14: 00007fff1b8ec5b0 R15: 00000000fbad8001
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g138297 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=58704
rcu: rcu_preempt kthread starved for 10502 jiffies! g138297 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=0
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:26712 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5238 [inline]
 __schedule+0x1391/0x4390 kernel/sched/core.c:6551
 schedule+0xbf/0x180 kernel/sched/core.c:6627
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x2c2/0x1010 kernel/rcu/tree.c:1660
 rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1859
 kthread+0x268/0x300 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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3682 Comm: syz-executor.3 Not tainted 6.1.20-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:lock_acquire+0x60/0x630 kernel/locking/lockdep.c:5637
Code: 04 25 28 00 00 00 48 89 84 24 00 01 00 00 49 bd 00 00 00 00 00 fc ff df 48 c7 44 24 40 b3 8a b5 41 48 c7 44 24 48 f8 49 78 8c <48> c7 44 24 50 20 40 6a 81 4c 8d 64 24 40 49 c1 ec 03 48 b8 f1 f1
RSP: 0018:ffffc90000007ae0 EFLAGS: 00000082
RAX: 3a1cae687b1ea200 RBX: 1ffff92000000f8c RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff91d1a210
RBP: ffffc90000007c28 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000046
R13: dffffc0000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  00005555563aa400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff02b224100 CR3: 000000003e170000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 debug_object_deactivate+0x61/0x3f0 lib/debugobjects.c:739
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate+0x1d/0x360 kernel/time/hrtimer.c:481
 __run_hrtimer kernel/time/hrtimer.c:1653 [inline]
 __hrtimer_run_queues+0x334/0x1020 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x198/0x680 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8c/0xb0 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:__x64_sys_clock_nanosleep+0x0/0xa0 kernel/time/posix-timers.c:1254
Code: 48 8b 0c 25 28 00 00 00 48 3b 4c 24 40 75 0f 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 17 71 0e 09 0f 1f 80 00 00 00 00 <41> 57 41 56 41 55 41 54 53 48 89 fb 49 bd 00 00 00 00 00 fc ff df
RSP: 0018:ffffc9000481ff28 EFLAGS: 00000202
RAX: 00000000000000e6 RBX: ffffc9000481ff30 RCX: 00000000000000e6
RDX: dffffc0000000000 RSI: ffffffff8aebd320 RDI: ffffc9000481ff58
RBP: ffffc9000481ff48 R08: dffffc0000000000 R09: fffffbfff1ca5dae
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffffc9000481ff58 R15: 0000000000000000
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbd094b0e21
Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 aa e7 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 e3 e7 ff ff 48 8b 04 24 eb 97 66 2e 0f 1f
RSP: 002b:00007ffe76fe58f0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 0000000000000c83 RCX: 00007fbd094b0e21
RDX: 00007ffe76fe5930 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffe76fe59bc R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 0000000000132e45 R14: 0000000000000001 R15: 00007ffe76fe5a20
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/19 12:13 linux-6.1.y 7eaef76fbc46 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_clock_nanosleep
* Struck through repros no longer work on HEAD.