INFO: task syz.8.1463:14826 blocked for more than 144 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.1463 state:D stack:22776 pid:14826 tgid:14825 ppid:11540 task_flags:0x440140 flags:0x00080002 Call Trace: context_switch kernel/sched/core.c:5258 [inline] __schedule+0x150e/0x5070 kernel/sched/core.c:6866 __schedule_loop kernel/sched/core.c:6948 [inline] schedule+0x165/0x360 kernel/sched/core.c:6963 __wait_on_freeing_inode+0x1c5/0x2f0 fs/inode.c:2524 find_inode+0x30c/0x540 fs/inode.c:1057 iget5_locked_rcu+0xcc/0x230 fs/inode.c:1412 btrfs_iget_locked fs/btrfs/inode.c:5914 [inline] btrfs_iget+0x126/0x350 fs/btrfs/inode.c:5956 btrfs_iget_logging fs/btrfs/tree-log.c:276 [inline] add_conflicting_inode fs/btrfs/tree-log.c:6092 [inline] copy_inode_items_to_log fs/btrfs/tree-log.c:6370 [inline] btrfs_log_inode+0x1aa9/0x43a0 fs/btrfs/tree-log.c:7049 btrfs_log_inode_parent+0xa99/0x1190 fs/btrfs/tree-log.c:7512 btrfs_log_new_name+0x630/0xaa0 fs/btrfs/tree-log.c:8063 btrfs_rename_exchange fs/btrfs/inode.c:8467 [inline] btrfs_rename2+0x1445/0x3fc0 fs/btrfs/inode.c:8793 vfs_rename+0xbb6/0xee0 fs/namei.c:5995 do_renameat2+0x501/0x950 fs/namei.c:6113 __do_sys_renameat2 fs/namei.c:6143 [inline] __se_sys_renameat2 fs/namei.c:6140 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:6140 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc3d718f749 RSP: 002b:00007fc3d7fde038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007fc3d73e5fa0 RCX: 00007fc3d718f749 RDX: ffffffffffffff9c RSI: 0000200000000200 RDI: ffffffffffffff9c RBP: 00007fc3d7213f91 R08: 0000000000000002 R09: 0000000000000000 R10: 0000200000000280 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc3d73e6038 R14: 00007fc3d73e5fa0 R15: 00007ffe39549948 INFO: task syz.8.1463:14861 blocked for more than 144 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.1463 state:D stack:24632 pid:14861 tgid:14825 ppid:11540 task_flags:0x400040 flags:0x00080002 Call Trace: context_switch kernel/sched/core.c:5258 [inline] __schedule+0x150e/0x5070 kernel/sched/core.c:6866 __schedule_loop kernel/sched/core.c:6948 [inline] schedule+0x165/0x360 kernel/sched/core.c:6963 btrfs_commit_transaction+0x9f4/0x3bd0 fs/btrfs/transaction.c:2355 flush_space+0x4dd/0xd20 fs/btrfs/space-info.c:905 priority_reclaim_metadata_space+0x102/0x270 fs/btrfs/space-info.c:1537 handle_reserve_ticket fs/btrfs/space-info.c:-1 [inline] reserve_bytes+0xb6c/0x1420 fs/btrfs/space-info.c:1867 btrfs_reserve_metadata_bytes+0x28/0x150 fs/btrfs/space-info.c:1890 btrfs_block_rsv_refill+0xa3/0x190 fs/btrfs/block-rsv.c:261 evict_refill_and_join+0xcf/0x350 fs/btrfs/inode.c:5580 btrfs_evict_inode+0xa7c/0x1050 fs/btrfs/inode.c:5673 evict+0x5f4/0xae0 fs/inode.c:837 __dentry_kill+0x209/0x660 fs/dcache.c:670 finish_dput+0xc9/0x480 fs/dcache.c:879 end_renaming fs/namei.c:4052 [inline] do_renameat2+0x5cd/0x950 fs/namei.c:6115 __do_sys_rename fs/namei.c:6156 [inline] __se_sys_rename fs/namei.c:6154 [inline] __x64_sys_rename+0x82/0x90 fs/namei.c:6154 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc3d718f749 RSP: 002b:00007fc3d7fbd038 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fc3d73e6090 RCX: 00007fc3d718f749 RDX: 0000000000000000 RSI: 00002000000002c0 RDI: 0000200000000780 RBP: 00007fc3d7213f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc3d73e6128 R14: 00007fc3d73e6090 R15: 00007ffe39549948 Showing all locks held in the system: 2 locks held by ksoftirqd/0/15: 1 lock held by khungtaskd/31: #0: ffffffff8e13f2e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13f2e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:867 [inline] #0: ffffffff8e13f2e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6775 2 locks held by getty/5585: #0: ffff88814e1c90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000332b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x449/0x1460 drivers/tty/n_tty.c:2211 4 locks held by kworker/0:8/5980: #0: ffff88801e297948 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x841/0x15a0 kernel/workqueue.c:3254 #1: ffffc9000506fb80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x868/0x15a0 kernel/workqueue.c:3255 #2: ffff888143381198 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:895 [inline] #2: ffff888143381198 (&dev->mutex){....}-{4:4}, at: hub_event+0x187/0x4ef0 drivers/usb/core/hub.c:5899 #3: ffff8880649f3198 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:895 [inline] #3: ffff8880649f3198 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x430 drivers/base/dd.c:1006 10 locks held by syz.8.1463/14826: #0: ffff88823bfbe420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:499 #1: ffff88823bfbe730 (&type->s_vfs_rename_key#8){+.+.}-{4:4}, at: lock_rename fs/namei.c:3716 [inline] #1: ffff88823bfbe730 (&type->s_vfs_rename_key#8){+.+.}-{4:4}, at: __start_renaming+0xed/0x410 fs/namei.c:3808 #2: ffff88823bf6c4f0 (&type->i_mutex_dir_key#19/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1073 [inline] #2: ffff88823bf6c4f0 (&type->i_mutex_dir_key#19/1){+.+.}-{4:4}, at: lock_two_directories+0x141/0x220 fs/namei.c:3682 #3: ffff8880579f1630 (&type->i_mutex_dir_key#19/5){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1073 [inline] #3: ffff8880579f1630 (&type->i_mutex_dir_key#19/5){+.+.}-{4:4}, at: lock_two_directories+0x16b/0x220 fs/namei.c:3683 #4: ffff888055894150 (&sb->s_type->i_mutex_key#39){++++}-{4:4}, at: inode_lock include/linux/fs.h:1028 [inline] #4: ffff888055894150 (&sb->s_type->i_mutex_key#39){++++}-{4:4}, at: lock_two_nondirectories+0xe7/0x180 fs/inode.c:1250 #5: ffff8880558949f0 (&sb->s_type->i_mutex_key#39/4){+.+.}-{4:4}, at: vfs_rename+0x661/0xee0 fs/namei.c:5958 #6: ffff88823bfbe610 (sb_internal#3){.+.+}-{0:0}, at: btrfs_rename_exchange fs/btrfs/inode.c:8302 [inline] #6: ffff88823bfbe610 (sb_internal#3){.+.+}-{0:0}, at: btrfs_rename2+0x77b/0x3fc0 fs/btrfs/inode.c:8793 #7: ffff88805e3c2528 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x41b/0xd60 fs/btrfs/transaction.c:298 #8: ffff88805e3c2550 (btrfs_trans_num_extwriters){++++}-{0:0}, at: join_transaction+0x41b/0xd60 fs/btrfs/transaction.c:298 #9: ffff888055894670 (&ei->log_mutex){+.+.}-{4:4}, at: btrfs_log_inode+0x45b/0x43a0 fs/btrfs/tree-log.c:6925 2 locks held by syz.8.1463/14861: #0: ffff88823bfbe420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:499 #1: ffff88805e3c2528 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x41b/0xd60 fs/btrfs/transaction.c:298 1 lock held by btrfs-transacti/14854: #0: ffff88805e3c0850 (&fs_info->transaction_kthread_mutex){+.+.}-{4:4}, at: transaction_kthread+0xe4/0x450 fs/btrfs/disk-io.c:1539 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] __sys_info lib/sys_info.c:157 [inline] sys_info+0x135/0x170 lib/sys_info.c:165 check_hung_uninterruptible_tasks kernel/hung_task.c:363 [inline] watchdog+0xe40/0xe90 kernel/hung_task.c:557 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 13 Comm: kworker/u8:1 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: events_unbound nsim_dev_trap_report_work RIP: 0010:check_preemption_disabled+0x40/0x120 lib/smp_processor_id.c:53 Code: 08 65 8b 05 c6 e1 41 07 65 8b 0d bb e1 41 07 f7 c1 ff ff ff 7f 74 23 65 48 8b 0d 9b e1 41 07 48 3b 4c 24 08 0f 85 cc 00 00 00 <48> 83 c4 10 5b 41 5e 41 5f 5d e9 81 cd 02 00 cc 48 c7 04 24 00 00 RSP: 0018:ffffc90000126e00 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 71bc7f0ef4fe6b00 RDX: 0000000000000000 RSI: ffffffff8be07940 RDI: ffffffff8be07900 RBP: ffffffff81742f85 R08: 0000000000000000 R09: 0000000000000000 R10: ffffc90000127018 R11: ffffffff81ad9d50 R12: 0000000000000002 R13: ffffffff8e13f2e0 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888125c25000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001420 CR3: 0000000076524000 CR4: 00000000003526f0 DR0: ffffffffffffffff DR1: 0000000000000007 DR2: 0000000000000083 DR3: ffffffffefffff18 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: rcu_is_watching_curr_cpu include/linux/context_tracking.h:128 [inline] rcu_is_watching+0x15/0xb0 kernel/rcu/tree.c:751 trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0x5f/0x340 kernel/locking/lockdep.c:5831 rcu_lock_acquire include/linux/rcupdate.h:331 [inline] rcu_read_lock include/linux/rcupdate.h:867 [inline] class_rcu_constructor include/linux/rcupdate.h:1195 [inline] unwind_next_frame+0xc2/0x23d0 arch/x86/kernel/unwind_orc.c:495 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 save_stack+0xf5/0x1f0 mm/page_owner.c:165 __set_page_owner+0x8d/0x4c0 mm/page_owner.c:341 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x234/0x290 mm/page_alloc.c:1857 prep_new_page mm/page_alloc.c:1865 [inline] get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3915 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5210 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2486 alloc_slab_page mm/slub.c:3075 [inline] allocate_slab+0x86/0x3b0 mm/slub.c:3248 new_slab mm/slub.c:3302 [inline] ___slab_alloc+0xf2b/0x1960 mm/slub.c:4656 __slab_alloc+0x65/0x100 mm/slub.c:4779 __slab_alloc_node mm/slub.c:4855 [inline] slab_alloc_node mm/slub.c:5255 [inline] kmem_cache_alloc_node_noprof+0x4ce/0x720 mm/slub.c:5319 __alloc_skb+0x255/0x430 net/core/skbuff.c:679 alloc_skb include/linux/skbuff.h:1383 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:819 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:876 [inline] nsim_dev_trap_report_work+0x29a/0xb80 drivers/net/netdevsim/dev.c:922 process_one_work+0x93a/0x15a0 kernel/workqueue.c:3279 process_scheduled_works kernel/workqueue.c:3362 [inline] worker_thread+0x9b0/0xee0 kernel/workqueue.c:3443 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x599/0xb30 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246