INFO: task syz-executor.2:7182 blocked for more than 143 seconds. Not tainted 6.9.0-rc7-next-20240509-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:24568 pid:7182 tgid:7139 ppid:5105 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 btrfs_commit_transaction+0x9c0/0x3740 fs/btrfs/transaction.c:2306 flush_space+0x9b0/0xd20 fs/btrfs/space-info.c:817 priority_reclaim_metadata_space+0xe7/0x5a0 fs/btrfs/space-info.c:1411 __reserve_bytes+0xb75/0x18d0 fs/btrfs/space-info.c:1756 btrfs_reserve_metadata_bytes+0x2e/0x110 fs/btrfs/space-info.c:1782 btrfs_block_rsv_refill+0xd8/0x1b0 fs/btrfs/block-rsv.c:264 evict_refill_and_join+0xcf/0x210 fs/btrfs/inode.c:5224 btrfs_evict_inode+0xa23/0x1040 fs/btrfs/inode.c:5319 evict+0x2a8/0x630 fs/inode.c:667 do_unlinkat+0x512/0x830 fs/namei.c:4414 __do_sys_unlinkat fs/namei.c:4450 [inline] __se_sys_unlinkat fs/namei.c:4443 [inline] __x64_sys_unlinkat+0xce/0xf0 fs/namei.c:4443 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd6e307dd69 RSP: 002b:00007fd6e3d4e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 00007fd6e31ac050 RCX: 00007fd6e307dd69 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000005 RBP: 00007fd6e30ca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd6e31ac050 R15: 00007ffea32bfd48 INFO: task syz-executor.2:7183 blocked for more than 145 seconds. Not tainted 6.9.0-rc7-next-20240509-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:24120 pid:7183 tgid:7139 ppid:5105 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 __wait_on_freeing_inode fs/inode.c:2246 [inline] find_inode+0x305/0x440 fs/inode.c:908 ilookup5_nowait fs/inode.c:1422 [inline] ilookup5+0xa1/0x1f0 fs/inode.c:1451 iget5_locked+0x37/0x280 fs/inode.c:1232 btrfs_iget_locked fs/btrfs/inode.c:5590 [inline] btrfs_iget_path+0x14f/0x14b0 fs/btrfs/inode.c:5607 add_conflicting_inode fs/btrfs/tree-log.c:5652 [inline] copy_inode_items_to_log fs/btrfs/tree-log.c:5923 [inline] btrfs_log_inode+0x2013/0x4620 fs/btrfs/tree-log.c:6587 log_new_dir_dentries+0xda5/0x1310 fs/btrfs/tree-log.c:5511 btrfs_log_inode_parent+0xcc7/0x1100 fs/btrfs/tree-log.c:7146 btrfs_log_dentry_safe+0x61/0x80 fs/btrfs/tree-log.c:7175 btrfs_sync_file+0xa1a/0xf80 fs/btrfs/file.c:1943 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fdatasync fs/sync.c:225 [inline] __se_sys_fdatasync fs/sync.c:223 [inline] __x64_sys_fdatasync+0xba/0x110 fs/sync.c:223 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd6e307dd69 RSP: 002b:00007fd6e3d2d0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004b RAX: ffffffffffffffda RBX: 00007fd6e31ac120 RCX: 00007fd6e307dd69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: 00007fd6e30ca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fd6e31ac120 R15: 00007ffea32bfd48 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e333e60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e333e60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8e333e60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by kworker/u8:8/2401: 2 locks held by getty/4848: #0: ffff88802b68f0a0 (&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+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 2 locks held by syz-executor.2/7182: #0: ffff88805e16c420 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409 #1: ffff88807c26e3f0 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x405/0xcf0 fs/btrfs/transaction.c:290 6 locks held by syz-executor.2/7183: #0: ffff888061ffb1b0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline] #0: ffff888061ffb1b0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xe0 fs/btrfs/inode.c:385 #1: ffff888061ffb038 (&ei->i_mmap_lock){+.+.}-{3:3}, at: btrfs_inode_lock+0xc5/0xe0 fs/btrfs/inode.c:388 #2: ffff88805e16c610 (sb_internal#2){.+.+}-{0:0}, at: btrfs_sync_file+0x9d4/0xf80 fs/btrfs/file.c:1936 #3: ffff88807c26e3f0 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x405/0xcf0 fs/btrfs/transaction.c:290 #4: ffff88807c26e418 (btrfs_trans_num_extwriters){++++}-{0:0}, at: join_transaction+0x405/0xcf0 fs/btrfs/transaction.c:290 #5: ffff888061ff9c40 (&ei->log_mutex){+.+.}-{3:3}, at: btrfs_log_inode+0x4ed/0x4620 fs/btrfs/tree-log.c:6476 1 lock held by btrfs-transacti/7177: #0: ffff88807c26c7c0 (&fs_info->transaction_kthread_mutex){+.+.}-{3:3}, at: transaction_kthread+0x100/0x500 fs/btrfs/disk-io.c:1581 1 lock held by syz-executor.4/9522: 6 locks held by syz-executor.0/9521: #0: ffffffff8e20f920 (console_lock){+.+.}-{0:0}, at: con_font_set drivers/tty/vt/vt.c:4798 [inline] #0: ffffffff8e20f920 (console_lock){+.+.}-{0:0}, at: con_font_op+0xbdf/0x1300 drivers/tty/vt/vt.c:4851 #1: ffff88801c7e7a80 (&helper->lock){+.+.}-{3:3}, at: drm_fb_helper_pan_display+0xbc/0xc10 drivers/gpu/drm/drm_fb_helper.c:1423 #2: ffff8880203501b0 (&dev->master_mutex){+.+.}-{3:3}, at: drm_master_internal_acquire+0x20/0x70 drivers/gpu/drm/drm_auth.c:452 #3: ffff88801c7e7898 (&client->modeset_mutex){+.+.}-{3:3}, at: drm_client_modeset_commit_locked+0x50/0x520 drivers/gpu/drm/drm_client_modeset.c:1164 #4: ffffc90003f1f470 (crtc_ww_class_acquire){+.+.}-{0:0}, at: drm_client_modeset_commit_atomic+0xd5/0x7e0 drivers/gpu/drm/drm_client_modeset.c:1002 #5: ffff8880205800b0 (crtc_ww_class_mutex){+.+.}-{3:3}, at: modeset_lock+0x2bf/0x650 drivers/gpu/drm/drm_modeset_lock.c:314 1 lock held by syz-executor.1/9538: #0: ffff888020b39b60 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_set_status+0x2a/0x900 drivers/block/loop.c:1265 1 lock held by syz-executor.2/9548: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.9.0-rc7-next-20240509-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.9.0-rc7-next-20240509-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:check_wait_context kernel/locking/lockdep.c:4774 [inline] RIP: 0010:__lock_acquire+0x69b/0x1fd0 kernel/locking/lockdep.c:5087 Code: ff 48 8b 74 24 08 48 ba 00 00 00 00 00 fc ff df 90 0f 0b 90 90 90 31 db 48 81 c3 c5 00 00 00 48 89 d8 48 c1 e8 03 0f b6 04 10 <84> c0 0f 85 6c 11 00 00 4a 8d 04 f6 48 89 44 24 48 40 84 ed 4c 8b RSP: 0018:ffffc90000157590 EFLAGS: 00000803 RAX: 0000000000000000 RBX: ffffffff92c9760d RCX: ffffffff817276ea RDX: dffffc0000000000 RSI: ffff8880172ce4e0 RDI: ffffffff92fb1580 RBP: 0000000000000002 R08: ffffffff92fb1587 R09: 1ffffffff25f62b0 R10: dffffc0000000000 R11: fffffbfff25f62b1 R12: 0000000000000001 R13: ffff8880172cda00 R14: 0000000000000005 R15: ffff8880172ce528 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f492621f000 CR3: 00000000609ee000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 __debug_check_no_obj_freed lib/debugobjects.c:978 [inline] debug_check_no_obj_freed+0x234/0x580 lib/debugobjects.c:1019 slab_free_hook mm/slub.c:2162 [inline] slab_free mm/slub.c:4436 [inline] kmem_cache_free+0x10f/0x350 mm/slub.c:4511 rcu_do_batch kernel/rcu/tree.c:2535 [inline] rcu_core+0xafd/0x1830 kernel/rcu/tree.c:2809 handle_softirqs+0x2d6/0x990 kernel/softirq.c:554 run_ksoftirqd+0xca/0x130 kernel/softirq.c:928 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244