INFO: task kworker/u4:3:156 blocked for more than 143 seconds. Not tainted 5.15.159-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:3 state:D stack:22336 pid: 156 ppid: 2 flags:0x00004000 Workqueue: btrfs-endio-write btrfs_work_helper Call Trace: <TASK> context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 wait_on_state fs/btrfs/extent_io.c:868 [inline] wait_extent_bit+0x3f9/0x530 fs/btrfs/extent_io.c:906 lock_extent_bits+0x10d/0x1e0 fs/btrfs/extent_io.c:1469 btrfs_finish_ordered_io+0x615/0x1db0 fs/btrfs/inode.c:3108 btrfs_work_helper+0x368/0xba0 fs/btrfs/async-thread.c:325 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 </TASK> INFO: task syz-executor.4:3681 blocked for more than 144 seconds. Not tainted 5.15.159-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:20888 pid: 3681 ppid: 3534 flags:0x00004006 Call Trace: <TASK> context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 schedule_timeout+0xac/0x300 kernel/time/timer.c:1890 do_wait_for_common+0x2d9/0x480 kernel/sched/completion.c:85 __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x48/0x60 kernel/sched/completion.c:138 btrfs_wait_ordered_extents+0xd65/0xe20 fs/btrfs/ordered-data.c:672 btrfs_wait_ordered_roots+0x658/0x950 fs/btrfs/ordered-data.c:702 btrfs_sync_fs+0x113/0x680 fs/btrfs/super.c:1427 sync_filesystem+0x1bc/0x220 fs/sync.c:66 btrfs_remount+0x224/0x1640 fs/btrfs/super.c:1928 reconfigure_super+0x43a/0x870 fs/super.c:925 vfs_fsconfig_locked fs/fsopen.c:254 [inline] __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig+0x98b/0xec0 fs/fsopen.c:314 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f828bf81ee9 RSP: 002b:00007f828a4f50c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f828c0b0f80 RCX: 00007f828bf81ee9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006 RBP: 00007f828bfce49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f828c0b0f80 R15: 00007ffd5bf81a38 </TASK> INFO: task syz-executor.4:3760 blocked for more than 144 seconds. Not tainted 5.15.159-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:25408 pid: 3760 ppid: 3534 flags:0x00004006 Call Trace: <TASK> context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 wait_on_state fs/btrfs/extent_io.c:868 [inline] wait_extent_bit+0x3f9/0x530 fs/btrfs/extent_io.c:906 lock_extent_bits+0x10d/0x1e0 fs/btrfs/extent_io.c:1469 btrfs_page_mkwrite+0x5f2/0xd60 fs/btrfs/inode.c:8953 do_page_mkwrite+0x1a9/0x440 mm/memory.c:2892 wp_page_shared+0x179/0x690 mm/memory.c:3229 handle_pte_fault mm/memory.c:4639 [inline] __handle_mm_fault mm/memory.c:4756 [inline] handle_mm_fault+0x2a3d/0x5950 mm/memory.c:4854 do_user_addr_fault arch/x86/mm/fault.c:1388 [inline] handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x271/0x740 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0010:copy_user_generic_unrolled+0x89/0xc0 arch/x86/lib/copy_user_64.S:92 Code: 38 4c 89 47 20 4c 89 4f 28 4c 89 57 30 4c 89 5f 38 48 8d 76 40 48 8d 7f 40 ff c9 75 b6 89 d1 83 e2 07 c1 e9 03 74 12 4c 8b 06 <4c> 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 89 d1 8a RSP: 0018:ffffc90003197668 EFLAGS: 00050202 RAX: ffffffff8408de01 RBX: 00000000200002d8 RCX: 0000000000000007 RDX: 0000000000000000 RSI: ffffc90003197720 RDI: 00000000200002a0 RBP: ffffc900031977d0 R08: 0000000000000000 R09: fffff52000632eeb R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038 R13: 00007ffffffff000 R14: ffffc90003197720 R15: 00000000200002a0 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] _copy_to_user+0xef/0x130 lib/usercopy.c:40 copy_to_user include/linux/uaccess.h:200 [inline] fiemap_fill_next_extent+0x231/0x410 fs/ioctl.c:144 emit_fiemap_extent fs/btrfs/extent_io.c:5448 [inline] extent_fiemap+0x1185/0x1650 fs/btrfs/extent_io.c:5687 btrfs_fiemap+0x121/0x160 fs/btrfs/inode.c:8576 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x1934/0x2b70 fs/ioctl.c:814 __do_sys_ioctl fs/ioctl.c:872 [inline] __se_sys_ioctl+0x81/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f828bf81ee9 RSP: 002b:00007f828a4d40c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f828c0b1050 RCX: 00007f828bf81ee9 RDX: 0000000020000280 RSI: 00000000c020660b RDI: 0000000000000004 RBP: 00007f828bfce49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f828c0b1050 R15: 00007ffd5bf81a38 </TASK> INFO: task kworker/u4:6:3684 blocked for more than 145 seconds. Not tainted 5.15.159-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:6 state:D stack:21048 pid: 3684 ppid: 2 flags:0x00004000 Workqueue: btrfs-flush_delalloc btrfs_work_helper Call Trace: <TASK> context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 btrfs_start_ordered_extent+0x2f9/0x510 fs/btrfs/ordered-data.c:739 btrfs_run_ordered_extent_work+0x1a/0x30 fs/btrfs/ordered-data.c:617 btrfs_work_helper+0x368/0xba0 fs/btrfs/async-thread.c:325 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 </TASK> Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91fae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:3/156: #0: ffff88805eccf938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90001e67d20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 2 locks held by getty/3271: #0: ffff88807ec38098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc9000250b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 4 locks held by syz-executor.4/3681: #0: ffff88805e45b870 (&fc->uapi_mutex){+.+.}-{3:3}, at: __do_sys_fsconfig fs/fsopen.c:437 [inline] #0: ffff88805e45b870 (&fc->uapi_mutex){+.+.}-{3:3}, at: __se_sys_fsconfig+0x7c1/0xec0 fs/fsopen.c:314 #1: ffff88801e6c20e0 (&type->s_umount_key#58){++++}-{3:3}, at: vfs_fsconfig_locked fs/fsopen.c:253 [inline] #1: ffff88801e6c20e0 (&type->s_umount_key#58){++++}-{3:3}, at: __do_sys_fsconfig fs/fsopen.c:439 [inline] #1: ffff88801e6c20e0 (&type->s_umount_key#58){++++}-{3:3}, at: __se_sys_fsconfig+0x981/0xec0 fs/fsopen.c:314 #2: ffff88807d73c9f8 (&fs_info->ordered_operations_mutex){+.+.}-{3:3}, at: btrfs_wait_ordered_roots+0x100/0x950 fs/btrfs/ordered-data.c:690 #3: ffff888076fe6848 (&root->ordered_extent_mutex){+.+.}-{3:3}, at: btrfs_wait_ordered_extents+0x1ef/0xe20 fs/btrfs/ordered-data.c:636 3 locks held by syz-executor.4/3760: #0: ffff8880242cb228 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #0: ffff8880242cb228 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1329 [inline] #0: ffff8880242cb228 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1476 [inline] #0: ffff8880242cb228 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x181/0x740 arch/x86/mm/fault.c:1532 #1: ffff88801e6c2558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a9/0x440 mm/memory.c:2892 #2: ffff88805dcea208 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x4a2/0xd60 fs/btrfs/inode.c:8942 2 locks held by kworker/u4:6/3684: #0: ffff88801e56c938 ((wq_completion)btrfs-flush_delalloc){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc900047b7d20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 2 locks held by syz-executor.3/5204: #0: ffff88801b1de918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xfb/0x790 block/bdev.c:912 #1: ffff88801b336468 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0xa9/0xbe0 drivers/block/loop.c:1365 1 lock held by syz-executor.2/5520: #0: ffff88801e6c20e0 (&type->s_umount_key#58){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 1 lock held by syz-executor.1/5716: #0: ffffffff8c9240a8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #0: ffffffff8c9240a8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:845 2 locks held by kworker/u4:17/5892: 1 lock held by syz-executor.0/5967: #0: ffff88801e6c20e0 (&type->s_umount_key#58){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 2 locks held by syz-executor.2/6002: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.159-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 </TASK> Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 5.15.159-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:deref_stack_reg+0xcd/0x110 arch/x86/kernel/unwind_orc.c:360 Code: 4c 89 ff 48 89 da e8 42 77 f4 ff 85 c0 74 04 31 c0 eb 26 4c 89 ff e8 72 07 00 00 48 89 c3 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 <74> 08 4c 89 f7 e8 59 83 91 00 49 89 1e b0 01 5b 41 5c 41 5d 41 5e RSP: 0018:ffffc90000d36170 EFLAGS: 00000246 RAX: 1ffff920001a6c54 RBX: ffffc90000d37070 RCX: 0000000000000000 RDX: ffffc90000d362a0 RSI: ffffc90000d36f88 RDI: ffffc90000d36f88 RBP: ffffc90000d38000 R08: ffffc90000d36f88 R09: ffffc90000d362b0 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffffc90000d30000 R14: ffffc90000d362a0 R15: ffffc90000d36f88 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200015c0 CR3: 000000007787a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <NMI> </NMI> <TASK> unwind_next_frame+0x12f1/0x1fa0 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0x91/0x1f0 mm/slub.c:3515 skb_ext_del include/linux/skbuff.h:4435 [inline] nf_bridge_info_free net/bridge/br_netfilter_hooks.c:151 [inline] br_nf_dev_queue_xmit+0x4f0/0x1aa0 net/bridge/br_netfilter_hooks.c:846 NF_HOOK+0x697/0x760 include/linux/netfilter.h:302 br_nf_post_routing+0x8f1/0xc80 net/bridge/br_netfilter_hooks.c:949 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xae/0x1e0 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:257 [inline] NF_HOOK+0x27c/0x420 include/linux/netfilter.h:300 br_forward_finish+0x74/0x80 net/bridge/br_forward.c:66 br_nf_forward_finish+0xa5b/0xe20 net/bridge/br_netfilter_hooks.c:660 NF_HOOK+0x697/0x760 include/linux/netfilter.h:302 br_nf_forward_ip+0xbe2/0x1010 net/bridge/br_netfilter_hooks.c:730 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xae/0x1e0 net/netfilter/core.c:584 nf_hook include/linux/netfilter.h:257 [inline] NF_HOOK+0x27c/0x420 include/linux/netfilter.h:300 __br_forward+0x430/0x5f0 net/bridge/br_forward.c:115 br_handle_frame_finish+0x11d6/0x15f0 net/bridge/br_input.c:180 br_nf_hook_thresh+0x46a/0x580 net/bridge/br_netfilter_hooks.c:1149 br_nf_pre_routing_finish_ipv6+0xa08/0xcd0 NF_HOOK include/linux/netfilter.h:302 [inline] br_nf_pre_routing_ipv6+0x35d/0x720 net/bridge/br_netfilter_ipv6.c:237 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_bridge_pre net/bridge/br_input.c:242 [inline] br_handle_frame+0x8a8/0x10e0 net/bridge/br_input.c:384 __netif_receive_skb_core+0x13b9/0x3df0 net/core/dev.c:5379 __netif_receive_skb_one_core net/core/dev.c:5483 [inline] __netif_receive_skb+0x11c/0x530 net/core/dev.c:5599 process_backlog+0x363/0x7f0 net/core/dev.c:6476 __napi_poll+0xc7/0x440 net/core/dev.c:7035 napi_poll net/core/dev.c:7102 [inline] net_rx_action+0x617/0xda0 net/core/dev.c:7192 __do_softirq+0x3b3/0x93a kernel/softirq.c:558 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:921 smpboot_thread_fn+0x51b/0x9d0 kernel/smpboot.c:164 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300 </TASK>