INFO: task syz-executor330:3638 blocked for more than 143 seconds. Not tainted 6.1.0-rc6-syzkaller-00375-gcf562a45a0d5 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor330 state:D stack:20624 pid:3638 ppid:3637 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5209 [inline] __schedule+0x8c9/0xd70 kernel/sched/core.c:6521 schedule+0xcb/0x190 kernel/sched/core.c:6597 io_schedule+0x83/0x100 kernel/sched/core.c:8741 bit_wait_io+0xe/0xc0 kernel/sched/wait_bit.c:209 __wait_on_bit_lock+0xbb/0x1a0 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0x1c3/0x240 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer fs/buffer.c:69 [inline] lock_buffer include/linux/buffer_head.h:397 [inline] __sync_dirty_buffer+0x107/0x330 fs/buffer.c:2732 __ext4_handle_dirty_metadata+0x29a/0x810 fs/ext4/ext4_jbd2.c:381 ext4_convert_inline_data_nolock+0x6e8/0x820 fs/ext4/inline.c:1256 ext4_convert_inline_data+0x4bf/0x600 fs/ext4/inline.c:2067 ext4_fallocate+0x149/0x1c90 fs/ext4/extents.c:4702 vfs_fallocate+0x515/0x670 fs/open.c:323 ksys_fallocate fs/open.c:346 [inline] __do_sys_fallocate fs/open.c:354 [inline] __se_sys_fallocate fs/open.c:352 [inline] __x64_sys_fallocate+0xb9/0x100 fs/open.c:352 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:0x7f51479172d9 RSP: 002b:00007ffca83f0d78 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f514795b860 RCX: 00007f51479172d9 RDX: 0000000000000006 RSI: 0000000000000008 RDI: 0000000000000005 RBP: 0000000000000000 R08: 00007f5147985ec0 R09: 00007f5147985ec0 R10: 0000000000004d03 R11: 0000000000000246 R12: 00007ffca83f0da0 R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d1272b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d127ab0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d1270e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3309: #0: ffff88814503e098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 3 locks held by syz-executor330/3638: #0: ffff8880778dc460 (sb_writers#4){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2944 [inline] #0: ffff8880778dc460 (sb_writers#4){.+.+}-{0:0}, at: vfs_fallocate+0x489/0x670 fs/open.c:322 #1: ffff8880748f6850 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff8880748f6850 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_fallocate+0x141/0x1c90 fs/ext4/extents.c:4701 #2: ffff8880748f6518 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff8880748f6518 (&ei->xattr_sem){++++}-{3:3}, at: ext4_convert_inline_data+0x39b/0x600 fs/ext4/inline.c:2065 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc6-syzkaller-00375-gcf562a45a0d5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ba/0x420 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xcf5/0xd40 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 63 Comm: kworker/u4:4 Not tainted 6.1.0-rc6-syzkaller-00375-gcf562a45a0d5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:hlock_class kernel/locking/lockdep.c:227 [inline] RIP: 0010:__lock_acquire+0x120e/0x1f60 kernel/locking/lockdep.c:5052 Code: 8b 5d 00 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 40 71 59 90 be 08 00 00 00 e8 da 4e 74 00 48 0f a3 1d c2 0c ef 0e <72> 31 48 c7 c0 40 f0 d8 91 48 c1 e8 03 48 ba 00 00 00 00 00 fc ff RSP: 0018:ffffc900015878e8 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 0000000000000005 RCX: ffffffff816a6476 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90597140 RBP: ffff888018a32800 R08: dffffc0000000000 R09: fffffbfff20b2e29 R10: fffffbfff20b2e29 R11: 1ffffffff20b2e28 R12: 1ffff110031464f0 R13: 4d9eda2362491e36 R14: ffff888018a32780 R15: 0000000000002000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556ee972d680 CR3: 000000000ce8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668 percpu_down_read include/linux/percpu-rwsem.h:51 [inline] cpus_read_lock+0x3e/0x130 kernel/cpu.c:310 static_key_disable+0xe/0x20 kernel/jump_label.c:214 toggle_allocation_gate+0x3b8/0x450 mm/kfence/core.c:814 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306