INFO: task syz-executor.4:6433 blocked for more than 143 seconds. Not tainted 6.7.0-rc3-syzkaller-00033-g3b47bc037bd4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:23504 pid:6433 tgid:6429 ppid:5093 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:2364 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+0x9ff/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:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f2e5b67cae9 RSP: 002b:00007f2e5a1fe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f2e5b79bf80 RCX: 00007f2e5b67cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 00007f2e5b6c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f2e5b79bf80 R15: 00007ffeb307d1d8 INFO: task syz-executor.4:6485 blocked for more than 143 seconds. Not tainted 6.7.0-rc3-syzkaller-00033-g3b47bc037bd4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:23160 pid:6485 tgid:6429 ppid:5093 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:51 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f2e5b67cae9 RSP: 002b:00007f2e5a1dd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f2e5b79c050 RCX: 00007f2e5b67cae9 RDX: 0000000000000000 RSI: 0000000020000340 RDI: 0000000020000300 RBP: 00007f2e5b6c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f2e5b79c050 R15: 00007ffeb307d1d8 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92cf60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92cf60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92cf60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4811: #0: ffff88814ac550a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 3 locks held by kworker/1:5/5158: #0: ffff888012c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #1: ffffc900046efd20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc900046efd20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2703 #2: ffff888036807240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2d1/0x4130 drivers/net/netdevsim/fib.c:1489 2 locks held by syz-executor.4/6433: #0: ffff88823bd04418 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404 #1: ffff88801abe2390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:294 7 locks held by syz-executor.4/6485: #0: ffff88823bd04418 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404 #1: ffff8880748b8ed0 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #1: ffff8880748b8ed0 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline] #1: ffff8880748b8ed0 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: do_renameat2+0x601/0x1390 fs/namei.c:4935 #2: ffff8880748b9818 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline] #2: ffff8880748b9818 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: lock_two_inodes+0x100/0x180 fs/inode.c:1129 #3: ffff88823bd04608 (sb_internal#2){.+.+}-{0:0}, at: btrfs_rename fs/btrfs/inode.c:9059 [inline] #3: ffff88823bd04608 (sb_internal#2){.+.+}-{0:0}, at: btrfs_rename2+0x17fc/0x2d90 fs/btrfs/inode.c:9185 #4: ffff88801abe2390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:294 #5: ffff88801abe23b8 (btrfs_trans_num_extwriters){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:294 #6: ffff8880748b9478 (&ei->log_mutex){+.+.}-{3:3}, at: btrfs_log_inode+0x4c4/0x43f0 fs/btrfs/tree-log.c:6408 1 lock held by btrfs-transacti/6465: #0: ffff88801abe07d8 (&fs_info->transaction_kthread_mutex){+.+.}-{3:3}, at: transaction_kthread+0x100/0x500 fs/btrfs/disk-io.c:1546 1 lock held by syz-executor.4/8152: #0: ffff88823bd040e0 (&type->s_umount_key#54){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88823bd040e0 (&type->s_umount_key#54){++++}-{3:3}, at: super_lock+0x176/0x3a0 fs/super.c:117 1 lock held by syz-executor.4/8287: #0: ffff88823bd040e0 (&type->s_umount_key#54){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88823bd040e0 (&type->s_umount_key#54){++++}-{3:3}, at: super_lock+0x176/0x3a0 fs/super.c:117 1 lock held by syz-executor.4/8288: #0: ffff88823bd040e0 (&type->s_umount_key#54){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88823bd040e0 (&type->s_umount_key#54){++++}-{3:3}, at: super_lock+0x176/0x3a0 fs/super.c:117 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc3-syzkaller-00033-g3b47bc037bd4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 42 Comm: kworker/u4:2 Not tainted 6.7.0-rc3-syzkaller-00033-g3b47bc037bd4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:__local_bh_enable_ip+0x106/0x1f0 kernel/softirq.c:368 Code: 00 00 00 00 9c 8f 44 24 40 43 80 7c 25 00 00 74 08 4c 89 f7 e8 cb 8d 94 00 8b 44 24 40 fa a9 00 02 00 00 74 05 e8 0a 68 3f 00 <65> 8b 05 db c4 ad 7e 25 00 ff 00 00 3d 00 02 00 00 75 0a 48 8b 7c RSP: 0018:ffffc90000b2fa40 EFLAGS: 00000002 RAX: 0000000000000001 RBX: 1ffff92000165f4c RCX: ffffffff81955b6c RDX: 0000000000000000 RSI: ffffffff8bbdf1e0 RDI: ffffffff8bbdf1a0 RBP: ffffc90000b2faf0 R08: ffffffff8f00b8af R09: 1ffffffff1e01715 R10: dffffc0000000000 R11: fffffbfff1e01716 R12: dffffc0000000000 R13: 1ffff92000165f50 R14: ffffc90000b2fa80 R15: 0000000000000201 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555556ff6938 CR3: 000000000d730000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: spin_unlock_bh include/linux/spinlock.h:396 [inline] batadv_nc_purge_paths+0x309/0x3a0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x365/0x610 net/batman-adv/network-coding.c:722 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2703 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2784 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