syzbot


INFO: rcu detected stall in sys_rename (5)

Status: auto-obsoleted due to no activity on 2024/02/25 12:55
Subsystems: fs
[Documentation on labels]
First crash: 218d, last: 156d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_rename (2) kernel 2 1575d 1575d 0/26 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_rename (4) fs 1 547d 547d 0/26 auto-obsoleted due to no activity on 2023/02/25 08:48
upstream INFO: rcu detected stall in sys_rename (3) fs 3 648d 722d 0/26 auto-obsoleted due to no activity on 2022/10/21 16:10
linux-5.15 INFO: rcu detected stall in sys_rename 1 208d 208d 0/3 auto-obsoleted due to no activity on 2024/01/14 17:35
upstream INFO: rcu detected stall in sys_rename kernel 9 1610d 1612d 0/26 closed as invalid on 2019/12/04 14:14
android-5-15 BUG: soft lockup in sys_rename 1 3d05h 3d05h 0/2 premoderation: reported on 2024/04/28 23:41

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (1 GPs behind) idle=d9b4/1/0x4000000000000000 softirq=112787/112788 fqs=0
rcu: 	(t=14736 jiffies g=176801 q=70 ncpus=2)
rcu: rcu_preempt kthread timer wakeup didn't happen for 14735 jiffies! g176801 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=174999
rcu: rcu_preempt kthread starved for 14736 jiffies! g176801 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:24968 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x196c/0x4af0 kernel/sched/core.c:6695
 schedule+0xc3/0x180 kernel/sched/core.c:6771
 schedule_timeout+0x1bd/0x300 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1613
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1812
 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:304
 </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: 30333 Comm: udevd Not tainted 6.6.0-rc3-syzkaller-00025-g50768a425b46 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:__lock_acquire+0x1205/0x7f70 kernel/locking/lockdep.c:5132
Code: 48 c1 e8 03 49 b8 00 00 00 00 00 fc ff df 42 0f b6 04 00 84 c0 0f 85 50 0f 00 00 83 3d 83 2b 82 10 00 0f 84 4b 03 00 00 31 db <48> 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 00 00 74 12 48 89 df e8
RSP: 0018:ffffc900001f0700 EFLAGS: 00000002
RAX: 00000000000052e0 RBX: ffffffff903d6560 RCX: ffffffff816d0629
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff906fb388
RBP: ffffc900001f09c8 R08: dffffc0000000000 R09: 1ffffffff20df671
R10: dffffc0000000000 R11: fffffbfff20df672 R12: 00000000e9c29562
R13: ffff8880870e8ac0 R14: 00000000daa19235 R15: ffff8880870e8bb0
FS:  00007fb9631bac80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ff21000 CR3: 0000000020084000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5753
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162
 debug_object_activate+0x163/0x530 lib/debugobjects.c:717
 debug_hrtimer_activate kernel/time/hrtimer.c:422 [inline]
 debug_activate kernel/time/hrtimer.c:477 [inline]
 enqueue_hrtimer+0x30/0x310 kernel/time/hrtimer.c:1087
 __run_hrtimer kernel/time/hrtimer.c:1705 [inline]
 __hrtimer_run_queues+0x6c0/0xd10 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline]
 __sysvec_apic_timer_interrupt+0x104/0x390 arch/x86/kernel/apic/apic.c:1080
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1074
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:seqcount_lockdep_reader_access+0x5/0x220 include/linux/seqlock.h:97
Code: 44 24 60 75 1b 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ac 96 10 00 0f 0b e9 35 fc ff ff e8 80 c8 4f 09 f3 0f 1e fa 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 80 00 00
RSP: 0018:ffffc9000a6af968 EFLAGS: 00000a06
RAX: 1ffff920014d5f41 RBX: ffffc9000a6afa00 RCX: ffff8880870e8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000a6afa00
RBP: ffffc9000a6afa68 R08: ffffc9000a6afa0f R09: 0000000000000000
R10: ffffc9000a6afa00 R11: fffff520014d5f42 R12: ffff888025447230
R13: ffff888025447230 R14: ffffc9000a6afa00 R15: ffffc9000a6afa08
 ktime_get_coarse_real_ts64+0x3a/0x120 kernel/time/timekeeping.c:2261
 current_time fs/inode.c:2525 [inline]
 inode_set_ctime_current+0x8f/0x2f0 fs/inode.c:2539
 shmem_unlink+0x1d9/0x2e0 mm/shmem.c:3343
 shmem_rename2+0x218/0x330 mm/shmem.c:3424
 vfs_rename+0xaba/0xde0 fs/namei.c:4860
 do_renameat2+0xd78/0x1660 fs/namei.c:5012
 __do_sys_rename fs/namei.c:5058 [inline]
 __se_sys_rename fs/namei.c:5056 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:5056
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb962c9a93b
Code: 48 8b 15 f0 64 15 00 83 c8 ff 64 83 3a 15 75 0e 48 8b 7c 24 08 e8 d5 d4 07 00 f7 d8 19 c0 48 83 c4 18 c3 b8 52 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 be 64 15 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc75871dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb962c9a93b
RDX: 0000559cc2b08043 RSI: 00007ffc75871de8 RDI: 00007ffc758721e8
RBP: 000055999b291e10 R08: 0000000000000006 R09: 913d044e5b550998
R10: 00000000000001b6 R11: 0000000000000202 R12: 000055999b2930f0
R13: 00007ffc75871de8 R14: 00007ffc758721e8 R15: 000055999a765160
 </TASK>
