INFO: task kworker/u4:17:4783 blocked for more than 144 seconds.
      Not tainted 5.15.105-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:17   state:D stack:24192 pid: 4783 ppid:     2 flags:0x00004000
Workqueue: btrfs-endio-write btrfs_work_helper
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x4590 kernel/sched/core.c:6372
 schedule+0x11b/0x1f0 kernel/sched/core.c:6455
 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+0x6e9/0x1c40 fs/btrfs/inode.c:3108
 btrfs_work_helper+0x368/0xba0 fs/btrfs/async-thread.c:325
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2306
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2453
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
INFO: task syz-executor.2:4952 blocked for more than 144 seconds.
      Not tainted 5.15.105-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:23184 pid: 4952 ppid:  3629 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x4590 kernel/sched/core.c:6372
 schedule+0x11b/0x1f0 kernel/sched/core.c:6455
 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:8898
 do_page_mkwrite+0x1a9/0x440 mm/memory.c:2883
 wp_page_shared+0x179/0x690 mm/memory.c:3216
 handle_pte_fault mm/memory.c:4612 [inline]
 __handle_mm_fault mm/memory.c:4729 [inline]
 handle_mm_fault+0x2a3d/0x5950 mm/memory.c:4827
 do_user_addr_fault arch/x86/mm/fault.c:1397 [inline]
 handle_page_fault arch/x86/mm/fault.c:1485 [inline]
 exc_page_fault+0x271/0x740 arch/x86/mm/fault.c:1541
 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:ffffc90004dcf668 EFLAGS: 00050202
RAX: ffffffff8405d101 RBX: 0000000020000098 RCX: 0000000000000007
RDX: 0000000000000000 RSI: ffffc90004dcf720 RDI: 0000000020000060
RBP: ffffc90004dcf7d0 R08: 0000000000000000 R09: fffff520009b9eeb
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038
R13: 00007ffffffff000 R14: ffffc90004dcf720 R15: 0000000020000060
 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:5447 [inline]
 extent_fiemap+0x1185/0x1650 fs/btrfs/extent_io.c:5686
 btrfs_fiemap+0x121/0x160 fs/btrfs/inode.c:8521
 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+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f02959050f9
RSP: 002b:00007f0293e77168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f0295a24f80 RCX: 00007f02959050f9
RDX: 0000000020000040 RSI: 00000000c020660b RDI: 0000000000000004
RBP: 00007f0295960b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd697eab9f R14: 00007f0293e77300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/26:
 #0: ffffffff8c91b920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3268:
 #0: ffff888024961098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc90002bb32e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1da0 drivers/tty/n_tty.c:2147
2 locks held by kworker/u4:10/3794:
 #0: ffff888078325938 ((wq_completion)btrfs-flush_delalloc){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2279
 #1: ffffc90004cafd20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2281
2 locks held by kworker/u4:17/4783:
 #0: ffff88801e35d938 ((wq_completion)btrfs-endio-write#2){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2279
 #1: ffffc90005c87d20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2281
3 locks held by syz-executor.2/4952:
 #0: ffff88801986c728 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
 #0: ffff88801986c728 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1338 [inline]
 #0: ffff88801986c728 (&mm->mmap_lock#2){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1485 [inline]
 #0: ffff88801986c728 (&mm->mmap_lock#2){++++}-{3:3}, at: exc_page_fault+0x181/0x740 arch/x86/mm/fault.c:1541
 #1: ffff888033fbc558 (sb_pagefaults#3){.+.+}-{0:0}, at: do_page_mkwrite+0x1a9/0x440 mm/memory.c:2883
 #2: ffff888035009838 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x4a2/0xd60 fs/btrfs/inode.c:8887
1 lock held by btrfs-transacti/5035:
 #0: ffff88806f1687b0 (&fs_info->transaction_kthread_mutex){+.+.}-{3:3}, at: transaction_kthread+0xe4/0x410 fs/btrfs/disk-io.c:1865
3 locks held by syz-executor.3/5348:
 #0: ffff888033fbc0e0 (&type->s_umount_key#57){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703
 #1: ffff88806f1689f8 (&fs_info->ordered_operations_mutex){+.+.}-{3:3}, at: btrfs_wait_ordered_roots+0x100/0x950 fs/btrfs/ordered-data.c:690
 #2: ffff888019dc6848 (&root->ordered_extent_mutex){+.+.}-{3:3}, at: btrfs_wait_ordered_extents+0x1ef/0xe20 fs/btrfs/ordered-data.c:636
2 locks held by syz-executor.5/5444:
 #0: ffff888033fbc0e0 (&type->s_umount_key#57){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703
 #1: ffff88806f1689f8 (&fs_info->ordered_operations_mutex){+.+.}-{3:3}, at: btrfs_wait_ordered_roots+0x100/0x950 fs/btrfs/ordered-data.c:690
2 locks held by syz-executor.3/5479:
 #0: ffff888033fbc0e0 (&type->s_umount_key#57){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703
 #1: ffff88806f1689f8 (&fs_info->ordered_operations_mutex){+.+.}-{3:3}, at: btrfs_wait_ordered_roots+0x100/0x950 fs/btrfs/ordered-data.c:690

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 26 Comm: khungtaskd Not tainted 5.15.105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb 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:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5480 Comm: kworker/u4:19 Not tainted 5.15.105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:check_preemption_disabled+0x4d/0x110 lib/smp_processor_id.c:55
Code: 81 84 eb 75 a9 ff ff ff 7f 74 22 65 48 8b 04 25 28 00 00 00 48 3b 44 24 08 0f 85 c7 00 00 00 89 d8 48 83 c4 10 5b 41 5c 41 5e <41> 5f c3 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00
RSP: 0018:ffffc9000c6bfbc8 EFLAGS: 00000282
RAX: 0000000000000001 RBX: ffff88802bbb0a20 RCX: ffff888024693a00
RDX: ffff888024693a00 RSI: ffffffff8ad85120 RDI: ffffffff8ad850e0
RBP: 0000000000000001 R08: ffffffff89f451b1 R09: fffffbfff1f76e15
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000144
R13: dffffc0000000000 R14: ffff88802ba54c80 R15: ffff88802426ba00
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005604a2c23600 CR3: 0000000023450000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:330 [inline]
 rcu_is_watching+0x11/0xa0 kernel/rcu/tree.c:1121
 rcu_read_lock include/linux/rcupdate.h:697 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline]
 batadv_nc_worker+0xda/0x5b0 net/batman-adv/network-coding.c:723
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2306
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2453
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>