syzbot


INFO: rcu detected stall in dput (2)

Status: upstream: reported on 2024/05/28 13:43
Reported-by: syzbot+883c06f8852b37453ea8@syzkaller.appspotmail.com
First crash: 20d, last: 10d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in dput (4) kvm C error error 2 921d 1280d 0/27 closed as invalid on 2022/02/08 10:37
upstream INFO: rcu detected stall in dput (3) kernel 1 1623d 1622d 0/27 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in dput (8) mm C done 71 7h11m 169d 0/27 upstream: reported C repro on 2023/12/31 19:35
linux-5.15 INFO: rcu detected stall in dput 2 293d 333d 0/3 auto-obsoleted due to no activity on 2023/12/08 00:28
upstream INFO: rcu detected stall in dput (6) fs 2 594d 654d 0/27 auto-obsoleted due to no activity on 2023/01/16 04:13
linux-5.15 INFO: rcu detected stall in dput (2) 4 25d 94d 0/3 upstream: reported on 2024/03/15 21:30
upstream INFO: rcu detected stall in dput (5) fs 1 791d 791d 0/27 auto-closed as invalid on 2022/07/18 12:41
linux-6.1 INFO: rcu detected stall in dput 1 341d 341d 0/3 auto-obsoleted due to no activity on 2023/10/20 22:44
upstream INFO: rcu detected stall in dput fs 1 1658d 1658d 0/27 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in dput (2) kernel 2 1623d 1623d 0/27 closed as invalid on 2020/01/08 05:33

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P6760/1:b..l
	(detected by 0, t=10502 jiffies, g=25233, q=44 ncpus=2)
task:syz-executor.1  state:R  running task     stack:25176 pid:6760  ppid:3566   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:lock_is_held_type+0x137/0x180
Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc900036af620 EFLAGS: 00000206
RAX: d6f6284e37127100 RBX: 0000000000000000 RCX: 0000000080000000
RDX: ffff888079041dc0 RSI: ffffffff8aec1340 RDI: ffffffff8b3d45e0
RBP: 0000000000000001 R08: ffffffff8a87a81b R09: ffffffff8a87a37c
R10: 0000000000000002 R11: ffff888079041dc0 R12: 0000000000000246
R13: ffff888079041dc0 R14: 00000000ffffffff R15: ffffffff8d12ac80
 xa_entry include/linux/xarray.h:1198 [inline]
 xas_find+0x5b2/0xaa0 lib/xarray.c:1269
 find_get_entry mm/filemap.c:2003 [inline]
 find_lock_entries+0x24a/0xda0 mm/filemap.c:2095
 shmem_undo_range+0x294/0x2390 mm/shmem.c:925
 shmem_truncate_range mm/shmem.c:1062 [inline]
 shmem_evict_inode+0x265/0xa60 mm/shmem.c:1171
 evict+0x2a4/0x620 fs/inode.c:666
 __dentry_kill+0x436/0x650 fs/dcache.c:607
 dentry_kill+0xbb/0x290
 dput+0xfb/0x1d0 fs/dcache.c:914
 __fput+0x5e4/0x890 fs/file_table.c:328
 task_work_run+0x246/0x300 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f450187be5a
RSP: 002b:00007f4502580e90 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000008 RCX: 00007f450187be5a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 0000000000000010 R08: 0000000000000000 R09: 0000000000005598
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000007
R13: 00007f4502580f80 R14: 00007f4502581670 R15: 00007f44f7ff7000
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10537 jiffies! g25233 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=17802
rcu: rcu_preempt kthread starved for 10538 jiffies! g25233 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:26968 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </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: 6758 Comm: syz-executor.4 Not tainted 6.1.92-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:unwind_get_return_address+0x5f/0x80 arch/x86/kernel/unwind_orc.c:323
Code: 37 00 74 08 48 89 df e8 ff 69 a5 00 48 8b 3b e8 d7 ca 1e 00 85 c0 74 14 43 80 3c 37 00 74 08 48 89 df e8 e4 69 a5 00 48 8b 03 <eb> 02 31 c0 5b 41 5e 41 5f c3 89 d9 80 e1 07 80 c1 03 38 c1 7c ad
RSP: 0018:ffffc9000361f560 EFLAGS: 00000046
RAX: ffffffff8156be52 RBX: ffffc9000361f5c8 RCX: ffffffff8fb12000
RDX: ffffffff8fc6b001 RSI: ffffc90003618000 RDI: ffffffff8156be52
RBP: ffffc9000361f610 R08: ffffc9000361fb30 R09: ffffc9000361f5d0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888079040000
R13: ffffffff81784820 R14: dffffc0000000000 R15: 1ffff920006c3eb9
FS:  00007fd0d2ded6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32442000 CR3: 0000000022834000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 arch_stack_walk+0xf3/0x140 arch/x86/kernel/stacktrace.c:26
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516
 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
 kasan_slab_free include/linux/kasan.h:177 [inline]
 slab_free_hook mm/slub.c:1724 [inline]
 slab_free_freelist_hook mm/slub.c:1750 [inline]
 slab_free mm/slub.c:3661 [inline]
 kmem_cache_free+0x292/0x510 mm/slub.c:3683
 __sigqueue_free kernel/signal.c:458 [inline]
 collect_signal kernel/signal.c:601 [inline]
 __dequeue_signal+0x4ac/0x5c0 kernel/signal.c:623
 dequeue_signal+0x165/0x590 kernel/signal.c:646
 get_signal+0x5f2/0x17d0 kernel/signal.c:2742
 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd0d207cf67
Code: 14 25 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
RSP: 002b:00007fd0d2ded178 EFLAGS: 00000246
RAX: 00000000000000ca RBX: 00007fd0d21b3f88 RCX: 00007fd0d207cf69
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fd0d21b3f88
RBP: 00007fd0d21b3f80 R08: 00007fd0d2ded6c0 R09: 00007fd0d2ded6c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd0d21b3f8c
R13: 000000000000000b R14: 00007ffddfa94a60 R15: 00007ffddfa94b48
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/08 10:13 linux-6.1.y 88690811da69 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in dput
2024/06/08 08:48 linux-6.1.y 88690811da69 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in dput
2024/06/07 10:21 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in dput
2024/06/03 06:34 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in dput
2024/06/03 00:53 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in dput
2024/05/28 13:42 linux-6.1.y 88690811da69 f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in dput
* Struck through repros no longer work on HEAD.