syzbot


INFO: rcu detected stall in dput

Status: auto-obsoleted due to no activity on 2023/10/20 22:44
Reported-by: syzbot+0dcd61a8a5e90d5867b5@syzkaller.appspotmail.com
First crash: 295d, last: 295d
Similar bugs (9)
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 874d 1234d 0/26 closed as invalid on 2022/02/08 10:37
upstream INFO: rcu detected stall in dput (3) kernel 1 1576d 1576d 0/26 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in dput (8) mm C done 16 6d04h 123d 0/26 upstream: reported C repro on 2023/12/31 19:35
linux-5.15 INFO: rcu detected stall in dput 2 247d 287d 0/3 auto-obsoleted due to no activity on 2023/12/08 00:28
upstream INFO: rcu detected stall in dput (6) fs 2 548d 607d 0/26 auto-obsoleted due to no activity on 2023/01/16 04:13
linux-5.15 INFO: rcu detected stall in dput (2) 2 40d 48d 0/3 upstream: reported on 2024/03/15 21:30
upstream INFO: rcu detected stall in dput (5) fs 1 744d 744d 0/26 auto-closed as invalid on 2022/07/18 12:41
upstream INFO: rcu detected stall in dput fs 1 1611d 1611d 0/26 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in dput (2) kernel 2 1576d 1576d 0/26 closed as invalid on 2020/01/08 05:33

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 ticks this GP) idle=3a74/1/0x4000000000000000 softirq=81941/81941 fqs=1
	(detected by 1, t=10503 jiffies, g=118625, q=242 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 20827 Comm: syz-executor.4 Not tainted 6.1.38-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:rb_erase_cached include/linux/rbtree.h:124 [inline]
RIP: 0010:timerqueue_del+0x8a/0xf0 lib/timerqueue.c:57
Code: 2f 00 74 08 48 89 df e8 14 fa 61 f7 4c 39 2b 74 07 e8 4a 94 0b f7 eb 25 e8 43 94 0b f7 4c 89 ef e8 cb 86 ff ff 41 80 3c 2f 00 <74> 0e 48 89 df 49 89 c7 e8 69 fa 61 f7 4c 89 f8 48 89 03 4c 89 ef
RSP: 0018:ffffc90000007d28 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffff8880b982a618 RCX: ffff888015eb1dc0
RDX: 0000000000010001 RSI: ffff888014f30340 RDI: ffff888014f30340
RBP: dffffc0000000000 R08: ffffffff8a7e46c4 R09: fffffbfff1ca6a76
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110029e6068
R13: ffff888014f30340 R14: ffff8880b982a610 R15: 1ffff110173054c3
FS:  000055555683a480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd442c9c48 CR3: 000000008abf2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __remove_hrtimer kernel/time/hrtimer.c:1116 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1665 [inline]
 __hrtimer_run_queues+0x409/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:preempt_count kernel/rcu/tree.c:760 [inline]
RIP: 0010:rcu_lockdep_current_cpu_online+0x2/0x120 kernel/rcu/tree.c:764
Code: db 48 89 df e8 ff 6e 6d 00 eb d1 44 89 f6 48 c7 c7 40 ec f2 8c e8 ae e2 ec 02 eb 88 66 2e 0f 1f 84 00 00 00 00 00 66 90 41 57 <41> 56 53 65 8b 0d fc 9c 8f 7e b0 01 f7 c1 00 00 f0 00 0f 85 d5 00
RSP: 0018:ffffc9000340f4f0 EFLAGS: 00000202
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff888015eb1dc0
RDX: 0000000000000000 RSI: ffffffff8b3cce40 RDI: ffffffff8b3cce00
RBP: 00000000000000a0 R08: ffffffff81eaba95 R09: fffffbfff2052845
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888013cc0000 R15: 000000000002c6ea
 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline]
 rcu_read_lock_held+0x1a/0x40 kernel/rcu/update.c:309
 lookup_page_ext mm/page_ext.c:277 [inline]
 page_ext_get+0x169/0x270 mm/page_ext.c:158
 __reset_page_owner+0x32/0x1a0 mm/page_owner.c:144
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1460 [inline]
 free_pcp_prepare mm/page_alloc.c:1510 [inline]
 free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3388
 free_unref_page_list+0x107/0x810 mm/page_alloc.c:3530
 release_pages+0x2836/0x2b40 mm/swap.c:1055
 __pagevec_release+0x80/0xf0 mm/swap.c:1075
 pagevec_release include/linux/pagevec.h:71 [inline]
 folio_batch_release include/linux/pagevec.h:135 [inline]
 shmem_undo_range+0x867/0x2020 mm/shmem.c:944
 shmem_truncate_range mm/shmem.c:1043 [inline]
 shmem_evict_inode+0x265/0xa60 mm/shmem.c:1152
 evict+0x2a4/0x620 fs/inode.c:664
 __dentry_kill+0x436/0x650 fs/dcache.c:607
 dentry_kill+0xbb/0x290
 dput+0x1ef/0x420 fs/dcache.c:913
 __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+0xd9/0x100 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1dd007de57
Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd8631f4b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f1dd007de57
RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffd8631f570
RBP: 00007ffd8631f570 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd86320630
R13: 00007f1dd00c73b9 R14: 00000000001a8ad8 R15: 0000000000000003
 </TASK>
rcu: rcu_preempt kthread starved for 10501 jiffies! g118625 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:25432 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x132c/0x4330 kernel/sched/core.c:6554
 schedule+0xbf/0x180 kernel/sched/core.c:6630
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x2c2/0x1010 kernel/rcu/tree.c:1661
 rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1860
 kthread+0x26e/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:
CPU: 1 PID: 23993 Comm: syz-executor.3 Not tainted 6.1.38-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline]
RIP: 0010:smp_call_function_many_cond+0x1f62/0x33d0 kernel/smp.c:987
Code: 2f 44 89 ee 83 e6 01 31 ff e8 9a 11 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 25 0e 0b 00 e9 1b ff ff ff f3 90 <42> 0f b6 04 2b 84 c0 75 14 41 f7 07 01 00 00 00 0f 84 fe fe ff ff
RSP: 0018:ffffc9000907f5e0 EFLAGS: 00000246
RAX: ffffffff817ecd3d RBX: 1ffff1101730841d RCX: 0000000000040000
RDX: ffffc9000cc25000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc9000907f9b0 R08: ffffffff817ecd06 R09: fffff5200120fead
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880b98420e8
FS:  00007fad363066c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 0000000033673000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 clock_was_set+0x83c/0x900 kernel/time/hrtimer.c:974
 timekeeping_inject_offset+0x65f/0x710 kernel/time/timekeeping.c:1395
 do_adjtimex+0x511/0xaa0 kernel/time/timekeeping.c:2444
 do_clock_adjtime kernel/time/posix-timers.c:1122 [inline]
 __do_sys_clock_adjtime kernel/time/posix-timers.c:1134 [inline]
 __se_sys_clock_adjtime kernel/time/posix-timers.c:1125 [inline]
 __x64_sys_clock_adjtime+0x1dc/0x290 kernel/time/posix-timers.c:1125
 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:0x7fad3567cb29
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:00007fad363060c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000131
RAX: ffffffffffffffda RBX: 00007fad3579c050 RCX: 00007fad3567cb29
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007fad356c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fad3579c050 R15: 00007ffd442cb1d8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/12 22:44 linux-6.1.y 61fd484b2cf6 979d5fe2 .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.