syzbot


INFO: rcu detected stall in ext4_ioctl

Status: auto-obsoleted due to no activity on 2023/09/28 10:18
Reported-by: syzbot+1ec8e881d2c215210ca6@syzkaller.appspotmail.com
First crash: 320d, last: 320d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in ext4_ioctl 1 225d 225d 0/3 auto-obsoleted due to no activity on 2024/01/01 17:19
upstream INFO: rcu detected stall in ext4_ioctl mm 1 1868d 1868d 0/26 auto-closed as invalid on 2019/09/21 23:08

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=1c5c/1/0x4000000000000000 softirq=34704/34708 fqs=6
	(detected by 1, t=10503 jiffies, g=52829, q=431 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 11070 Comm: syz-executor.2 Not tainted 6.1.34-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:arch_irqs_disabled_flags arch/x86/include/asm/irqflags.h:125 [inline]
RIP: 0010:lock_acquire+0x1c4/0x5a0 kernel/locking/lockdep.c:5670
Code: 08 4c 89 ff e8 ad 4a 76 00 48 8d 5c 24 60 4c 8b bc 24 80 00 00 00 fa 48 c7 c7 80 de eb 8a e8 63 9d 19 09 65 ff 05 fc a4 98 7e <45> 31 c9 41 f7 c7 00 02 00 00 41 0f 94 c1 48 8b 7c 24 20 44 89 f6
RSP: 0018:ffffc90000007b40 EFLAGS: 00000002
RAX: 0000000000000000 RBX: ffffc90000007ba0 RCX: ffffffff8169d2eb
RDX: 0000000000000000 RSI: ffffffff8aebde80 RDI: ffffffff8b3cc9a0
RBP: ffffc90000007ca0 R08: dffffc0000000000 R09: fffffbfff1ca64d6
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000f70
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000046
FS:  00007fa83876e700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200bd038 CR3: 000000007887f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:306
 rcu_read_lock include/linux/rcupdate.h:747 [inline]
 advance_sched+0x6ce/0x940 net/sched/sch_taprio.c:753
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x5e5/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:deref_stack_reg arch/x86/kernel/unwind_orc.c:360 [inline]
RIP: 0010:unwind_next_frame+0xd73/0x2220 arch/x86/kernel/unwind_orc.c:539
Code: 03 00 00 4c 39 f0 0f 87 93 03 00 00 4c 89 ef e8 f3 1d 00 00 49 89 c6 48 bd 00 00 00 00 00 fc ff df 48 8b 44 24 30 80 3c 28 00 <48> 8b 5c 24 18 74 08 48 89 df e8 1e ac a3 00 4c 89 33 48 8b 44 24
RSP: 0018:ffffc900164ceea0 EFLAGS: 00000246
RAX: 1ffff92002c99df9 RBX: ffffc900164d0000 RCX: 1ffff92002c99df0
RDX: 1ffffffff1dafecb RSI: 0000000000000000 RDI: ffffc900164cf3c0
RBP: dffffc0000000000 R08: 000000000000000a R09: ffffc900164cf070
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900164cef80
R13: ffffc900164cf3c0 R14: ffffffff81df3e1c R15: 1ffff92002c99df1
 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328
 kasan_slab_alloc include/linux/kasan.h:201 [inline]
 slab_post_alloc_hook+0x50/0x370 mm/slab.h:737
 slab_alloc_node mm/slub.c:3398 [inline]
 slab_alloc mm/slub.c:3406 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3413 [inline]
 kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422
 kmem_cache_zalloc include/linux/slab.h:679 [inline]
 jbd2_alloc_handle include/linux/jbd2.h:1596 [inline]
 new_handle fs/jbd2/transaction.c:476 [inline]
 jbd2__journal_start+0x144/0x5c0 fs/jbd2/transaction.c:503
 __ext4_journal_start_sb+0x19b/0x410 fs/ext4/ext4_jbd2.c:105
 __ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline]
 move_extent_per_page+0x45c/0x37c0 fs/ext4/move_extent.c:274
 ext4_move_extents+0x94f/0xe40 fs/ext4/move_extent.c:672
 __ext4_ioctl fs/ext4/ioctl.c:1355 [inline]
 ext4_ioctl+0x3ae7/0x5f70 fs/ext4/ioctl.c:1611
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
 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:0x7fa837a8c389
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa83876e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fa837bac460 RCX: 00007fa837a8c389
RDX: 0000000020000140 RSI: 00000000c028660f RDI: 0000000000000008
RBP: 00007fa837ad7493 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff1529754f R14: 00007fa83876e300 R15: 0000000000022000
 </TASK>
rcu: rcu_preempt kthread starved for 10285 jiffies! g52829 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:25952 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: 7000 Comm: udevd Not tainted 6.1.34-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/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 5a 0c 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 e5 08 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:ffffc90006167860 EFLAGS: 00000293
RAX: ffffffff817ecc8d RBX: 1ffff11017308415 RCX: ffff88809bd89dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90006167c30 R08: ffffffff817ecc56 R09: fffffbfff2051650
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880b98420a8
FS:  00007f4ccbdb9c80(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005563bec4f008 CR3: 000000007e8bf000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1155
 kill_bdev block/bdev.c:75 [inline]
 blkdev_flush_mapping+0x14a/0x2b0 block/bdev.c:662
 blkdev_put_whole block/bdev.c:693 [inline]
 blkdev_put+0x4c0/0x750 block/bdev.c:953
 blkdev_close+0x56/0x80 block/fops.c:514
 __fput+0x3b7/0x890 fs/file_table.c:320
 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:0x7f4ccb9170a8
Code: 48 8b 05 83 9d 0d 00 64 c7 00 16 00 00 00 83 c8 ff 48 83 c4 20 5b c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 5b 48 8b 15 51 9d 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffd560d5b88 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007f4ccbdb9ae0 RCX: 00007f4ccb9170a8
RDX: 0000558548a58eee RSI: 00007ffd560d5388 RDI: 0000000000000008
RBP: 0000558010a252c0 R08: 0000000000000006 R09: e15dd48cb8218da3
R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000002
R13: 0000558010a2daf0 R14: 0000000000000008 R15: 0000558010a24910
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/20 10:18 linux-6.1.y ca87e77a2ef8 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in ext4_ioctl
* Struck through repros no longer work on HEAD.