INFO: task syz-executor.3:30494 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.3 D28016 30494 8134 0x80000002 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 btrfs_tree_lock+0x4fe/0x810 fs/btrfs/locking.c:233 btrfs_init_new_buffer fs/btrfs/extent-tree.c:8145 [inline] btrfs_alloc_tree_block+0x9b1/0x15f0 fs/btrfs/extent-tree.c:8284 alloc_tree_block_no_bg_flush+0x1b6/0x250 fs/btrfs/ctree.c:1039 __btrfs_cow_block+0x3c7/0x10a0 fs/btrfs/ctree.c:1094 btrfs_cow_block+0x276/0x840 fs/btrfs/ctree.c:1557 btrfs_search_slot+0x66a/0x1ee0 fs/btrfs/ctree.c:2881 btrfs_update_root+0xc9/0x6b0 fs/btrfs/root-tree.c:134 commit_fs_roots+0x3b5/0x530 fs/btrfs/transaction.c:1286 btrfs_commit_transaction+0x8ca/0x2480 fs/btrfs/transaction.c:2178 btrfs_sync_fs+0x120/0x490 fs/btrfs/super.c:1279 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem+0x1b5/0x250 fs/sync.c:67 generic_shutdown_super+0x70/0x370 fs/super.c:442 kill_anon_super+0x36/0x60 fs/super.c:1032 btrfs_kill_super+0x49/0x550 fs/btrfs/super.c:2221 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 task_work_run+0x148/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbf3/0x2be0 kernel/exit.c:870 __do_sys_exit kernel/exit.c:936 [inline] __se_sys_exit kernel/exit.c:934 [inline] __x64_sys_exit+0x3e/0x50 kernel/exit.c:934 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f2e823330c9 Code: Bad RIP value. RSP: 002b:00007f2e79484118 EFLAGS: 00000246 ORIG_RAX: 000000000000003c RAX: ffffffffffffffda RBX: 00007f2e82453050 RCX: 00007f2e823330c9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f2e8238eae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffca3a553ff R14: 00007f2e79484300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1570: #0: 000000004a165e2e (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7798: 1 lock held by btrfs-transacti/30486: #0: 00000000455df819 (&fs_info->transaction_kthread_mutex){+.+.}, at: transaction_kthread+0xfa/0x490 fs/btrfs/disk-io.c:1765 3 locks held by syz-executor.3/30494: #0: 000000002f267eb8 (&type->s_umount_key#74){+.+.}, at: deactivate_super+0x16c/0x1a0 fs/super.c:359 #1: 00000000aa7b8713 (&fs_info->reloc_mutex){+.+.}, at: btrfs_commit_transaction+0x80b/0x2480 fs/btrfs/transaction.c:2120 #2: 00000000d1f45e52 (&fs_info->tree_log_mutex){+.+.}, at: btrfs_commit_transaction+0x8c2/0x2480 fs/btrfs/transaction.c:2176 4 locks held by kworker/u4:0/5190: #0: 00000000ff108118 ((wq_completion)"%s""netns"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 0000000043909d62 (net_cleanup_work){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 000000000685e6c0 (pernet_ops_rwsem){++++}, at: cleanup_net+0xa8/0x8b0 net/core/net_namespace.c:521 #3: 0000000022270daf (rcu_preempt_state.barrier_mutex){+.+.}, at: _rcu_barrier+0x59/0x3e0 kernel/rcu/tree.c:3430 1 lock held by syz-executor.2/6877: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6552 Comm: kworker/u4:5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:iterate_chain_key kernel/locking/lockdep.c:316 [inline] RIP: 0010:__lock_acquire+0x88e/0x3ff0 kernel/locking/lockdep.c:3411 Code: ca 89 d1 41 29 d0 01 c2 c1 c1 10 89 d6 41 31 c8 44 89 c1 44 29 c0 41 01 d0 c1 c9 0d 31 c8 89 c1 29 c6 44 01 c0 c1 c1 04 31 f1 <48> c1 e1 20 48 09 c1 48 85 ff 49 89 cc 74 1a be ff ff ff ff 4c 89 RSP: 0018:ffff88823afa7a68 EFLAGS: 00000086 RAX: 00000000a171beda RBX: ef545f96172bec08 RCX: 00000000c13fb1d4 RDX: 00000000475685f8 RSI: 0000000019c6f1f6 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000073e22ad8 R09: 0000000000000002 R10: ffff88809c092958 R11: 0000000000000000 R12: 000000000002002e R13: ffff88809c092080 R14: ffff88809c092970 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa93c1c3018 CR3: 00000000462e8000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 rcu_lock_acquire include/linux/rcupdate.h:242 [inline] rcu_read_lock include/linux/rcupdate.h:627 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:419 [inline] batadv_nc_worker+0x12d/0xd50 net/batman-adv/network-coding.c:730 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415