INFO: task kworker/u4:0:9 blocked for more than 144 seconds. Not tainted 5.15.151-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:0 state:D stack:19520 pid: 9 ppid: 2 flags:0x00004000 Workqueue: btrfs-endio-write btrfs_work_helper Call Trace: 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:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 INFO: task syz-executor.1:5544 blocked for more than 147 seconds. Not tainted 5.15.151-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23152 pid: 5544 ppid: 3532 flags:0x00004006 Call Trace: 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_wait_ordered_range+0x14e/0x260 fs/btrfs/ordered-data.c:792 btrfs_sync_file+0x484/0xfa0 fs/btrfs/file.c:2268 generic_write_sync include/linux/fs.h:2958 [inline] btrfs_file_write_iter+0x896/0xc60 fs/btrfs/file.c:2093 call_write_iter include/linux/fs.h:2148 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacf/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 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:0x7f962691eda9 RSP: 002b:00007f9624e9f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f9626a4cf80 RCX: 00007f962691eda9 RDX: 0000000000000158 RSI: 0000000020000e40 RDI: 0000000000000004 RBP: 00007f962696b47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f9626a4cf80 R15: 00007fff7dfc65b8 INFO: task syz-executor.1:5601 blocked for more than 149 seconds. Not tainted 5.15.151-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24752 pid: 5601 ppid: 3532 flags:0x00004006 Call Trace: 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_preempt_disabled+0xf/0x20 kernel/sched/core.c:6518 rwsem_down_read_slowpath+0x605/0xb40 kernel/locking/rwsem.c:1047 __down_read_common kernel/locking/rwsem.c:1231 [inline] __down_read kernel/locking/rwsem.c:1244 [inline] down_read+0x9a/0x2e0 kernel/locking/rwsem.c:1490 btrfs_page_mkwrite+0x4a2/0xd60 fs/btrfs/inode.c:8942 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: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:ffffc9000517f668 EFLAGS: 00050202 RAX: ffffffff84077f01 RBX: 00000000200004d8 RCX: 0000000000000007 RDX: 0000000000000000 RSI: ffffc9000517f720 RDI: 00000000200004a0 RBP: ffffc9000517f7d0 R08: 0000000000000000 R09: fffff52000a2feeb R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000038 R13: 00007ffffffff000 R14: ffffc9000517f720 R15: 00000000200004a0 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+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f962691eda9 RSP: 002b:00007f9624e7e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f9626a4d050 RCX: 00007f962691eda9 RDX: 0000000020000480 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007f962696b47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f9626a4d050 R15: 00007fff7dfc65b8 Showing all locks held in the system: 2 locks held by kworker/u4:0/9: #0: ffff88807c37b938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90000ce7d20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 1 lock held by khungtaskd/27: #0: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/1:2/1069: #0: ffff888149452d38 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc900054afd20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9db908 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xcc/0x1720 net/ipv6/addrconf.c:4111 2 locks held by getty/3262: #0: ffff88814ad04098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc9000249b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 4 locks held by kworker/u4:8/3880: #0: ffff888011dcd138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004d87d20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9cfd50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf1/0xb60 net/core/net_namespace.c:558 #3: ffffffff8d9db908 (rtnl_mutex){+.+.}-{3:3}, at: netdev_run_todo+0xa4f/0xc40 net/core/dev.c:10652 4 locks held by syz-executor.1/5544: #0: ffff888078b47770 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2cb/0x380 fs/file.c:1088 #1: ffff8880376e4460 (sb_writers#17){.+.+}-{0:0}, at: vfs_write+0x29a/0xe50 fs/read_write.c:590 #2: ffff8880351e19b0 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #2: ffff8880351e19b0 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: btrfs_inode_lock+0x49/0xd0 fs/btrfs/inode.c:124 #3: ffff8880351e1838 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_inode_lock+0xc1/0xd0 fs/btrfs/inode.c:127 3 locks held by syz-executor.1/5601: #0: ffff88807aed2428 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #0: ffff88807aed2428 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] #0: ffff88807aed2428 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1485 [inline] #0: ffff88807aed2428 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x181/0x740 arch/x86/mm/fault.c:1541 #1: ffff8880376e4558 (sb_pagefaults#3){.+.+}-{0:0}, at: do_page_mkwrite+0x1a9/0x440 mm/memory.c:2892 #2: ffff8880351e1838 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x4a2/0xd60 fs/btrfs/inode.c:8942 2 locks held by kworker/1:19/6819: #0: ffff888011c72138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90005ebfd20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 1 lock held by syz-executor.3/7510: #0: ffffffff8d9db908 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d9db908 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5626 2 locks held by syz-executor.0/7785: #0: ffffffff8d9cfd50 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x37b/0x5d0 net/core/net_namespace.c:469 #1: ffffffff8c923bf0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x9c/0x4e0 kernel/rcu/tree.c:4039 3 locks held by syz-executor.2/7850: #0: ffffffff8d9c3848 (vlan_ioctl_mutex){+.+.}-{3:3}, at: sock_ioctl+0x521/0x770 net/socket.c:1219 #1: ffffffff8d9db908 (rtnl_mutex){+.+.}-{3:3}, at: vlan_ioctl_handler+0x114/0x9a0 net/8021q/vlan.c:554 #2: ffffffff8c923ce8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #2: ffffffff8c923ce8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:845 1 lock held by syz-executor.4/7867: #0: ffffffff8d9db908 (rtnl_mutex){+.+.}-{3:3}, at: raw_setsockopt+0xb69/0x1470 net/can/raw.c:559 1 lock held by syz-executor.4/7868: #0: ffffffff8d9db908 (rtnl_mutex){+.+.}-{3:3}, at: raw_bind+0x96/0x700 net/can/raw.c:436 1 lock held by syz-executor.4/7869: #0: ffffffff8d9db908 (rtnl_mutex){+.+.}-{3:3}, at: raw_setsockopt+0xb69/0x1470 net/can/raw.c:559 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.151-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Call Trace: __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 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 376 Comm: kworker/u4:3 Not tainted 5.15.151-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:__lock_acquire+0x2ae/0x1ff0 Code: 3d 7e 30 81 0c 00 0f 85 b5 12 00 00 48 c7 c7 a0 13 8b 8a 48 c7 c6 40 3c 8b 8a e8 ed 54 e9 ff 0f 0b 31 f6 e9 9b 12 00 00 31 c0 <44> 89 64 24 70 44 89 74 24 54 49 8d 8d f0 0a 00 00 4c 8d 34 80 4c RSP: 0018:ffffc900030679a0 EFLAGS: 00000046 RAX: 0000000000000002 RBX: ffff888019ad46b8 RCX: ffffffff913c6f03 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff8c91f720 RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff888019ad3b80 R14: 0000000000000002 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c02377d000 CR3: 0000000030fdf000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269 rcu_read_lock include/linux/rcupdate.h:696 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0xc1/0x5b0 net/batman-adv/network-coding.c:723 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298