INFO: task syz-executor.2:521 blocked for more than 143 seconds. Not tainted 6.8.0-rc4-syzkaller-00014-g7e90b5c295ec #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:23664 pid:521 tgid:521 ppid:5101 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x177f/0x49a0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0x149/0x260 kernel/sched/core.c:6817 wait_extent_bit fs/btrfs/extent-io-tree.c:822 [inline] lock_extent+0x69d/0x860 fs/btrfs/extent-io-tree.c:1868 btrfs_page_mkwrite+0x743/0x10c0 fs/btrfs/inode.c:8180 do_page_mkwrite+0x19b/0x480 mm/memory.c:2966 do_shared_fault mm/memory.c:4810 [inline] do_fault mm/memory.c:4872 [inline] do_pte_missing mm/memory.c:3745 [inline] handle_pte_fault mm/memory.c:5144 [inline] __handle_mm_fault+0x24c0/0x72d0 mm/memory.c:5285 handle_mm_fault+0x27e/0x770 mm/memory.c:5450 do_user_addr_fault arch/x86/mm/fault.c:1364 [inline] handle_page_fault arch/x86/mm/fault.c:1507 [inline] exc_page_fault+0x456/0x870 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7f6e1705ee3c RSP: 002b:00007fffe0e840b8 EFLAGS: 00010202 RAX: 00000000200015c0 RBX: 00007fffe0e841c8 RCX: 00007f6e16c00000 RDX: 0000000000000018 RSI: 00007f6e16c05b40 RDI: 00000000200015c0 RBP: 0000000000000032 R08: 00007f6e17000000 R09: 00007fffe0f8d0b0 R10: 00007fffe0f8d080 R11: 0000000000035002 R12: 00007f6e16c05b20 R13: fffffffffffffffe R14: 00007f6e16c00000 R15: 00007f6e16c05b28 INFO: task syz-executor.2:522 blocked for more than 144 seconds. Not tainted 6.8.0-rc4-syzkaller-00014-g7e90b5c295ec #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:22232 pid:522 tgid:521 ppid:5101 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x177f/0x49a0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0x149/0x260 kernel/sched/core.c:6817 wait_extent_bit fs/btrfs/extent-io-tree.c:822 [inline] lock_extent+0x69d/0x860 fs/btrfs/extent-io-tree.c:1868 btrfs_page_mkwrite+0x743/0x10c0 fs/btrfs/inode.c:8180 do_page_mkwrite+0x19b/0x480 mm/memory.c:2966 wp_page_shared mm/memory.c:3353 [inline] do_wp_page+0x20e3/0x4c90 mm/memory.c:3493 handle_pte_fault mm/memory.c:5160 [inline] __handle_mm_fault+0x26ad/0x72d0 mm/memory.c:5285 handle_mm_fault+0x27e/0x770 mm/memory.c:5450 do_user_addr_fault arch/x86/mm/fault.c:1415 [inline] handle_page_fault arch/x86/mm/fault.c:1507 [inline] exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x33/0x70 arch/x86/lib/copy_user_64.S:58 Code: 40 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb RSP: 0018:ffffc9000a167310 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000058 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc9000a1673c0 RDI: 0000000020000020 RBP: ffffc9000a167478 R08: ffffc9000a1673f7 R09: 1ffff9200142ce7e R10: dffffc0000000000 R11: fffff5200142ce7f R12: 0000000000000038 R13: ffffc9000a1673c0 R14: 0000000020000020 R15: ffffc9000a1673c0 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] _copy_to_user+0x86/0xb0 lib/usercopy.c:41 copy_to_user include/linux/uaccess.h:191 [inline] fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:145 emit_fiemap_extent+0x258/0x410 fs/btrfs/extent_io.c:2521 fiemap_process_hole+0xa29/0xb00 fs/btrfs/extent_io.c:2779 extent_fiemap+0xeae/0x1fe0 btrfs_fiemap+0x178/0x1f0 fs/btrfs/inode.c:7848 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x1a02/0x2b60 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f6e1707dda9 RSP: 002b:00007f6e17ddd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6e171abf80 RCX: 00007f6e1707dda9 RDX: 0000000020000000 RSI: 00000000c020660b RDI: 0000000000000004 RBP: 00007f6e170ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f6e171abf80 R15: 00007fffe0e83fd8 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: 1 lock held by khungtaskd/29: #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8e130ae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 3 locks held by kworker/u4:5/1039: 2 locks held by kworker/1:2/1798: #0: ffff888014c8e538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888014c8e538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc9000513fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc9000513fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 2 locks held by kworker/u4:9/2450: 3 locks held by kworker/u5:1/4454: #0: ffff88801ba92138 ((wq_completion)hci5){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff88801ba92138 ((wq_completion)hci5){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc9000dcc7d20 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc9000dcc7d20 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #2: ffff88802e7b9060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_cmd_sync_work+0x1ec/0x400 net/bluetooth/hci_sync.c:305 1 lock held by udevd/4511: #0: ffff888027a65820 (&type->i_mutex_dir_key#5){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888027a65820 (&type->i_mutex_dir_key#5){++++}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1709 2 locks held by getty/4811: #0: ffff8880235120a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.1/5084: #0: ffffffff8e136478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #0: ffffffff8e136478 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:995 3 locks held by syz-executor.2/521: #0: ffff888020158328 (&vma->vm_lock->lock){++++}-{3:3}, at: vma_start_read include/linux/mm.h:663 [inline] #0: ffff888020158328 (&vma->vm_lock->lock){++++}-{3:3}, at: lock_vma_under_rcu+0x2f9/0x730 mm/memory.c:5606 #1: ffff88803422e518 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x19b/0x480 mm/memory.c:2966 #2: ffff8880354cf778 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x603/0x10c0 fs/btrfs/inode.c:8169 4 locks held by syz-executor.2/522: #0: ffff8880354cf8f0 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff8880354cf8f0 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xe0 fs/btrfs/inode.c:379 #1: ffff88802d564da0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff88802d564da0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5477 [inline] #1: ffff88802d564da0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2e0 mm/memory.c:5537 #2: ffff88803422e518 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x19b/0x480 mm/memory.c:2966 #3: ffff8880354cf778 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x603/0x10c0 fs/btrfs/inode.c:8169 1 lock held by syz-executor.0/4476: 2 locks held by syz-executor.2/4478: 2 locks held by udevadm/4482: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc4-syzkaller-00014-g7e90b5c295ec #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4481 Comm: syz-executor.3 Not tainted 6.8.0-rc4-syzkaller-00014-g7e90b5c295ec #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0033:0x7f8a8342983b Code: cd 48 01 c1 49 39 4f 08 72 4c 8d 4d ff 85 ed 74 33 66 0f 1f 44 00 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 47 0f b6 0c 08 <45> 84 c9 74 08 45 88 0c 00 49 8b 47 10 48 83 c0 01 49 89 47 10 83 RSP: 002b:00007f8a84267530 EFLAGS: 00000202 RAX: 0000000000e9cdf5 RBX: 00007f8a842675d0 RCX: 00000000000000be RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007f8a84267670 RBP: 0000000000000102 R08: 00007f8a79a00000 R09: 0000000000000000 R10: 0000000000000000 R11: 00007f8a842675e0 R12: 0000000000000001 R13: 00007f8a834eccc0 R14: 0000000000000000 R15: 00007f8a84267670 FS: 00007f8a842686c0 GS: 0000000000000000