INFO: task syz-executor.0:10451 blocked for more than 143 seconds. Not tainted 6.5.0-rc1-syzkaller-00276-g20edcec23f92 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:22136 pid:10451 ppid:5059 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0x1873/0x48f0 kernel/sched/core.c:6710 schedule+0xc3/0x180 kernel/sched/core.c:6786 io_schedule+0x8c/0x100 kernel/sched/core.c:9028 folio_wait_bit_common+0x86c/0x12b0 mm/filemap.c:1304 lock_page include/linux/pagemap.h:980 [inline] set_page_dirty_lock+0xfd/0x2d0 mm/page-writeback.c:2823 bio_set_pages_dirty+0x1f7/0x2c0 block/bio.c:1490 iomap_dio_bio_iter+0xb7d/0x1430 fs/iomap/direct-io.c:334 __iomap_dio_rw+0x11fa/0x2250 fs/iomap/direct-io.c:575 iomap_dio_rw+0x46/0xa0 fs/iomap/direct-io.c:665 btrfs_dio_read+0xb6/0x100 fs/btrfs/inode.c:7875 btrfs_direct_read fs/btrfs/file.c:3765 [inline] btrfs_file_read_iter+0x39f/0x6b0 fs/btrfs/file.c:3804 do_iter_read+0x829/0xdc0 fs/read_write.c:795 vfs_readv fs/read_write.c:915 [inline] do_preadv+0x212/0x350 fs/read_write.c:1007 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:0x7f08d187cb29 RSP: 002b:00007f08d26320c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000147 RAX: ffffffffffffffda RBX: 00007f08d199bf80 RCX: 00007f08d187cb29 RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000008 RBP: 00007f08d18c847a R08: 000000000003f000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f08d199bf80 R15: 00007ffda5ef4d98 INFO: task syz-executor.0:10506 blocked for more than 143 seconds. Not tainted 6.5.0-rc1-syzkaller-00276-g20edcec23f92 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28008 pid:10506 ppid:5059 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0x1873/0x48f0 kernel/sched/core.c:6710 schedule+0xc3/0x180 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:771 [inline] btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:377 btrfs_buffered_write+0x230/0x1380 fs/btrfs/file.c:1199 btrfs_direct_write fs/btrfs/file.c:1590 [inline] btrfs_do_write_iter+0xce0/0x1020 fs/btrfs/file.c:1667 call_write_iter include/linux/fs.h:1871 [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:0x7f08d187cb29 RSP: 002b:00007f08d26110c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f08d199c050 RCX: 00007f08d187cb29 RDX: 0000000000000128 RSI: 0000000020004400 RDI: 0000000000000008 RBP: 00007f08d18c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f08d199c050 R15: 00007ffda5ef4d98 INFO: task syz-executor.0:10512 blocked for more than 143 seconds. Not tainted 6.5.0-rc1-syzkaller-00276-g20edcec23f92 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25416 pid:10512 ppid:5059 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0x1873/0x48f0 kernel/sched/core.c:6710 schedule+0xc3/0x180 kernel/sched/core.c:6786 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:8244 do_page_mkwrite+0x1a4/0x600 mm/memory.c:2942 wp_page_shared mm/memory.c:3294 [inline] do_wp_page+0x559/0x3a70 mm/memory.c:3376 handle_pte_fault mm/memory.c:4955 [inline] __handle_mm_fault mm/memory.c:5079 [inline] handle_mm_fault+0x1c58/0x5410 mm/memory.c:5233 do_user_addr_fault arch/x86/mm/fault.c:1392 [inline] handle_page_fault arch/x86/mm/fault.c:1486 [inline] exc_page_fault+0x266/0x7c0 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:do_sys_poll+0xeb6/0x11b0 fs/select.c:1026 Code: 45 31 ed 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84 c0 75 2e 48 8b 84 24 88 00 00 00 42 0f b7 44 e8 06 <66> 89 02 48 89 d3 45 39 ef 74 31 e8 ba c5 91 ff 49 ff c5 49 83 c4 RSP: 0018:ffffc900160e78a0 EFLAGS: 00050246 RAX: 0000000000000000 RBX: ffffc900160e7c78 RCX: dffffc0000000000 RDX: 0000000020000186 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900160e7e10 R08: ffffffff81fa3d8b R09: 1ffff1100572d23b R10: dffffc0000000000 R11: ffffed100572d23c R12: ffffc900160e7c82 R13: 0000000000000000 R14: ffffc900160e7c70 R15: 0000000000000000 __do_sys_ppoll fs/select.c:1121 [inline] __se_sys_ppoll+0x2a0/0x330 fs/select.c:1101 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:0x7f08d187cb29 RSP: 002b:00007f08d25ae0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000010f RAX: ffffffffffffffda RBX: 00007f08d199c2c0 RCX: 00007f08d187cb29 RDX: 00000000200001c0 RSI: 0000000000000001 RDI: 0000000020000180 RBP: 00007f08d18c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f08d199c2c0 R15: 00007ffda5ef4d98 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8d328af0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/14: #0: ffffffff8d328eb0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/28: #0: ffffffff8d328920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u4:4/76: #0: ffff888014667138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7e3/0x12c0 kernel/workqueue.c:2569 #1: ffffc90001597d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x82b/0x12c0 kernel/workqueue.c:2571 #2: ffff88803b6b40e0 (&type->s_umount_key#55){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:413 2 locks held by getty/4768: #0: ffff8880282ff098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015d02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2187 1 lock held by syz-executor.0/10451: #0: ffff88807c0ff550 (&sb->s_type->i_mutex_key#25){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:781 [inline] #0: ffff88807c0ff550 (&sb->s_type->i_mutex_key#25){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:369 3 locks held by syz-executor.0/10506: #0: ffff8880233f00c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1047 #1: ffff88803b6b4410 (sb_writers#16){.+.+}-{0:0}, at: vfs_write+0x216/0xaf0 fs/read_write.c:580 #2: ffff88807c0ff550 (&sb->s_type->i_mutex_key#25){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline] #2: ffff88807c0ff550 (&sb->s_type->i_mutex_key#25){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:377 3 locks held by syz-executor.0/10512: #0: ffff888020e8e0a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:161 [inline] #0: ffff888020e8e0a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5261 [inline] #0: ffff888020e8e0a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2f0 mm/memory.c:5323 #1: ffff88803b6b4508 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a4/0x600 mm/memory.c:2942 #2: ffff88807c0ff3d8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8233 2 locks held by syz-executor.0/12538: #0: ffff88803b6b40e0 (&type->s_umount_key#55){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:742 #1: ffff88803b6b67d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88803b6b67d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x278/0xab0 fs/fs-writeback.c:2734 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.5.0-rc1-syzkaller-00276-g20edcec23f92 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/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+0x187/0x300 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+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296 RIP: 0000:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4456 Comm: klogd Not tainted 6.5.0-rc1-syzkaller-00276-g20edcec23f92 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:__orc_find arch/x86/kernel/unwind_orc.c:109 [inline] RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:227 [inline] RIP: 0010:unwind_next_frame+0x255/0x2390 arch/x86/kernel/unwind_orc.c:494 Code: 87 c9 03 00 00 45 39 e0 0f 84 cd 03 00 00 4e 8d 34 a5 64 48 a4 8e 45 29 e0 4b 8d 6c 86 fc 4d 89 f4 4c 39 f5 0f 83 f3 01 00 00 <4d> 29 f4 49 be 00 00 00 00 00 fc ff df e9 7f 02 00 00 48 c7 c7 a0 RSP: 0018:ffffc90002f6f0d0 EFLAGS: 00000202 RAX: ffffffff8ef63fa0 RBX: ffffffff8ef63fa4 RCX: ffffffff8ef63fa8 RDX: ffffffff8f8acda8 RSI: 00000000000a0001 RDI: ffffffff813cdbc0 RBP: ffffffff8ef63fa4 R08: 0000000000000001 R09: ffffc90002f6f290 R10: ffffc90002f6f1f0 R11: fffff520005ede40 R12: ffffffff8ef63fa4 R13: ffffffff8ef63fa8 R14: ffffffff8ef63fa4 R15: ffffffff889f9ad8 FS: 00007f427276c380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055829475e680 CR3: 0000000027a4a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x111/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122 save_stack+0xfa/0x1e0 mm/page_owner.c:128 __reset_page_owner+0x4f/0x190 mm/page_owner.c:149 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x903/0xa30 mm/page_alloc.c:2348 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2443 discard_slab mm/slub.c:2108 [inline] __unfreeze_partials+0x1dc/0x220 mm/slub.c:2647 put_cpu_partial+0x116/0x180 mm/slub.c:2723 __slab_free+0x2b6/0x390 mm/slub.c:3671 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x6c/0x3b0 mm/slab.h:762 slab_alloc_node mm/slub.c:3470 [inline] kmem_cache_alloc_node+0x149/0x330 mm/slub.c:3515 __alloc_skb+0x181/0x420 net/core/skbuff.c:634 alloc_skb include/linux/skbuff.h:1289 [inline] alloc_skb_with_frags+0xa8/0x750 net/core/skbuff.c:6233 sock_alloc_send_pskb+0x919/0xa50 net/core/sock.c:2782 unix_dgram_sendmsg+0x659/0x2070 net/unix/af_unix.c:1944 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] __sys_sendto+0x484/0x640 net/socket.c:2134 __do_sys_sendto net/socket.c:2146 [inline] __se_sys_sendto net/socket.c:2142 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2142 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:0x7f42728ce9b5 Code: 8b 44 24 08 48 83 c4 28 48 98 c3 48 98 c3 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 26 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 7a 48 8b 15 44 c4 0c 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffd01458158 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f42728ce9b5 RDX: 0000000000000073 RSI: 00005646c1ecd6f0 RDI: 0000000000000003 RBP: 00005646c1ec5910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000013 R13: 00007f4272a5c212 R14: 00007ffd01458258 R15: 0000000000000000