syzbot


INFO: rcu detected stall in sys_timerfd_settime (3)

Status: auto-obsoleted due to no activity on 2024/04/09 00:01
Subsystems: fs
[Documentation on labels]
First crash: 303d, last: 250d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sys_timerfd_settime (2) 3 41d 81d 0/3 upstream: reported on 2024/06/27 06:29
upstream INFO: rcu detected stall in sys_timerfd_settime fs 3 1039d 1106d 0/28 closed as invalid on 2022/02/08 09:50
upstream INFO: rcu detected stall in sys_timerfd_settime (4) fs 1 156d 156d 0/28 auto-obsoleted due to no activity on 2024/06/12 13:14
upstream INFO: rcu detected stall in sys_timerfd_settime (2) net 1 608d 608d 0/28 auto-obsoleted due to no activity on 2023/04/25 06:19
linux-5.15 INFO: rcu detected stall in sys_timerfd_settime 1 460d 460d 0/3 auto-obsoleted due to no activity on 2023/09/22 02:06
linux-6.1 INFO: rcu detected stall in sys_timerfd_settime 1 452d 452d 0/3 auto-obsoleted due to no activity on 2023/09/29 23:03

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=62b4/1/0x4000000000000000 softirq=95310/95310 fqs=0
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P1664/1:b..l P1661/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=149233, q=80 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 1671 Comm: syz-executor.0 Not tainted 6.7.0-syzkaller-01193-g6c1dd1fe5d8a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:cpu_max_bits_warn include/linux/cpumask.h:143 [inline]
RIP: 0010:cpumask_check include/linux/cpumask.h:150 [inline]
RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:504 [inline]
RIP: 0010:cpu_online include/linux/cpumask.h:1104 [inline]
RIP: 0010:trace_hrtimer_start include/trace/events/timer.h:222 [inline]
RIP: 0010:debug_activate kernel/time/hrtimer.c:478 [inline]
RIP: 0010:enqueue_hrtimer+0x41/0x320 kernel/time/hrtimer.c:1087
Code: 00 00 fc ff df e8 0f 08 11 00 4c 89 f7 48 c7 c6 40 9a 6c 8b e8 b0 1d 0f 03 0f 1f 44 00 00 e8 f6 07 11 00 65 8b 2d 7b d5 85 7e <bf> 07 00 00 00 89 ee e8 93 0b 11 00 83 fd 07 0f 87 09 01 00 00 e8
RSP: 0018:ffffc900001f0d28 EFLAGS: 00000046
RAX: ffffffff817de94a RBX: 0000000000000000 RCX: ffff888033278000
RDX: 0000000000010002 RSI: 0000000000000004 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffff927be81b R09: 1ffffffff24f7d03
R10: dffffc0000000000 R11: fffffbfff24f7d04 R12: dffffc0000000000
R13: ffff8880b992bf80 R14: ffff888020783340 R15: dffffc0000000000
FS:  00007fe09788b6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe096af166b CR3: 0000000028a8d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1705 [inline]
 __hrtimer_run_queues+0x6c0/0xd20 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline]
 __sysvec_apic_timer_interrupt+0x104/0x3a0 arch/x86/kernel/apic/apic.c:1082
 sysvec_apic_timer_interrupt+0x92/0xb0 arch/x86/kernel/apic/apic.c:1076
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202
Code: 00 f3 0f 1e fa 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 2a fc 48 f6 48 89 df e8 b2 36 4a f6 e8 3d 17 71 f6 fb bf 01 00 00 00 <e8> 02 55 3c f6 65 8b 05 73 17 df 74 85 c0 74 02 5b c3 e8 c0 df db
RSP: 0018:ffffc9000550fd00 EFLAGS: 00000286
RAX: c5d69316051a5200 RBX: ffff8880386b5888 RCX: ffffffff8195bdbc
RDX: dffffc0000000000 RSI: ffffffff8bbe08e0 RDI: 0000000000000001
RBP: 00000000ffffff83 R08: ffffffff8f0101ef R09: 1ffffffff1e0203d
R10: dffffc0000000000 R11: fffffbfff1e0203e R12: ffff8880386b5800
R13: 7fffffffffffffff R14: ffff8880386b5880 R15: 0000000000000003
 spin_unlock_irq include/linux/spinlock.h:401 [inline]
 do_timerfd_settime+0xd1d/0x1000 fs/timerfd.c:521
 __do_sys_timerfd_settime fs/timerfd.c:567 [inline]
 __se_sys_timerfd_settime fs/timerfd.c:558 [inline]
 __x64_sys_timerfd_settime+0x16f/0x220 fs/timerfd.c:558
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fe096a7cd29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe09788b0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011e
RAX: ffffffffffffffda RBX: 00007fe096babf80 RCX: 00007fe096a7cd29
RDX: 0000000020000000 RSI: 0000000000000003 RDI: 0000000000000003
RBP: 00007fe096ac947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fe096babf80 R15: 00007ffcfb8fc698
 </TASK>
task:syz-executor.3  state:R  running task     stack:26000 pid:1661  tgid:1659  ppid:5097   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0x177f/0x4960 kernel/sched/core.c:6726
 preempt_schedule_irq+0xfb/0x1b0 kernel/sched/core.c:7046
 irqentry_exit+0x5a/0x80 kernel/entry/common.c:348
 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:654
