syzbot


INFO: rcu detected stall in mntput

Status: auto-obsoleted due to no activity on 2023/08/06 23:33
Subsystems: fs
[Documentation on labels]
First crash: 508d, last: 508d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 BUG: soft lockup in mntput 1 19d 19d 0/2 premoderation: reported on 2024/09/09 10:59

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=3f94/1/0x4000000000000000 softirq=73038/73039 fqs=1
rcu: 	(detected by 0, t=10502 jiffies, g=101661, q=48 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5030 Comm: syz-executor.5 Not tainted 6.4.0-rc1-syzkaller-00001-gba0ad6ed89fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:rcu_lock_release+0x15/0x30 include/linux/rcupdate.h:332
Code: 42 99 f8 48 83 c4 08 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 e8 0b ad b9 f8 f3 0f 1e fa e8 02 ad b9 f8 48 c7 c7 a0 74 f2 8c <48> c7 c6 35 ba d1 88 e9 7f 68 99 f8 66 2e 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc900001e0c88 EFLAGS: 00000046
RAX: ffffffff88d1ba3e RBX: 0000000000000001 RCX: ffff888019eb3b80
RDX: 0000000080010000 RSI: ffffffff8b383e60 RDI: ffffffff8cf274a0
RBP: ffff88802a0eb0c8 R08: ffffffff88d1dd3f R09: ffffed1007ad7a2c
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88802a0eb008 R14: ffff88802a0eb000 R15: ffff88803d6bd360
FS:  0000555557132400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 000000003892c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 rcu_read_unlock include/linux/rcupdate.h:806 [inline]
 advance_sched+0xb23/0xc80 net/sched/sch_taprio.c:992
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x59f/0xd10 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x13f/0x480 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:mntput+0x41/0xc0 fs/namespace.c:1271
Code: 74 47 49 bf 00 00 00 00 00 fc ff df 4c 8d b3 0c 01 00 00 4d 89 f4 49 c1 ec 03 43 0f b6 04 3c 84 c0 75 4b 48 83 c3 e0 41 8b 2e <31> ff 89 ee e8 96 dd 8f ff 85 ed 75 20 e8 dd d9 8f ff 48 89 df 5b
RSP: 0018:ffffc90004b5fd18 EFLAGS: 00000287
RAX: 0000000000000000 RBX: ffff888018650600 RCX: ffff888019eb3b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888018650620
RBP: 0000000000000000 R08: ffffffff81f34867 R09: fffffbfff1cab7de
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110030ca0e5
R13: ffff8880295562fc R14: ffff88801865072c R15: dffffc0000000000
 __fput+0x610/0x890 fs/file_table.c:332
 task_work_run+0x24a/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+0x64/0x280 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f90a5e3e01b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffee8d21e40 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007ffee8d21ee0 RCX: 00007f90a5e3e01b
RDX: 0000000000000000 RSI: 0000006e42d98f38 RDI: 0000000000000003
RBP: 00000000ffffffff R08: 0000000000000000 R09: ffffffffffff0000
R10: 0000000000000010 R11: 0000000000000293 R12: 0000000000000053
R13: 000000000018315a R14: 0000000000000008 R15: 00007ffee8d21f20
 </TASK>
rcu: rcu_preempt kthread starved for 10500 jiffies! g101661 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
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:25664 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_timeout+0x1bd/0x310 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1609
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1808
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 19609 Comm: kworker/u4:4 Not tainted 6.4.0-rc1-syzkaller-00001-gba0ad6ed89fd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:285 [inline]
RIP: 0010:smp_call_function_many_cond+0x14fb/0x1f60 kernel/smp.c:828
Code: 45 8b 34 24 44 89 f6 83 e6 01 31 ff e8 4e 0f 0b 00 41 83 e6 01 49 be 00 00 00 00 00 fc ff df 75 07 e8 89 0b 0b 00 eb 38 f3 90 <42> 0f b6 04 33 84 c0 75 11 41 f7 04 24 01 00 00 00 74 1e e8 6d 0b
RSP: 0018:ffffc9000374f7c0 EFLAGS: 00000293
RAX: ffffffff81805bd3 RBX: 1ffff110173285c5 RCX: ffff8880209b9dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000374f9c0 R08: ffffffff81805ba2 R09: fffffbfff2064e4d
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b9942e28
R13: ffff8880b983d308 R14: dffffc0000000000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2da25000 CR3: 000000000cd30000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:996
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1770 [inline]
 text_poke_bp_batch+0x2bf/0x950 arch/x86/kernel/alternative.c:1970
 text_poke_flush arch/x86/kernel/alternative.c:2161 [inline]
 text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2168
 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x132/0x250 kernel/jump_label.c:205
 static_key_enable+0x1a/0x20 kernel/jump_label.c:218
 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:831
 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/08 23:25 upstream ba0ad6ed89fd 90c93c40 .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in mntput
* Struck through repros no longer work on HEAD.