INFO: task syz-executor.4:766 blocked for more than 143 seconds. Not tainted 5.14.0-rc3-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:25232 pid: 766 ppid: 16641 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0xc07/0x11f0 kernel/sched/core.c:5940 schedule+0x14b/0x210 kernel/sched/core.c:6019 rwsem_down_write_slowpath+0xec7/0x14c0 kernel/locking/rwsem.c:1106 __down_write_common kernel/locking/rwsem.c:1261 [inline] __down_write kernel/locking/rwsem.c:1270 [inline] down_write+0x165/0x170 kernel/locking/rwsem.c:1407 inode_lock include/linux/fs.h:774 [inline] do_truncate+0x1e7/0x2e0 fs/open.c:62 handle_truncate fs/namei.c:3030 [inline] do_open fs/namei.c:3378 [inline] path_openat+0x2ab9/0x36b0 fs/namei.c:3507 do_filp_open+0x253/0x4d0 fs/namei.c:3534 do_sys_openat2+0x124/0x460 fs/open.c:1204 do_sys_open fs/open.c:1220 [inline] __do_sys_openat fs/open.c:1236 [inline] __se_sys_openat fs/open.c:1231 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1231 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+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007fa422e3a188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000000000056c1a8 RCX: 00000000004665e9 RDX: 0000000000007a05 RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001700 R11: 0000000000000246 R12: 000000000056c1a8 R13: 00007ffc1dd81ecf R14: 00007fa422e3a300 R15: 0000000000022000 INFO: task syz-executor.4:771 blocked for more than 143 seconds. Not tainted 5.14.0-rc3-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27448 pid: 771 ppid: 16641 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4683 [inline] __schedule+0xc07/0x11f0 kernel/sched/core.c:5940 schedule+0x14b/0x210 kernel/sched/core.c:6019 rwsem_down_write_slowpath+0xec7/0x14c0 kernel/locking/rwsem.c:1106 __down_write_common kernel/locking/rwsem.c:1261 [inline] __down_write kernel/locking/rwsem.c:1270 [inline] down_write+0x165/0x170 kernel/locking/rwsem.c:1407 inode_lock include/linux/fs.h:774 [inline] ext4_buffered_write_iter+0xaf/0x590 fs/ext4/file.c:263 ext4_file_write_iter+0x8f7/0x1b90 fs/ext4/file.c:519 call_write_iter include/linux/fs.h:2114 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0xa39/0xc90 fs/read_write.c:605 ksys_write+0x171/0x2a0 fs/read_write.c:658 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+0x44/0xae RIP: 0033:0x4665e9 RSP: 002b:00007fa422e19188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056c260 RCX: 00000000004665e9 RDX: 0000000000000012 RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c260 R13: 00007ffc1dd81ecf R14: 00007fa422e19300 R15: 0000000000022000 Showing all locks held in the system: 3 locks held by kworker/u4:3/110: #0: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x1b/0x30 kernel/sched/core.c:460 #1: ffff8880b9c1f848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x4ad/0x820 kernel/sched/psi.c:871 #2: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:460 [inline] #2: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1307 [inline] #2: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1610 [inline] #2: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: ttwu_queue kernel/sched/core.c:3560 [inline] #2: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: try_to_wake_up+0x815/0xe10 kernel/sched/core.c:3840 1 lock held by khungtaskd/1645: #0: ffffffff8c7177c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 arch/x86/pci/mmconfig_64.c:151 1 lock held by in:imklog/8151: #0: ffff888022d9caf0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x24e/0x2f0 fs/file.c:974 2 locks held by agetty/8168: #0: ffff888028e56098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90000f5c2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1c30 drivers/tty/n_tty.c:2113 2 locks held by syz-executor.4/766: #0: ffff8880293fa460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:375 #1: ffff888086cd8488 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:774 [inline] #1: ffff888086cd8488 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: do_truncate+0x1e7/0x2e0 fs/open.c:62 3 locks held by syz-executor.4/771: #0: ffff888034fd39f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x24e/0x2f0 fs/file.c:974 #1: ffff8880293fa460 (sb_writers#5){.+.+}-{0:0}, at: vfs_write+0x21b/0xc90 fs/read_write.c:601 #2: ffff888086cd8488 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:774 [inline] #2: ffff888086cd8488 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xaf/0x590 fs/ext4/file.c:263 3 locks held by syz-executor.4/773: #0: ffff8880293fa460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write_file+0x5a/0x1f0 fs/namespace.c:419 #1: ffff888086cd8488 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:774 [inline] #1: ffff888086cd8488 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: lock_two_nondirectories+0xdc/0x130 fs/inode.c:1038 #2: ffff888086cd8e80 (&sb->s_type->i_mutex_key#9/4){+.+.}-{3:3}, at: ext4_move_extents+0x347/0x16f0 fs/ext4/move_extent.c:603 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1645 Comm: khungtaskd Not tainted 5.14.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1d3/0x29f lib/dump_stack.c:105 nmi_cpu_backtrace+0x16c/0x190 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x191/0x2f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xd06/0xd50 kernel/hung_task.c:295 kthread+0x453/0x480 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4842 Comm: systemd-journal Not tainted 5.14.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:rcu_preempt_read_enter kernel/rcu/tree_plugin.h:408 [inline] RIP: 0010:__rcu_read_lock+0x1/0x60 kernel/rcu/tree_plugin.h:428 Code: 80 e1 07 38 c1 0f 8c 1d fc ff ff 4c 89 f7 e8 f6 90 5d 00 e9 10 fc ff ff e8 7c 0d 6d 08 66 66 2e 0f 1f 84 00 00 00 00 00 90 53 <65> 48 8b 1c 25 80 ef 01 00 48 81 c3 cc 03 00 00 48 89 d8 48 c1 e8 RSP: 0018:ffffc9000160f3a8 EFLAGS: 00000293 RAX: ffffffff818c2146 RBX: 00007fee060d285d RCX: ffff88802b4b54c0 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007fee060d285d RBP: 0000000000000001 R08: 0000000000000012 R09: ffffc9000160f510 R10: fffff520002c1e94 R11: 0000000000000000 R12: ffff88802b4b54c0 R13: ffffffff816ddcc0 R14: 00007fee060d285d R15: 1ffff920002c1e91 FS: 00007fee06b438c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fee028a9000 CR3: 0000000025617000 CR4: 00000000001526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock include/linux/rcupdate.h:685 [inline] is_bpf_text_address+0x1b/0x270 kernel/bpf/core.c:704 kernel_text_address kernel/extable.c:151 [inline] __kernel_text_address+0x93/0x100 kernel/extable.c:105 unwind_get_return_address+0x48/0x80 arch/x86/kernel/unwind_orc.c:318 arch_stack_walk+0x98/0xe0 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x104/0x1e0 kernel/stacktrace.c:121 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x96/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook mm/slab.h:519 [inline] slab_alloc_node mm/slub.c:2956 [inline] slab_alloc mm/slub.c:2964 [inline] kmem_cache_alloc+0x1d1/0x340 mm/slub.c:2969 kmem_cache_zalloc include/linux/slab.h:711 [inline] __alloc_file+0x26/0x2f0 fs/file_table.c:101 alloc_empty_file+0xa9/0x1b0 fs/file_table.c:150 path_openat+0x114/0x36b0 fs/namei.c:3493 do_filp_open+0x253/0x4d0 fs/namei.c:3534 do_sys_openat2+0x124/0x460 fs/open.c:1204 do_sys_open fs/open.c:1220 [inline] __do_sys_open fs/open.c:1228 [inline] __se_sys_open fs/open.c:1224 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1224 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+0x44/0xae RIP: 0033:0x7fee060d285d Code: bb 20 00 00 75 10 b8 02 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 b8 02 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 67 f6 ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffe63c3daf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffe63c3de00 RCX: 00007fee060d285d RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 00005648d1ee2e20 RBP: 000000000000000d R08: 000000000000ffc0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000293 R12: 00000000ffffffff R13: 00005648d1ed5040 R14: 00007ffe63c3ddc0 R15: 00005648d1ee2c40