INFO: task kworker/u4:0:9 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:0 state:D stack:19104 pid:9 ppid:2 flags:0x00004000 Workqueue: events_unbound io_ring_exit_work Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_timeout+0xb0/0x310 kernel/time/timer.c:2143 do_wait_for_common+0x449/0x5f0 kernel/sched/completion.c:85 __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x4a/0x60 kernel/sched/completion.c:138 io_ring_exit_work+0x702/0x7f0 io_uring/io_uring.c:3027 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.1:1213 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23192 pid:1213 ppid:5092 flags:0x00024004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:758 [inline] ext4_buffered_write_iter+0xaf/0x3a0 fs/ext4/file.c:283 ext4_file_write_iter+0x1d6/0x1930 do_iter_write+0x6ea/0xc50 fs/read_write.c:861 iter_file_splice_write+0x843/0xfe0 fs/splice.c:778 do_splice_from fs/splice.c:856 [inline] direct_splice_actor+0xe7/0x1c0 fs/splice.c:1022 splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:977 do_splice_direct+0x283/0x3d0 fs/splice.c:1065 do_sendfile+0x620/0xff0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1323 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5ebcc8c169 RSP: 002b:00007f5ebd966168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f5ebcdabf80 RCX: 00007f5ebcc8c169 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f5ebcce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcbae2808f R14: 00007f5ebd966300 R15: 0000000000022000 INFO: task syz-executor.1:1229 blocked for more than 144 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24088 pid:1229 ppid:5092 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 io_schedule+0x8c/0x100 kernel/sched/core.c:8887 bit_wait_io+0x12/0xc0 kernel/sched/wait_bit.c:209 __wait_on_bit_lock+0xbd/0x1a0 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0x1d4/0x250 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:208 [inline] __lock_buffer fs/buffer.c:70 [inline] lock_buffer include/linux/buffer_head.h:400 [inline] __sync_dirty_buffer+0x120/0x380 fs/buffer.c:2780 __ext4_handle_dirty_metadata+0x2a6/0x820 fs/ext4/ext4_jbd2.c:387 ext4_convert_inline_data_nolock+0xaba/0xd80 fs/ext4/inline.c:1254 ext4_convert_inline_data+0x4da/0x620 fs/ext4/inline.c:2065 ext4_fallocate+0x14d/0x2050 fs/ext4/extents.c:4701 vfs_fallocate+0x54b/0x6b0 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xbd/0x100 fs/open.c:353 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5ebcc8c169 RSP: 002b:00007f5ebd945168 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f5ebcdac050 RCX: 00007f5ebcc8c169 RDX: 0000000000000100 RSI: 0000000000000020 RDI: 0000000000000004 RBP: 00007f5ebcce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000024e R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcbae2808f R14: 00007f5ebd945300 R15: 0000000000022000 INFO: task syz-executor.1:1230 blocked for more than 144 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:26968 pid:1230 ppid:5092 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:758 [inline] process_measurement+0x435/0x1ce0 security/integrity/ima/ima_main.c:243 ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:539 do_open fs/namei.c:3562 [inline] path_openat+0x280a/0x3170 fs/namei.c:3715 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1368 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5ebcc8c169 RSP: 002b:00007f5ebd924168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f5ebcdac120 RCX: 00007f5ebcc8c169 RDX: 0000000000000000 RSI: 000000000014da42 RDI: 00000000200000c0 RBP: 00007f5ebcce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcbae2808f R14: 00007f5ebd924300 R15: 0000000000022000 Showing all locks held in the system: 2 locks held by kworker/u4:0/9: #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc900000e7d20 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25570 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf25d70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf253a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u4:5/1154: #0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 #1: ffff8880b9828788 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:976 #2: ffff88808a3c8ad8 (key#16){+...}-{2:2}, at: spin_lock_bh include/linux/spinlock.h:355 [inline] #2: ffff88808a3c8ad8 (key#16){+...}-{2:2}, at: batadv_tt_local_purge+0x107/0x340 net/batman-adv/translation-table.c:1355 2 locks held by getty/4744: #0: ffff8880284d7098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 3 locks held by kworker/u4:1/20866: #0: ffff88814481b138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc9000afafd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 #2: ffff8880167700e0 (&type->s_umount_key#41){.+.+}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 2 locks held by syz-executor.1/1213: #0: ffff88807d242460 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1254 #1: ffff888038474a38 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888038474a38 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_buffered_write_iter+0xaf/0x3a0 fs/ext4/file.c:283 3 locks held by syz-executor.1/1229: #0: ffff88807d242460 (sb_writers#4){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2505 [inline] #0: ffff88807d242460 (sb_writers#4){.+.+}-{0:0}, at: vfs_fallocate+0x4be/0x6b0 fs/open.c:323 #1: ffff888038474a38 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888038474a38 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_fallocate+0x145/0x2050 fs/ext4/extents.c:4700 #2: ffff888038474700 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_lock_xattr fs/ext4/xattr.h:155 [inline] #2: ffff888038474700 (&ei->xattr_sem){++++}-{3:3}, at: ext4_convert_inline_data+0x3b6/0x620 fs/ext4/inline.c:2063 2 locks held by syz-executor.1/1230: #0: ffff88807d242460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888038474a38 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888038474a38 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: process_measurement+0x435/0x1ce0 security/integrity/ima/ima_main.c:243 1 lock held by syz-executor.1/1317: #0: ffff88801f7f64c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x148/0xa30 block/bdev.c:735 3 locks held by kworker/0:0/3385: 1 lock held by syz-executor.4/4961: #0: ffff88801f7f64c8 (&disk->open_mutex){+.+.}-{3:3}, at: sync_bdevs+0x1a9/0x320 block/bdev.c:974 2 locks held by syz-executor.4/4968: #0: ffff88807d2420e0 (&type->s_umount_key#30){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801f8067d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801f8067d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2725 2 locks held by syz-executor.4/4972: #0: ffff88807d2420e0 (&type->s_umount_key#30){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801f8067d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801f8067d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2725 2 locks held by syz-executor.4/4976: #0: ffff88807d2420e0 (&type->s_umount_key#30){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801f8067d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801f8067d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2725 2 locks held by syz-executor.4/4982: #0: ffff88807d2420e0 (&type->s_umount_key#30){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:743 #1: ffff88801f8067d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88801f8067d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2725 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 3396 Comm: kworker/0:4 Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: events_power_efficient gc_worker RIP: 0010:match_held_lock+0x77/0xb0 kernel/locking/lockdep.c:5146 Code: c7 c2 c0 20 fd 8f 48 29 d0 48 c1 f8 06 48 ba ab aa aa aa aa aa aa aa 48 0f af d0 bd 01 00 00 00 48 39 ca 74 02 31 ed 89 e8 5b <5d> c3 e8 92 5e 8e f9 31 ed 85 c0 74 f0 83 3d dd 0c b5 03 00 75 e7 RSP: 0018:ffffc900183a79b0 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 0000000000000002 RCX: ffffc900183a7a03 RDX: 1ffff92003074f48 RSI: ffffffff8cf253a0 RDI: ffff88803038a7c8 RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff1ca6946 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002 R13: 000000000000000a R14: ffff88803038a778 R15: ffff88803038a7c8 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c003bac060 CR3: 000000001eef3000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_held_lock kernel/locking/lockdep.c:5159 [inline] __lock_release kernel/locking/lockdep.c:5344 [inline] lock_release+0x24b/0x9d0 kernel/locking/lockdep.c:5689 rcu_read_unlock include/linux/rcupdate.h:806 [inline] gc_worker+0xe18/0x1580 net/netfilter/nf_conntrack_core.c:1572 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308