syzbot


INFO: rcu detected stall in sys_unlink (2)

Status: upstream: reported on 2024/06/26 10:51
Reported-by: syzbot+f62c23916d215792c213@syzkaller.appspotmail.com
First crash: 106d, last: 95d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_unlink (2) kernel 2 626d 711d 0/28 auto-obsoleted due to no activity on 2023/04/22 20:06
upstream INFO: rcu detected stall in sys_unlink (3) mm fs C error 68 1d16h 423d 0/28 upstream: reported C repro on 2023/08/13 23:42
linux-6.1 INFO: rcu detected stall in sys_unlink 4 42d 261d 0/3 upstream: reported on 2024/01/23 10:50
upstream INFO: rcu detected stall in sys_unlink kasan mm 1 802d 802d 0/28 auto-obsoleted due to no activity on 2022/10/29 07:23
linux-5.15 INFO: rcu detected stall in sys_unlink 1 211d 211d 0/3 auto-obsoleted due to no activity on 2024/06/20 14:47
android-5-15 BUG: soft lockup in sys_unlink 7 154d 176d 0/2 auto-obsoleted due to no activity on 2024/08/07 01:29

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P4004/1:b..l
	(detected by 0, t=10502 jiffies, g=11113, q=315)
task:syz-executor    state:R  running task     stack:20760 pid: 4004 ppid:  3997 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6780
 irqentry_exit+0x53/0x80 kernel/entry/common.c:432
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:PagePoisoned include/linux/page-flags.h:218 [inline]
RIP: 0010:PageHead include/linux/page-flags.h:590 [inline]
RIP: 0010:PageTransHuge include/linux/page-flags.h:633 [inline]
RIP: 0010:find_lock_entries+0x441/0x1030 mm/filemap.c:2096
Code: 74 08 48 89 df e8 4f 80 21 00 48 8b 1b 48 89 de 48 83 e6 01 31 ff e8 2e b5 d7 ff 48 83 e3 01 0f 85 4b 0b 00 00 4c 8b 74 24 10 <4d> 89 f4 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df 41 80 3c 04 00
RSP: 0018:ffffc90003137800 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88807a220000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003137950 R08: ffffffff81a8aa12 R09: fffff9400030239f
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900031378a8
R13: 0000000000000179 R14: ffffea0001811cc0 R15: dffffc0000000000
 shmem_undo_range+0x2a3/0x1b50 mm/shmem.c:943
 shmem_truncate_range mm/shmem.c:1063 [inline]
 shmem_evict_inode+0x21b/0xa00 mm/shmem.c:1145
 evict+0x2a4/0x620 fs/inode.c:587
 do_unlinkat+0x508/0x950 fs/namei.c:4355
 __do_sys_unlink fs/namei.c:4396 [inline]
 __se_sys_unlink fs/namei.c:4394 [inline]
 __x64_sys_unlink+0x45/0x50 fs/namei.c:4394
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fdf3f017227
RSP: 002b:00007ffdee3b3ac8 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdf3f017227
RDX: 00007ffdee3b3af0 RSI: 00007ffdee3b3b80 RDI: 00007ffdee3b3b80
RBP: 00007ffdee3b3b80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffdee3b4c50
R13: 00007fdf3f085515 R14: 0000000000018645 R15: 0000000000000014
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10531 jiffies! g11113 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=3544
rcu: rcu_preempt kthread starved for 10532 jiffies! g11113 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:26816 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914
 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:109 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:570
sched: RT throttling activated

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/07 13:01 linux-5.15.y f45bea23c39c 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_unlink
2024/07/04 04:18 linux-5.15.y 4878aadf2d15 f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_unlink
2024/06/26 10:51 linux-5.15.y 4878aadf2d15 c6d33a01 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_unlink
* Struck through repros no longer work on HEAD.