INFO: task syz.1.861:7730 blocked for more than 143 seconds.
Not tainted 5.15.169-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.861 state:D stack:25880 pid: 7730 ppid: 7429 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5027 [inline]
__schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
schedule+0x11b/0x1f0 kernel/sched/core.c:6456
wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191
sync_inodes_sb+0x293/0xab0 fs/fs-writeback.c:2770
sync_filesystem+0x16b/0x220 fs/sync.c:64
fsync_bdev+0x29/0xb0 block/bdev.c:216
blkdev_flushbuf block/ioctl.c:353 [inline]
blkdev_common_ioctl+0xd0f/0x2080 block/ioctl.c:478
blkdev_ioctl+0x286/0x6b0 block/ioctl.c:598
block_ioctl+0xb1/0xf0 block/fops.c:493
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
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:0x7f1406baaff9
RSP: 002b:00007f1404fe1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1406d63130 RCX: 00007f1406baaff9
RDX: 0000000000000000 RSI: 0000000000001261 RDI: 0000000000000006
RBP: 00007f1406c1d296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1406d63130 R15: 00007ffc866abce8
Showing all locks held in the system:
1 lock held by khungtaskd/27:
#0: ffffffff8c91fc60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/u4:2/154:
#0: ffff8881447c5138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc9000126fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
2 locks held by getty/3336:
#0: ffff88814b3d1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1: ffffc9000228e2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
5 locks held by kworker/1:7/3620:
#0: ffff8880b913a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475
#1: ffff8880b9127848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x4e1/0x810 kernel/sched/psi.c:882
#2: ffff8880b9128098 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 kernel/time/timer.c:946
#3: ffff888062da04e0 (&nsim_trap_data->trap_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline]
#3: ffff888062da04e0 (&nsim_trap_data->trap_lock){+.+.}-{2:2}, at: nsim_dev_trap_report drivers/net/netdevsim/dev.c:707 [inline]
#3: ffff888062da04e0 (&nsim_trap_data->trap_lock){+.+.}-{2:2}, at: nsim_dev_trap_report_work+0x1a3/0xab0 drivers/net/netdevsim/dev.c:762
#4: ffff888076c98488 (&nsim_dev->fa_cookie_lock){+...}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:368 [inline]
#4: ffff888076c98488 (&nsim_dev->fa_cookie_lock){+...}-{2:2}, at: nsim_dev_trap_report drivers/net/netdevsim/dev.c:732 [inline]
#4: ffff888076c98488 (&nsim_dev->fa_cookie_lock){+...}-{2:2}, at: nsim_dev_trap_report_work+0x6d6/0xab0 drivers/net/netdevsim/dev.c:762
1 lock held by syz.1.749/7242:
#0: ffff88801e168460 (sb_writers#5){++++}-{0:0}, at: vfs_writev fs/read_write.c:927 [inline]
#0: ffff88801e168460 (sb_writers#5){++++}-{0:0}, at: do_pwritev+0x1fd/0x360 fs/read_write.c:1025
2 locks held by syz.1.861/7730:
#0: ffff88801e1680e0 (&type->s_umount_key#32){++++}-{3:3}, at: get_super+0xfe/0x1f0 fs/super.c:789
#1: ffff888020cd87d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
#1: ffff888020cd87d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768
1 lock held by syz.4.1038/8704:
#0: ffff88805c52e460 (sb_writers#5){++++}-{0:0}, at: vfs_writev fs/read_write.c:927 [inline]
#0: ffff88805c52e460 (sb_writers#5){++++}-{0:0}, at: do_pwritev+0x1fd/0x360 fs/read_write.c:1025
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.169-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
watchdog+0xe72/0xeb0 kernel/hung_task.c:295
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8704 Comm: syz.4.1038 Not tainted 5.15.169-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__lock_release kernel/locking/lockdep.c:5309 [inline]
RIP: 0010:lock_release+0x276/0x9a0 kernel/locking/lockdep.c:5643
Code: c0 0f 84 12 02 00 00 4d 85 ff 0f 84 26 03 00 00 49 8d 5f 24 48 89 d8 48 c1 e8 03 49 be 00 00 00 00 00 fc ff df 42 0f b6 04 30 <84> c0 0f 85 00 05 00 00 83 3b 00 0f 85 19 04 00 00 4d 8d 67 20 4c
RSP: 0018:ffffc90000dd07e0 EFLAGS: 00000807
RAX: 0000000000000000 RBX: ffff88802852299c RCX: ffffc90000dd0803
RDX: 0000000000000005 RSI: ffffffff8c91fc60 RDI: ffff888028522978
RBP: ffffc90000dd0910 R08: dffffc0000000000 R09: fffffbfff1bd2cb6
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000005
R13: 0000000000000019 R14: dffffc0000000000 R15: ffff888028522978
FS: 00007f4e6951a6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f732bcc4178 CR3: 0000000023b6f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 00000000872c9164 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
rcu_read_unlock include/linux/rcupdate.h:772 [inline]
select_task_rq_fair+0x6ed/0x36d0 kernel/sched/fair.c:7204
select_task_rq kernel/sched/core.c:3430 [inline]
try_to_wake_up+0x55f/0x1300 kernel/sched/core.c:4128
call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451
expire_timers kernel/time/timer.c:1496 [inline]
__run_timers+0x67c/0x890 kernel/time/timer.c:1767
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
__do_softirq kernel/softirq.c:592 [inline]
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:console_trylock_spinning+0x36b/0x3f0 kernel/printk/printk.c:1909
Code: 0f 84 75 ff ff ff e8 54 15 1a 00 fb 31 db eb 48 e8 4a 15 1a 00 e8 45 a0 cd 08 4d 85 ed 74 cd e8 3b 15 1a 00 fb bb 01 00 00 00 <48> c7 c7 20 c5 7f 8c 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc900033663a0 EFLAGS: 00000246
RAX: ffffffff81665ea5 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc90038938000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90003366470 R08: ffffffff81665e5e R09: fffffbfff20ec634
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200066cc74
R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000
vprintk_emit+0xa6/0x150 kernel/printk/printk.c:2273
_printk+0xd1/0x120 kernel/printk/printk.c:2299
__ext4_warning+0x200/0x210 fs/ext4/super.c:940
ext4_read_block_bitmap_nowait+0x8c7/0x970 fs/ext4/balloc.c:483
ext4_mb_init_cache+0x41a/0x1570 fs/ext4/mballoc.c:1270
ext4_mb_init_group+0x2d2/0x880 fs/ext4/mballoc.c:1475
ext4_mb_good_group_nolock fs/ext4/mballoc.c:2584 [inline]
ext4_mb_regular_allocator+0x1068/0x38b0 fs/ext4/mballoc.c:2793
ext4_mb_new_blocks+0x108e/0x4d60 fs/ext4/mballoc.c:5777
ext4_ext_map_blocks+0x1b01/0x7630 fs/ext4/extents.c:4339
ext4_map_blocks+0xa66/0x1c70 fs/ext4/inode.c:672
mpage_map_one_extent fs/ext4/inode.c:2407 [inline]
mpage_map_and_submit_extent fs/ext4/inode.c:2460 [inline]
ext4_writepages+0x160e/0x3d10 fs/ext4/inode.c:2828
do_writepages+0x481/0x730 mm/page-writeback.c:2386
filemap_fdatawrite_wbc+0x1d6/0x230 mm/filemap.c:400
__filemap_fdatawrite_range mm/filemap.c:433 [inline]
file_write_and_wait_range+0x1cb/0x2b0 mm/filemap.c:810
ext4_sync_file+0x225/0xb90 fs/ext4/fsync.c:151
generic_write_sync include/linux/fs.h:2991 [inline]
ext4_buffered_write_iter+0x2e5/0x360 fs/ext4/file.c:275
ext4_file_write_iter+0x1d1/0x1940 fs/ext4/file.c:662
do_iter_readv_writev+0x594/0x7a0
do_iter_write+0x1e6/0x760 fs/read_write.c:855
vfs_writev fs/read_write.c:928 [inline]
do_pwritev+0x219/0x360 fs/read_write.c:1025
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:0x7f4e6b0c2ff9
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:00007f4e6951a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f4e6b27b058 RCX: 00007f4e6b0c2ff9
RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000008
RBP: 00007f4e6b135296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f4e6b27b058 R15: 00007ffdb2e54868