INFO: task kworker/u4:2:24256 blocked for more than 143 seconds. Not tainted 6.6.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:2 state:D stack:20184 pid:24256 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-btrfs-546) Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 io_schedule+0x8c/0x100 kernel/sched/core.c:9026 folio_wait_bit_common+0x881/0x12a0 mm/filemap.c:1301 folio_lock include/linux/pagemap.h:1042 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2078 [inline] extent_writepages+0xc6e/0x2e50 fs/btrfs/extent_io.c:2226 do_writepages+0x3a6/0x670 mm/page-writeback.c:2553 __writeback_single_inode+0x155/0xfa0 fs/fs-writeback.c:1608 writeback_sb_inodes+0x8e3/0x1210 fs/fs-writeback.c:1899 __writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:1970 wb_writeback+0x461/0xc60 fs/fs-writeback.c:2077 wb_check_background_flush fs/fs-writeback.c:2147 [inline] wb_do_writeback fs/fs-writeback.c:2235 [inline] wb_workfn+0xc6f/0xff0 fs/fs-writeback.c:2262 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 INFO: task syz-executor.1:27806 blocked for more than 144 seconds. Not tainted 6.6.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23128 pid:27806 ppid:5068 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6830 rwsem_down_write_slowpath+0xee6/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:377 btrfs_buffered_write+0x230/0x1380 fs/btrfs/file.c:1200 btrfs_do_write_iter+0x2bb/0x1190 fs/btrfs/file.c:1683 do_iter_write+0x84f/0xde0 fs/read_write.c:860 iter_file_splice_write+0x86d/0x1010 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0xea/0x1c0 fs/splice.c:1142 splice_direct_to_actor+0x376/0x9e0 fs/splice.c:1088 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194 do_sendfile+0x623/0x1070 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f764ca7cae9 RSP: 002b:00007f764d81e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f764cb9bf80 RCX: 00007f764ca7cae9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007f764cac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f764cb9bf80 R15: 00007ffe938f71a8 INFO: task syz-executor.1:27849 blocked for more than 145 seconds. Not tainted 6.6.0-rc5-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24536 pid:27849 ppid:5068 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 wait_on_state fs/btrfs/extent-io-tree.c:719 [inline] wait_extent_bit+0x50c/0x670 fs/btrfs/extent-io-tree.c:763 lock_extent+0x1c0/0x270 fs/btrfs/extent-io-tree.c:1755 btrfs_page_mkwrite+0x5bd/0xd10 fs/btrfs/inode.c:8143 do_page_mkwrite+0x197/0x470 mm/memory.c:2931 wp_page_shared mm/memory.c:3291 [inline] do_wp_page+0xf87/0x4190 mm/memory.c:3376 handle_pte_fault mm/memory.c:4994 [inline] __handle_mm_fault mm/memory.c:5119 [inline] handle_mm_fault+0x1b45/0x62b0 mm/memory.c:5284 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2ac/0x860 arch/x86/mm/fault.c:1561 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 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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:ffffc900053c7550 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000298 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc900053c7600 RDI: 0000000020000260 RBP: ffffc900053c76b0 R08: ffffc900053c7637 R09: 1ffff92000a78ec6 R10: dffffc0000000000 R11: fffff52000a78ec7 R12: 0000000000000038 R13: ffffc900053c7600 R14: 0000000020000260 R15: ffffc900053c7600 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/0xa0 lib/usercopy.c:41 copy_to_user include/linux/uaccess.h:191 [inline] fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:145 emit_last_fiemap_cache fs/btrfs/extent_io.c:2506 [inline] extent_fiemap+0x1b9c/0x1fe0 fs/btrfs/extent_io.c:3033 btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7815 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x19ea/0x2b40 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f764ca7cae9 RSP: 002b:00007f764d7fd0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f764cb9c050 RCX: 00007f764ca7cae9 RDX: 0000000020000240 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007f764cac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f764cb9c050 R15: 00007ffe938f71a8 Showing all locks held in the system: 2 locks held by kworker/1:1/28: #0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90000a4fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90000a4fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 1 lock held by khungtaskd/29: #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 2 locks held by kworker/u4:5/137: #0: ffff888012871938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012871938 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90002e6fd20 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90002e6fd20 ((reaper_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 2 locks held by getty/4781: #0: ffff88814aeea0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015a72f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206 1 lock held by syz-executor.2/5059: 3 locks held by kworker/u4:12/9666: #0: ffff8880b983c318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #1: ffff8880b9828808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:999 #2: ffffffff92113df8 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:1020 [inline] #2: ffffffff92113df8 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0xcc/0x420 lib/debugobjects.c:1063 3 locks held by kworker/u4:2/24256: #0: ffff888016a5cd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888016a5cd38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90015867d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90015867d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff88807b8b20e0 (&type->s_umount_key#61){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:607 2 locks held by syz-executor.1/27806: #0: ffff88807b8b2410 (sb_writers#16){.+.+}-{0:0} , at: do_sendfile+0x600/0x1070 fs/read_write.c:1253 #1: ffff888038d0ec00 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] ffff888038d0ec00 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:377 4 locks held by syz-executor.1/27849: #0: ffff888038d0ec00 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888038d0ec00 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:369 #1: ffff8880788cbaa0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff8880788cbaa0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5311 [inline] #1: ffff8880788cbaa0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5371 #2: ffff88807b8b2508 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2931 #3: ffff888038d0ea88 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8132 2 locks held by syz-executor.1/29457: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x310 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+0xfa9/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 29457 Comm: syz-executor.1 Not tainted 6.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:84 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:127 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:178 [inline] RIP: 0010:kasan_check_range+0x94/0x290 mm/kasan/generic.c:187 Code: 48 83 fd 10 7f 29 48 85 ed 0f 84 3e 01 00 00 4c 89 cd 48 f7 d5 48 01 dd 41 80 3b 00 0f 85 c5 01 00 00 49 ff c3 48 ff c5 75 ee 1e 01 00 00 45 89 dc 41 83 e4 07 0f 84 b5 00 00 00 41 80 3b 00 RSP: 0018:ffffc9000e5576f0 EFLAGS: 00000256 RAX: ffffffff81c99f01 RBX: 1ffffd400025f328 RCX: ffffffff81c99f58 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffea00012f9940 RBP: 0000000000000000 R08: ffffea00012f9947 R09: 1ffffd400025f328 R10: dffffc0000000000 R11: fffff9400025f329 R12: 0000000000000c1a R13: ffffc9000e5577e0 R14: dffffc0000000001 R15: fffff9400025f329 FS: 00007f2fc163f6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fbf0c6ee000 CR3: 000000007965a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] folio_test_head include/linux/page-flags.h:771 [inline] folio_test_large include/linux/page-flags.h:792 [inline] folio_order include/linux/mm.h:1070 [inline] shmem_add_to_page_cache+0x228/0x1d70 mm/shmem.c:766 shmem_get_folio_gfp+0x108e/0x2b60 mm/shmem.c:2050 shmem_get_folio mm/shmem.c:2143 [inline] shmem_write_begin+0x170/0x300 mm/shmem.c:2688 generic_perform_write+0x31b/0x630 mm/filemap.c:3969 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2865 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x782/0xaf0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2fc087b82f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48 RSP: 002b:00007f2fc163ee70 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007f2fc087b82f RDX: 0000000001000000 RSI: 00007f2fb6fff000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 00000000000050e7 R10: 0000000000000002 R11: 0000000000000293 R12: 0000000000000003 R13: 00007f2fc163ef3c R14: 00007f2fc163ef40 R15: 00007f2fb6fff000