syzbot


INFO: rcu detected stall in vfs_fileattr_set

Status: auto-obsoleted due to no activity on 2025/01/22 18:19
Subsystems: xfs
[Documentation on labels]
First crash: 103d, last: 103d

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=4ee4/1/0x4000000000000000 softirq=13331/13336 fqs=9
rcu: 	(detected by 0, t=10505 jiffies, g=9849, q=1778 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 6091 Comm: syz.5.42 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__netif_schedule+0x4/0x310 net/core/dev.c:3136
Code: 02 f8 eb b8 e8 1d 5b 02 f8 41 be 01 00 00 00 eb da 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa <55> 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec a0 00
RSP: 0018:ffffc90000a18c88 EFLAGS: 00000006
RAX: ffffffff89cbf044 RBX: ffffffff89cbf002 RCX: ffff88802f2d1e00
RDX: 0000000000010000 RSI: ffffffff8c610280 RDI: ffff88802826d000
RBP: 0000000000000001 R08: ffffffff89cbf032 R09: 1ffffffff2859300
R10: dffffc0000000000 R11: fffffbfff2859301 R12: dffffc0000000000
R13: ffff888034581008 R14: ffff888034581000 R15: ffff88802826d360
FS:  00007f620c9d96c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30e03ff8 CR3: 000000002f386000 CR4: 0000000000350ef0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 advance_sched+0xaa9/0xca0 net/sched/sch_taprio.c:986
 __run_hrtimer kernel/time/hrtimer.c:1691 [inline]
 __hrtimer_run_queues+0x59d/0xd50 kernel/time/hrtimer.c:1755
 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1817
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x112/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:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5829
Code: 2b 00 74 08 4c 89 f7 e8 6a 55 8e 00 f6 44 24 61 02 0f 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc900032ff380 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff9200065fe7c RCX: 8e6404c6982abc00
RDX: dffffc0000000000 RSI: ffffffff8c0adcc0 RDI: ffffffff8c6102a0
RBP: ffffc900032ff4d0 R08: ffffffff96b68a3f R09: 1ffffffff2d6d147
R10: dffffc0000000000 R11: fffffbfff2d6d148 R12: 1ffff9200065fe78
R13: dffffc0000000000 R14: ffffc900032ff3e0 R15: 0000000000000246
 __fs_reclaim_acquire mm/page_alloc.c:3834 [inline]
 fs_reclaim_acquire+0x88/0x130 mm/page_alloc.c:3848
 might_alloc include/linux/sched/mm.h:318 [inline]
 slab_pre_alloc_hook mm/slub.c:4036 [inline]
 slab_alloc_node mm/slub.c:4114 [inline]
 kmem_cache_alloc_noprof+0x3d/0x2a0 mm/slub.c:4141
 xfs_trans_alloc+0x81/0x830 fs/xfs/xfs_trans.c:262
 xfs_trans_alloc_ichange+0xfd/0x640 fs/xfs/xfs_trans.c:1241
 xfs_ioctl_setattr_get_trans fs/xfs/xfs_ioctl.c:575 [inline]
 xfs_fileattr_set+0x562/0x1a10 fs/xfs/xfs_ioctl.c:722
 vfs_fileattr_set+0x901/0xd50 fs/ioctl.c:697
 ioctl_setflags fs/ioctl.c:729 [inline]
 do_vfs_ioctl+0x207a/0x2e40 fs/ioctl.c:870
 __do_sys_ioctl fs/ioctl.c:905 [inline]
 __se_sys_ioctl+0x81/0x170 fs/ioctl.c:893
 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:0x7f620bb7e719
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:00007f620c9d9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f620bd35f80 RCX: 00007f620bb7e719
RDX: 00000000200002c0 RSI: 0000000040086602 RDI: 0000000000000004
RBP: 00007f620bbf12be R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f620bd35f80 R15: 00007ffdda39d6f8
 </TASK>
rcu: rcu_preempt kthread starved for 10460 jiffies! g9849 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:25920 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5328 [inline]
 __schedule+0x18af/0x4bd0 kernel/sched/core.c:6690
 __schedule_loop kernel/sched/core.c:6767 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6782
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret_from_fork+0x4d/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: 0 UID: 0 PID: 6154 Comm: syz.2.63 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline]
RIP: 0010:smp_call_function_many_cond+0x19f8/0x2ca0 kernel/smp.c:884
Code: 89 e6 83 e6 01 31 ff e8 56 f3 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 01 ef 0b 00 eb 38 f3 90 42 0f b6 04 23 <84> c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 e5 ee 0b 00 eb e4 44
RSP: 0018:ffffc900031bf5e0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 1ffff110170e8919 RCX: 0000000000040000
RDX: ffffc9000b7d1000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc900031bf7d0 R08: ffffffff8188e8ca R09: 1ffffffff2859320
R10: dffffc0000000000 R11: fffffbfff2859321 R12: dffffc0000000000
R13: ffff8880b87448c8 R14: ffff8880b863fc80 R15: 0000000000000001
FS:  00007f0a0201b6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f864b1fef98 CR3: 0000000034e22000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1051
 invalidate_bdev+0x71/0xa0 block/bdev.c:100
 btrfs_get_bdev_and_sb+0x10e/0x1f0 fs/btrfs/volumes.c:494
 btrfs_open_one_device fs/btrfs/volumes.c:659 [inline]
 open_fs_devices+0x2ae/0x12a0 fs/btrfs/volumes.c:1198
 btrfs_get_tree_super fs/btrfs/super.c:1851 [inline]
 btrfs_get_tree+0x504/0x1920 fs/btrfs/super.c:2114
 vfs_get_tree+0x92/0x2b0 fs/super.c:1800
 fc_mount+0x1b/0xb0 fs/namespace.c:1231
 btrfs_get_tree_subvol fs/btrfs/super.c:2077 [inline]
 btrfs_get_tree+0x652/0x1920 fs/btrfs/super.c:2115
 vfs_get_tree+0x92/0x2b0 fs/super.c:1800
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4057 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
 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:0x7f0a0117feba
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f0a0201ae68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f0a0201aef0 RCX: 00007f0a0117feba
RDX: 0000000020005100 RSI: 0000000020000340 RDI: 00007f0a0201aeb0
RBP: 0000000020005100 R08: 00007f0a0201aef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000340
R13: 00007f0a0201aeb0 R14: 00000000000050d4 R15: 0000000020000280
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/24 18:16 upstream c2ee9f594da8 9fc8fe02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in vfs_fileattr_set
* Struck through repros no longer work on HEAD.