RIP: 0010:xas_find+0x2a4/0xaa0 lib/xarray.c:1253
Code: 89 ef e8 bf a9 d5 f6 eb a5 48 89 e8 48 c1 e8 03 42 0f b6 04 30 84 c0 0f 85 47 07 00 00 0f b6 6d 00 31 ff 89 ee e8 4c 2b 79 f6 <85> ed 74 0a e8 b3 28 79 f6 e9 06 01 00 00 4c 89 f0 48 8b 4c 24 18
RSP: 0018:ffffc90005757648 EFLAGS: 00000297
RAX: 0000000000000002 RBX: fffffffffffffffe RCX: ffff888039139dc0
RDX: ffff888039139dc0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff8b15c884 R09: ffffffff8b15c6e0
R10: 0000000000000002 R11: ffff888039139dc0 R12: 00000000000000c8
R13: ffffc90005757778 R14: dffffc0000000000 R15: 1ffff92000aeaeef
 find_get_entry mm/filemap.c:1958 [inline]
 find_lock_entries+0x28b/0x1110 mm/filemap.c:2059
 shmem_undo_range+0x2b2/0x1da0 mm/shmem.c:986
 shmem_truncate_range mm/shmem.c:1113 [inline]
 shmem_evict_inode+0x29b/0xa60 mm/shmem.c:1241
 evict+0x2a4/0x630 fs/inode.c:666
 __dentry_kill+0x436/0x660 fs/dcache.c:609
 dentry_kill+0xbb/0x290
 dput+0x21e/0x470 fs/dcache.c:915
 __fput+0x672/0x890 fs/file_table.c:390
 task_work_run+0x24a/0x300 kernel/task_work.c:180
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:108 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline]
 syscall_exit_to_user_mode+0x167/0x370 kernel/entry/common.c:212
 do_syscall_64+0x102/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f63cc47ca8b
RSP: 002b:00007f63cd114e90 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: ffffffffffffffff RCX: 00007f63cc47ca8b
RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000004
RBP: 0000000000000010 R08: 00007f63cd114f80 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 00007f63cd114f40 R14: 0000000000000bf0 R15: 0000000020000c80
 </TASK>
task:syz-executor.5  state:R  running task     stack:24688 pid:1664  tgid:1657  ppid:5085   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0x177f/0x4960 kernel/sched/core.c:6726
 preempt_schedule_common+0x83/0xc0 kernel/sched/core.c:6903
 preempt_schedule+0xdd/0xf0 kernel/sched/core.c:6927
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:45
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x3a/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 wp_page_copy mm/memory.c:3244 [inline]
 do_wp_page+0x1e34/0x4c80 mm/memory.c:3525
 handle_pte_fault mm/memory.c:5160 [inline]
 __handle_mm_fault+0x26a3/0x72b0 mm/memory.c:5285
 handle_mm_fault+0x27e/0x770 mm/memory.c:5450
 do_user_addr_fault arch/x86/mm/fault.c:1415 [inline]
 handle_page_fault arch/x86/mm/fault.c:1507 [inline]
 exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1563
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:rep_movs_alternative+0x4a/0x70 arch/x86/lib/copy_user_64.S:71
Code: 75 f1 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 48 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb c9 <f3> a4 c3 48 89 c8 48 c1 e9 03 83 e0 07 f3 48 a5 89 c1 85 c9 75 b3
RSP: 0018:ffffc900056df958 EFLAGS: 00050206
RAX: ffff88801079d001 RBX: 0000000020167e80 RCX: 0000000000000e80
RDX: 0000000000000000 RSI: ffff88801079d180 RDI: 0000000020168000
RBP: ffffc900056dfad8 R08: ffff88801079dfff R09: 1ffff110020f3bff
R10: dffffc0000000000 R11: ffffed10020f3c00 R12: 0000000000001000
R13: 0000000000001000 R14: ffffc900056dfe10 R15: ffff88801079d000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline]
 copy_to_user_iter lib/iov_iter.c:25 [inline]
 iterate_iovec include/linux/iov_iter.h:51 [inline]
 iterate_and_advance2 include/linux/iov_iter.h:247 [inline]
 iterate_and_advance include/linux/iov_iter.h:271 [inline]
 _copy_to_iter+0x4a0/0x1cf0 lib/iov_iter.c:186
 copy_page_to_iter+0xb1/0x160 lib/iov_iter.c:381
 process_vm_rw_pages mm/process_vm_access.c:45 [inline]
 process_vm_rw_single_vec mm/process_vm_access.c:118 [inline]
 process_vm_rw_core mm/process_vm_access.c:216 [inline]
 process_vm_rw+0x870/0xcf0 mm/process_vm_access.c:284
 __do_sys_process_vm_readv mm/process_vm_access.c:296 [inline]
 __se_sys_process_vm_readv mm/process_vm_access.c:292 [inline]
 __x64_sys_process_vm_readv+0xe0/0xf0 mm/process_vm_access.c:292
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fcd72a7cd29
RSP: 002b:00007fcd737240c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 00007fcd72babf80 RCX: 00007fcd72a7cd29
RDX: 0000000000000002 RSI: 0000000020008400 RDI: 0000000000000fe2
RBP: 00007fcd72ac947a R08: 0000000000000286 R09: 0000000000000000
R10: 0000000020008640 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fcd72babf80 R15: 00007fffbe1ac558
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g149233 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=115619
rcu: rcu_preempt kthread starved for 10502 jiffies! g149233 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:27248 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0x177f/0x4960 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6816
 schedule_timeout+0x1bd/0x300 kernel/time/timer.c:2183
 rcu_gp_fqs_loop+0x30a/0x1500 kernel/rcu/tree.c:1631
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1830
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/09 23:52 upstream 6c1dd1fe5d8a b438bd66 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_timerfd_settime
2023/11/18 09:59 upstream 791c8ab095f7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_timerfd_settime
* Struck through repros no longer work on HEAD.