INFO: task kworker/u4:7:1087 blocked for more than 143 seconds. Not tainted 6.7.0-rc5-syzkaller-00214-gc8e97fc6b4c0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:7 state:D stack:18040 pid:1087 tgid:1087 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-btrfs-47) Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 wait_extent_bit fs/btrfs/extent-io-tree.c:799 [inline] lock_extent+0x69d/0x850 fs/btrfs/extent-io-tree.c:1843 find_lock_delalloc_range+0x4b5/0x970 fs/btrfs/extent_io.c:393 writepage_delalloc+0x17f/0x470 fs/btrfs/extent_io.c:1183 __extent_writepage fs/btrfs/extent_io.c:1440 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2108 [inline] extent_writepages+0x1210/0x26a0 fs/btrfs/extent_io.c:2230 do_writepages+0x3a6/0x670 mm/page-writeback.c:2553 __writeback_single_inode+0x155/0xfc0 fs/fs-writeback.c:1625 writeback_sb_inodes+0x8e3/0x1220 fs/fs-writeback.c:1916 wb_writeback+0x44d/0xc70 fs/fs-writeback.c:2092 wb_do_writeback fs/fs-writeback.c:2239 [inline] wb_workfn+0x400/0xfb0 fs/fs-writeback.c:2279 process_one_work kernel/workqueue.c:2627 [inline] process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2700 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2781 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:242 INFO: task syz-executor.3:7999 blocked for more than 143 seconds. Not tainted 6.7.0-rc5-syzkaller-00214-gc8e97fc6b4c0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:22768 pid:7999 tgid:7998 ppid:5090 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 wb_wait_for_completion+0x166/0x290 fs/fs-writeback.c:192 __writeback_inodes_sb_nr+0x2d2/0x370 fs/fs-writeback.c:2672 sync_filesystem+0xa4/0x220 fs/sync.c:54 btrfs_remount+0x231/0x14b0 fs/btrfs/super.c:1652 reconfigure_super+0x440/0x870 fs/super.c:1143 do_remount fs/namespace.c:2884 [inline] path_mount+0xc24/0xfa0 fs/namespace.c:3656 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f077507e2aa RSP: 002b:00007f0775e3bee8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f0775e3bf80 RCX: 00007f077507e2aa RDX: 0000000020000180 RSI: 0000000020000100 RDI: 0000000000000000 RBP: 0000000020000180 R08: 00007f0775e3bf80 R09: 0000000001a404ac R10: 0000000001a404ac R11: 0000000000000202 R12: 0000000020000100 R13: 00007f0775e3bf40 R14: 0000000000000000 R15: 00000000200030c0 INFO: task syz-executor.3:8061 blocked for more than 143 seconds. Not tainted 6.7.0-rc5-syzkaller-00214-gc8e97fc6b4c0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:22424 pid:8061 tgid:7998 ppid:5090 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 io_schedule+0x8c/0x100 kernel/sched/core.c:8998 folio_wait_bit_common+0x881/0x12b0 mm/filemap.c:1273 btrfs_page_mkwrite+0x4a4/0xd10 fs/btrfs/inode.c:8148 do_page_mkwrite+0x197/0x470 mm/memory.c:2944 wp_page_shared mm/memory.c:3339 [inline] do_wp_page+0x1d07/0x4d40 mm/memory.c:3479 handle_pte_fault mm/memory.c:5055 [inline] __handle_mm_fault mm/memory.c:5180 [inline] handle_mm_fault+0x1b1c/0x6680 mm/memory.c:5345 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2ad/0x870 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:ffffc900169af330 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000118 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc900169af3e0 RDI: 00000000200000e0 RBP: ffffc900169af498 R08: ffffc900169af417 R09: 1ffff92002d35e82 R10: dffffc0000000000 R11: fffff52002d35e83 R12: 0000000000000038 R13: ffffc900169af3e0 R14: 00000000200000e0 R15: ffffc900169af3e0 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_fiemap_extent+0x258/0x410 fs/btrfs/extent_io.c:2477 fiemap_process_hole+0x374/0xaf0 fs/btrfs/extent_io.c:2688 extent_fiemap+0xeae/0x1fe0 btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7830 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:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f077507cba9 RSP: 002b:00007f0775e1b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f077519c050 RCX: 00007f077507cba9 RDX: 00000000200000c0 RSI: 00000000c020660b RDI: 0000000000000005 RBP: 00007f07750c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f077519c050 R15: 00007ffd42bd2b78 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by kworker/u4:7/1087: #0: ffff888141e59938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #0: ffff888141e59938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #1: ffffc90004f9fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #1: ffffc90004f9fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 2 locks held by klogd/4499: 2 locks held by getty/4808: #0: ffff88814c7380a0 (&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+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.3/7999: #0: ffff888036c260e0 (&type->s_umount_key#60){++++}-{3:3}, at: do_remount fs/namespace.c:2881 [inline] #0: ffff888036c260e0 (&type->s_umount_key#60){++++}-{3:3}, at: path_mount+0xbdd/0xfa0 fs/namespace.c:3656 4 locks held by syz-executor.3/8061: #0: ffff888078b9aaa8 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff888078b9aaa8 (&sb->s_type->i_mutex_key#24){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:370 #1: ffff888027c93120 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff888027c93120 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5372 [inline] #1: ffff888027c93120 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5432 #2: ffff888036c26510 (sb_pagefaults#3){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2944 #3: ffff888078b9a930 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8147 1 lock held by syz-executor.1/9331: #0: ffff888036c260e0 (&type->s_umount_key#60){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff888036c260e0 (&type->s_umount_key#60){++++}-{3:3}, at: super_lock+0x176/0x3a0 fs/super.c:117 1 lock held by syz-executor.1/9346: #0: ffff888036c260e0 (&type->s_umount_key#60){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff888036c260e0 (&type->s_umount_key#60){++++}-{3:3}, at: super_lock+0x176/0x3a0 fs/super.c:117 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc5-syzkaller-00214-gc8e97fc6b4c0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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+0xfaf/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:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3065 Comm: kworker/u4:8 Not tainted 6.7.0-rc5-syzkaller-00214-gc8e97fc6b4c0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:26 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:67 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:103 [inline] RIP: 0010:lock_acquire+0x176/0x530 kernel/locking/lockdep.c:5750 Code: 8d bc 24 80 00 00 00 4c 89 fb 48 c1 eb 03 42 80 3c 2b 00 74 08 4c 89 ff e8 d7 5f 7d 00 48 c7 84 24 80 00 00 00 00 00 00 00 9c <8f> 84 24 80 00 00 00 42 80 3c 2b 00 74 08 4c 89 ff e8 14 5f 7d 00 RSP: 0018:ffffc9000b35f898 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff9200166bf24 RCX: ffffffff816d12c4 RDX: 0000000000000000 RSI: ffffffff8bbde080 RDI: ffffffff8bbde040 RBP: ffffc9000b35f9e8 R08: ffffffff8f00be6f R09: 1ffffffff1e017cd R10: dffffc0000000000 R11: fffffbfff1e017ce R12: 1ffff9200166bf1c R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc9000b35f920 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c000c1b000 CR3: 000000000d731000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] rcu_read_lock include/linux/rcupdate.h:747 [inline] batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:754 [inline] batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:825 [inline] batadv_iv_ogm_schedule+0x43f/0x1090 net/batman-adv/bat_iv_ogm.c:868 batadv_iv_send_outstanding_bat_ogm_packet+0x6fe/0x810 net/batman-adv/bat_iv_ogm.c:1712 process_one_work kernel/workqueue.c:2627 [inline] process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2700 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2781 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:242