INFO: task syz-executor.2:6145 blocked for more than 143 seconds. Not tainted 6.7.0-rc8-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:23000 pid:6145 tgid:6144 ppid:5097 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 btrfs_commit_transaction+0x9bc/0x3740 fs/btrfs/transaction.c:2362 flush_space+0x9ae/0xcf0 fs/btrfs/space-info.c:818 priority_reclaim_metadata_space+0xe7/0x5a0 fs/btrfs/space-info.c:1412 __reserve_bytes+0xb74/0x18a0 fs/btrfs/space-info.c:1757 btrfs_reserve_metadata_bytes+0x2e/0x110 fs/btrfs/space-info.c:1783 btrfs_block_rsv_refill+0xd8/0x1a0 fs/btrfs/block-rsv.c:265 evict_refill_and_join+0xcf/0x210 fs/btrfs/inode.c:5169 btrfs_evict_inode+0xa15/0x1010 fs/btrfs/inode.c:5263 evict+0x2a4/0x630 fs/inode.c:666 do_unlinkat+0x512/0x830 fs/namei.c:4389 __do_sys_unlink fs/namei.c:4430 [inline] __se_sys_unlink fs/namei.c:4428 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4428 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fc17547cce9 RSP: 002b:00007fc1762380c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007fc17559bf80 RCX: 00007fc17547cce9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007fc1754c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc17559bf80 R15: 00007ffddca0d2a8 INFO: task syz-executor.2:6191 blocked for more than 144 seconds. Not tainted 6.7.0-rc8-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:23216 pid:6191 tgid:6144 ppid:5097 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 __wait_on_freeing_inode fs/inode.c:2281 [inline] find_inode+0x2fe/0x430 fs/inode.c:907 ilookup5_nowait fs/inode.c:1458 [inline] ilookup5+0xa1/0x200 fs/inode.c:1487 iget5_locked+0x37/0x270 fs/inode.c:1268 btrfs_iget_locked fs/btrfs/inode.c:5535 [inline] btrfs_iget_path+0x147/0x1540 fs/btrfs/inode.c:5552 add_conflicting_inode fs/btrfs/tree-log.c:5584 [inline] copy_inode_items_to_log fs/btrfs/tree-log.c:5855 [inline] btrfs_log_inode+0x1ae5/0x43f0 fs/btrfs/tree-log.c:6519 btrfs_log_inode_parent+0xab0/0x1100 fs/btrfs/tree-log.c:7006 btrfs_log_new_name+0x55d/0x970 fs/btrfs/tree-log.c:7511 btrfs_rename fs/btrfs/inode.c:9141 [inline] btrfs_rename2+0x245f/0x2d90 fs/btrfs/inode.c:9185 vfs_rename+0xaba/0xde0 fs/namei.c:4844 do_renameat2+0xd5a/0x1390 fs/namei.c:4996 __do_sys_rename fs/namei.c:5042 [inline] __se_sys_rename fs/namei.c:5040 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:5040 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fc17547cce9 RSP: 002b:00007fc1762170c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fc17559c050 RCX: 00007fc17547cce9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000080 RBP: 00007fc1754c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc17559c050 R15: 00007ffddca0d2a8 INFO: task syz-executor.2:6192 blocked for more than 146 seconds. Not tainted 6.7.0-rc8-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:26192 pid:6192 tgid:6144 ppid:5097 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:378 btrfs_buffered_write+0x230/0x1380 fs/btrfs/file.c:1204 btrfs_do_write_iter+0x2bb/0x1190 fs/btrfs/file.c:1687 do_iter_readv_writev+0x330/0x4a0 do_iter_write+0x1f6/0x8d0 fs/read_write.c:860 iter_file_splice_write+0x86d/0x1010 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0xea/0x1c0 fs/splice.c:1142 splice_direct_to_actor+0x376/0x9e0 fs/splice.c:1088 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194 do_sendfile+0x62c/0x1000 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fc17547cce9 RSP: 002b:00007fc1761f60c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fc17559c120 RCX: 00007fc17547cce9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000006 RBP: 00007fc1754c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000100800001 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc17559c120 R15: 00007ffddca0d2a8 Showing all locks held in the system: 3 locks held by kworker/0:0/8: #0: ffff8880b983c358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #1: ffff8880b9828808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988 #2: ffff8880b9843f58 (&ACCESS_PRIVATE(sdp, lock)){....}-{2:2}, at: spin_lock_irq include/linux/spinlock.h:376 [inline] #2: ffff8880b9843f58 (&ACCESS_PRIVATE(sdp, lock)){....}-{2:2}, at: srcu_invoke_callbacks+0x356/0x490 kernel/rcu/srcutree.c:1751 1 lock held by khungtaskd/29: #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 4 locks held by kworker/u4:3/48: 2 locks held by kworker/1:2/55: #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #1: ffffc9000130fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #1: ffffc9000130fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 2 locks held by getty/4819: #0: ffff88802acb20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.0/5090: #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:996 1 lock held by syz-executor.4/5095: 2 locks held by syz-executor.2/6145: #0: ffff8880810a4418 (sb_writers#20){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404 #1: ffff888056d02390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:292 7 locks held by syz-executor.2/6191: #0: ffff8880810a4418 (sb_writers#20){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404 #1: ffff88823bc5c588 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #1: ffff88823bc5c588 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline] #1: ffff88823bc5c588 (&type->i_mutex_dir_key#12/1){+.+.}-{3:3}, at: do_renameat2+0x601/0x1390 fs/namei.c:4935 #2: ffff888081d94680 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #2: ffff888081d94680 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: lock_two_inodes+0x100/0x180 fs/inode.c:1129 #3: ffff8880810a4608 (sb_internal #4){.+.+}-{0:0}, at: btrfs_rename fs/btrfs/inode.c:9059 [inline] #4){.+.+}-{0:0}, at: btrfs_rename2+0x17fc/0x2d90 fs/btrfs/inode.c:9185 #4: ffff888056d02390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:292 #5: ffff888056d023b8 (btrfs_trans_num_extwriters){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:292 #6: ffff888081d942e0 (&ei->log_mutex){+.+.}-{3:3}, at: btrfs_log_inode+0x4c4/0x43f0 fs/btrfs/tree-log.c:6408 2 locks held by syz-executor.2/6192: #0: ffff8880810a4418 (sb_writers#20){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff888081d94680 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888081d94680 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:378 1 lock held by btrfs-transacti/6190: #0: ffff888056d007d8 (&fs_info->transaction_kthread_mutex){+.+.}-{3:3}, at: transaction_kthread+0x100/0x500 fs/btrfs/disk-io.c:1546 1 lock held by kworker/u4:8/6831: #0: ffff8880b993c358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 6 locks held by syz-executor.1/8200: 2 locks held by syz-executor.1/8201: #0: ffff88802185e418 (sb_writers#19){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff8880b993c358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 3 locks held by syz-executor.1/8209: 2 locks held by syz-executor.2/8206: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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+0x198/0x310 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8209 Comm: syz-executor.1 Not tainted 6.7.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:__sanitizer_cov_trace_switch+0xa/0x110 kernel/kcov.c:320 Code: c2 4c 89 12 48 c7 44 11 08 07 00 00 00 48 89 7c 11 10 48 89 74 11 18 4c 89 44 11 20 c3 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 54 <53> 4c 8b 16 48 8b 46 08 48 83 c0 f8 48 c1 c0 3d 48 83 f8 02 7f 1f RSP: 0018:ffffc9000347e5a8 EFLAGS: 00000202 RAX: 0000000000000000 RBX: 0000000000000002 RCX: ffff88801f7bd940 RDX: ffffffff8f8bfb18 RSI: ffffffff8d79dcd0 RDI: 0000000000000002 RBP: ffffffff8f8bfb1d R08: 0000000000000005 R09: ffffffff813dc5e3 R10: 0000000000000008 R11: ffff88801f7bd940 R12: ffffffff8f8bfb1c R13: dffffc0000000000 R14: ffffc9000347e6f0 R15: 1ffff9200068fcd4 FS: 00007fd1f3b556c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002003e3c0 CR3: 0000000025a6b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0xff7/0x29e0 arch/x86/kernel/unwind_orc.c:581 arch_stack_walk+0x146/0x1a0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x66/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x6c/0x3c0 mm/slab.h:763 slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x19e/0x2b0 mm/slub.c:3502 nilfs_btree_alloc_path fs/nilfs2/btree.c:28 [inline] nilfs_btree_lookup_contig+0x157/0xfa0 fs/nilfs2/btree.c:715 nilfs_bmap_lookup_contig+0x8b/0x160 fs/nilfs2/bmap.c:100 nilfs_get_block+0x245/0x8e0 fs/nilfs2/inode.c:85 do_mpage_readpage+0x90c/0x1f60 fs/mpage.c:233 mpage_readahead+0x44f/0x930 fs/mpage.c:381 read_pages+0x183/0x830 mm/readahead.c:160 page_cache_ra_unbounded+0x68e/0x7c0 mm/readahead.c:269 do_async_mmap_readahead mm/filemap.c:3178 [inline] filemap_fault+0x74a/0x1670 mm/filemap.c:3232 __do_fault+0x133/0x4e0 mm/memory.c:4266 do_read_fault mm/memory.c:4629 [inline] do_fault mm/memory.c:4763 [inline] do_pte_missing mm/memory.c:3731 [inline] handle_pte_fault mm/memory.c:5039 [inline] __handle_mm_fault mm/memory.c:5180 [inline] handle_mm_fault+0x4c9b/0x6680 mm/memory.c:5345 faultin_page mm/gup.c:956 [inline] __get_user_pages+0x6bd/0x15f0 mm/gup.c:1239 populate_vma_page_range+0x2aa/0x370 mm/gup.c:1677 __mm_populate+0x279/0x450 mm/gup.c:1786 mm_populate include/linux/mm.h:3379 [inline] vm_mmap_pgoff+0x304/0x420 mm/util.c:561 ksys_mmap_pgoff+0x4ff/0x6d0 mm/mmap.c:1425 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fd1f2e7cce9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd1f3b550c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fd1f2f9c050 RCX: 00007fd1f2e7cce9 RDX: 00000000027fffff RSI: 0000000000600000 RDI: 0000000020000000 RBP: 00007fd1f2ec947a R08: 0000000000000004 R09: 0000000000000000 R10: 0000000004002011 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd1f2f9c050 R15: 00007ffef3579e48