INFO: task kworker/u4:3:48 blocked for more than 143 seconds. Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:3 state:D stack:20424 pid:48 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-btrfs-179) 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.4:18802 blocked for more than 143 seconds. Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:23336 pid:18802 ppid:5078 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:0x7f876ea7cae9 RSP: 002b:00007f876f8600c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f876eb9bf80 RCX: 00007f876ea7cae9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000006 RBP: 00007f876eac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f876eb9bf80 R15: 00007ffdbc1c1ae8 INFO: task syz-executor.4:18859 blocked for more than 144 seconds. Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:23960 pid:18859 ppid:5078 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:ffffc900036cf550 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000298 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc900036cf600 RDI: 0000000020000260 RBP: ffffc900036cf6b0 R08: ffffc900036cf637 R09: 1ffff920006d9ec6 R10: dffffc0000000000 R11: fffff520006d9ec7 R12: 0000000000000038 R13: ffffc900036cf600 R14: 0000000020000260 R15: ffffc900036cf600 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:0x7f876ea7cae9 RSP: 002b:00007f876f83f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f876eb9c050 RCX: 00007f876ea7cae9 RDX: 0000000020000240 RSI: 00000000c020660b RDI: 0000000000000006 RBP: 00007f876eac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f876eb9c050 R15: 00007ffdbc1c1ae8 Showing all locks held in the system: 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 3 locks held by kworker/u4:3/48: #0: ffff888018a6d938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888018a6d938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90000b8fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90000b8fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff8880288540e0 (&type->s_umount_key#76){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:607 2 locks held by getty/4784: #0: ffff88814aa870a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206 2 locks held by syz-executor.4/18802: #0: ffff888028854410 (sb_writers#14){.+.+}-{0:0}, at: do_sendfile+0x600/0x1070 fs/read_write.c:1253 #1: ffff888037bad010 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888037bad010 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:377 4 locks held by syz-executor.4/18859: #0: ffff888037bad010 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888037bad010 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:369 #1: ffff88802906baa0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff88802906baa0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5311 [inline] #1: ffff88802906baa0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5371 #2: ffff888028854508 (sb_pagefaults#4){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2931 #3: ffff888037bace98 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8132 2 locks held by syz-executor.4/20072: #0: ffff8880288540e0 (&type->s_umount_key#76){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880288540e0 (&type->s_umount_key#76){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff8880288527d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff8880288527d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2739 2 locks held by syz-executor.4/20203: #0: ffff8880288540e0 (&type->s_umount_key#76){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880288540e0 (&type->s_umount_key#76){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff8880288527d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff8880288527d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2739 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 15229 Comm: kworker/u4:9 Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:arch_irqs_disabled_flags arch/x86/include/asm/irqflags.h:122 [inline] RIP: 0010:lock_acquire+0x1ad/0x520 kernel/locking/lockdep.c:5754 Code: 08 4c 89 ff e8 a4 8b 7b 00 48 8d 5c 24 60 4c 8b bc 24 80 00 00 00 fa 48 c7 c7 00 b1 0a 8b e8 8a 76 60 09 65 ff 05 4b 98 95 7e <45> 31 c9 41 f7 c7 00 02 00 00 41 0f 94 c1 48 8b 7c 24 20 44 89 f6 RSP: 0018:ffffc90016467a20 EFLAGS: 00000002 RAX: 0000000000000001 RBX: ffffc90016467a80 RCX: ffffffff816cf014 RDX: 0000000000000000 RSI: ffffffff8b0ab100 RDI: ffffffff8b599aa0 RBP: ffffc90016467b80 R08: ffffffff8e9a78ef R09: 1ffffffff1d34f1d R10: dffffc0000000000 R11: fffffbfff1d34f1e R12: 1ffff92002c8cf4c R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f440f233866 CR3: 000000000d130000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] rcu_read_lock include/linux/rcupdate.h:749 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719 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