syzbot


INFO: rcu detected stall in fanotify_release

Status: auto-obsoleted due to no activity on 2025/04/04 07:42
Subsystems: fs
[Documentation on labels]
First crash: 211d, last: 211d

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=ed74/1/0x4000000000000000 softirq=78598/78607 fqs=1
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P20577/1:b..l
rcu: 	(detected by 1, t=10502 jiffies, g=74649, q=366 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 20582 Comm: syz.7.4051 Not tainted 6.13.0-rc5-syzkaller-00161-g63676eefb7a0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4855 [inline]
RIP: 0010:__lock_acquire+0x6bc/0x2100 kernel/locking/lockdep.c:5176
Code: 04 ee 48 89 44 24 38 40 84 ed 4c 8b 6c 24 40 0f 84 7e 04 00 00 0f b6 1b 41 0f b6 04 16 84 c0 0f 85 64 12 00 00 41 f6 47 01 80 <0f> 85 63 04 00 00 4c 89 64 24 48 84 db 40 0f b6 c5 0f b6 cb 0f 44
RSP: 0018:ffffc90000007930 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff817aba87
RDX: dffffc0000000000 RSI: ffff8880434e46e0 RDI: ffffffff94271880
RBP: 0000000000000002 R08: ffffffff94271887 R09: 1ffffffff284e310
R10: dffffc0000000000 R11: fffffbfff284e311 R12: ffff8880434e46c4
R13: ffff8880434e3c00 R14: 1ffff1100869c8ea R15: ffff8880434e4750
FS:  00005555906f3500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c335d32 CR3: 0000000044146000 CR4: 00000000003526f0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
 __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_deactivate+0x158/0x390 lib/debugobjects.c:873
 debug_hrtimer_deactivate kernel/time/hrtimer.c:433 [inline]
 debug_deactivate+0x1b/0x220 kernel/time/hrtimer.c:475
 __run_hrtimer kernel/time/hrtimer.c:1707 [inline]
 __hrtimer_run_queues+0x305/0xd30 kernel/time/hrtimer.c:1803
 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1865
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202
Code: 90 f3 0f 1e fa 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 8a 38 b7 f5 48 89 df e8 c2 7f b8 f5 e8 ad 90 e3 f5 fb bf 01 00 00 00 <e8> e2 e4 a9 f5 65 8b 05 13 37 40 74 85 c0 74 06 5b c3 cc cc cc cc
RSP: 0018:ffffc9000e197970 EFLAGS: 00000282
RAX: e912cf148a662d00 RBX: ffff88801aca0000 RCX: ffffffff9a378903
RDX: dffffc0000000000 RSI: ffffffff8c0a98e0 RDI: 0000000000000001
RBP: ffffc9000e197b50 R08: ffffffff901856b7 R09: 1ffffffff2030ad6
R10: dffffc0000000000 R11: fffffbfff2030ad7 R12: dffffc0000000000
R13: ffff88801ac95c00 R14: 0000000000000002 R15: ffff88801ac95c1c
 start_flush_work kernel/workqueue.c:4165 [inline]
 __flush_work+0x6c0/0xc60 kernel/workqueue.c:4199
 flush_work kernel/workqueue.c:4256 [inline]
 flush_delayed_work+0x169/0x1c0 kernel/workqueue.c:4278
 fsnotify_destroy_group+0x214/0x340 fs/notify/group.c:76
 fanotify_release+0x4ca/0x4f0 fs/notify/fanotify/fanotify_user.c:964
 __fput+0x23c/0xa50 fs/file_table.c:450
 task_work_run+0x24f/0x310 kernel/task_work.c:239
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3d2d385d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcaa40a508 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 0000000000142ecb RCX: 00007f3d2d385d29
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f3d2d577ba0 R08: 0000000000000001 R09: 00007ffcaa40a7ff
R10: 00007f3d2d200000 R11: 0000000000000246 R12: 0000000000142f10
R13: 00007f3d2d575fa0 R14: 0000000000000032 R15: ffffffffffffffff
 </TASK>
task:syz.8.4049      state:R  running task     stack:22416 pid:20577 tgid:20577 ppid:15504  flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6935
 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6959
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 insert_page mm/memory.c:2094 [inline]
 vm_insert_page+0x4ec/0x710 mm/memory.c:2243
 kcov_mmap+0xd7/0x140 kernel/kcov.c:506
 call_mmap include/linux/fs.h:2183 [inline]
 mmap_file mm/internal.h:124 [inline]
 __mmap_new_file_vma mm/vma.c:2291 [inline]
 __mmap_new_vma mm/vma.c:2355 [inline]
 __mmap_region+0x224e/0x2d30 mm/vma.c:2456
 mmap_region+0x226/0x2c0 mm/mmap.c:1348
 do_mmap+0x8f0/0x1000 mm/mmap.c:496
 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:580
 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:542
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fce2db85d63
RSP: 002b:00007ffe6cf85bb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fce2dd762d8 RCX: 00007fce2db85d63
RDX: 0000000000000003 RSI: 0000000000400000 RDI: 00007fce2b5f6000
RBP: 00007fce2dd76240 R08: 00000000000000db R09: 0000000000000000
R10: 0000000000000011 R11: 0000000000000246 R12: 0000000000000003
R13: 00007fce2dd76240 R14: 0000000000000003 R15: 0000000000001514
 </TASK>
rcu: rcu_preempt kthread starved for 10500 jiffies! g74649 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:26264 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
 __schedule_loop kernel/sched/core.c:6833 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6848
 schedule_timeout+0x15a/0x290 kernel/time/sleep_timeout.c:99
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.13.0-rc5-syzkaller-00161-g63676eefb7a0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:92 [inline]
RIP: 0010:acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:112
Code: 90 90 90 90 90 90 90 90 90 65 48 8b 04 25 80 d4 03 00 48 f7 00 08 00 00 00 75 10 66 90 0f 00 2d 05 a0 a7 00 f3 0f 1e fa fb f4 <fa> c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
RSP: 0018:ffffc900001a7d08 EFLAGS: 00000246
RAX: ffff88801d2f8000 RBX: ffff8881436e9064 RCX: 0000000000d8b0d9
RDX: 0000000000000001 RSI: ffff8881436e9000 RDI: ffff8881436e9064
RBP: 000000000003a878 R08: ffff8880b8737cdb R09: 1ffff110170e6f9b
R10: dffffc0000000000 R11: ffffffff8bc10c90 R12: ffff88801e72b000
R13: 0000000000000001 R14: 0000000000000001 R15: ffffffff8f10f3e0
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2a1b15 CR3: 0000000035812000 CR4: 00000000003526f0
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 acpi_idle_enter+0xe4/0x140 drivers/acpi/processor_idle.c:699
 cpuidle_enter_state+0x109/0x470 drivers/cpuidle/cpuidle.c:268
 cpuidle_enter+0x5d/0xa0 drivers/cpuidle/cpuidle.c:389
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:230 [inline]
 do_idle+0x372/0x5c0 kernel/sched/idle.c:325
 cpu_startup_entry+0x42/0x60 kernel/sched/idle.c:423
 start_secondary+0x102/0x110 arch/x86/kernel/smpboot.c:314
 common_startup_64+0x13e/0x147
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/04 07:37 upstream 63676eefb7a0 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in fanotify_release
* Struck through repros no longer work on HEAD.