CPU: 0 PID: 30912 Comm: syz-executor.3 Not tainted 6.6.0-rc3-syzkaller-00025-g50768a425b46 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 ae b6 10 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> e3 a9 88 f6 65 8b 05 e4 f2 2b 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc90018037b40 EFLAGS: 00000206
RAX: 411e2948d6783e00 RBX: 1ffff92003006f6c RCX: ffffffff91ef3303
RDX: dffffc0000000000 RSI: ffffffff8b0aa420 RDI: 0000000000000001
RBP: ffffc90018037bd0 R08: ffffffff8e9a78af R09: 1ffffffff1d34f15
R10: dffffc0000000000 R11: fffffbfff1d34f16 R12: dffffc0000000000
R13: 1ffff92003006f68 R14: ffffc90018037b60 R15: 0000000000000246
FS:  00007f72742476c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f727359d988 CR3: 000000003d5ba000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 do_adjtimex+0x6a6/0xab0 kernel/time/timekeeping.c:2470
 do_clock_adjtime kernel/time/posix-timers.c:1159 [inline]
 __do_sys_clock_adjtime kernel/time/posix-timers.c:1171 [inline]
 __se_sys_clock_adjtime kernel/time/posix-timers.c:1162 [inline]
 __x64_sys_clock_adjtime+0x1e0/0x290 kernel/time/posix-timers.c:1162
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f727347cae9
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:00007f72742470c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000131
RAX: ffffffffffffffda RBX: 00007f727359bf80 RCX: 00007f727347cae9
RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000000
RBP: 00007f72734c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f727359bf80 R15: 00007ffe23b19fe8
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 30333 Comm: udevd Not tainted 6.6.0-rc3-syzkaller-00025-g50768a425b46 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:lock_is_held_type+0x5/0x190 kernel/locking/lockdep.c:5809
Code: 75 d6 48 c7 c7 c0 a2 0a 8b 48 c7 c6 00 a3 0a 8b e8 c0 f0 86 f6 0f 0b eb bf e8 97 fc ff ff 0f 1f 80 00 00 00 00 f3 0f 1e fa 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:ffffc900001f0c80 EFLAGS: 00000002
RAX: 0000000080010001 RBX: 0000000000000001 RCX: ffff8880870e8000
RDX: ffff8880870e8000 RSI: 00000000ffffffff RDI: ffff888080884300
RBP: ffff88807baa8000 R08: ffffffff88eade1e R09: fffff5200003e180
R10: dffffc0000000000 R11: fffff5200003e180 R12: 0000000000000002
R13: ffffffff88eadd60 R14: ffff888080884340 R15: dffffc0000000000
FS:  00007fb9631bac80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ff21000 CR3: 0000000020084000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_is_held include/linux/lockdep.h:288 [inline]
 advance_sched+0xd0/0xcb0 net/sched/sch_taprio.c:936
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x59f/0xd10 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline]
 __sysvec_apic_timer_interrupt+0x104/0x390 arch/x86/kernel/apic/apic.c:1080
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1074
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:seqcount_lockdep_reader_access+0x5/0x220 include/linux/seqlock.h:97
Code: 44 24 60 75 1b 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ac 96 10 00 0f 0b e9 35 fc ff ff e8 80 c8 4f 09 f3 0f 1e fa 55 <48> 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 80 00 00
RSP: 0018:ffffc9000a6af968 EFLAGS: 00000a06
RAX: 1ffff920014d5f41 RBX: ffffc9000a6afa00 RCX: ffff8880870e8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000a6afa00
RBP: ffffc9000a6afa68 R08: ffffc9000a6afa0f R09: 0000000000000000
R10: ffffc9000a6afa00 R11: fffff520014d5f42 R12: ffff888025447230
R13: ffff888025447230 R14: ffffc9000a6afa00 R15: ffffc9000a6afa08
 ktime_get_coarse_real_ts64+0x3a/0x120 kernel/time/timekeeping.c:2261
 current_time fs/inode.c:2525 [inline]
 inode_set_ctime_current+0x8f/0x2f0 fs/inode.c:2539
 shmem_unlink+0x1d9/0x2e0 mm/shmem.c:3343
 shmem_rename2+0x218/0x330 mm/shmem.c:3424
 vfs_rename+0xaba/0xde0 fs/namei.c:4860
 do_renameat2+0xd78/0x1660 fs/namei.c:5012
 __do_sys_rename fs/namei.c:5058 [inline]
 __se_sys_rename fs/namei.c:5056 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:5056
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb962c9a93b
Code: 48 8b 15 f0 64 15 00 83 c8 ff 64 83 3a 15 75 0e 48 8b 7c 24 08 e8 d5 d4 07 00 f7 d8 19 c0 48 83 c4 18 c3 b8 52 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 be 64 15 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc75871dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb962c9a93b
RDX: 0000559cc2b08043 RSI: 00007ffc75871de8 RDI: 00007ffc758721e8
RBP: 000055999b291e10 R08: 0000000000000006 R09: 913d044e5b550998
R10: 00000000000001b6 R11: 0000000000000202 R12: 000055999b2930f0
R13: 00007ffc75871de8 R14: 00007ffc758721e8 R15: 000055999a765160
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/26 21:56 upstream 50768a425b46 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_rename
2023/11/27 12:54 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3396b3372e61 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_rename
* Struck through repros no longer work on HEAD.