INFO: task kworker/u4:3:427 blocked for more than 143 seconds. Not tainted 5.15.153-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:3 state:D stack:22552 pid: 427 ppid: 2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-btrfs-6) Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 wait_on_state fs/btrfs/extent_io.c:868 [inline] wait_extent_bit+0x3f9/0x530 fs/btrfs/extent_io.c:906 lock_extent_bits+0x10d/0x1e0 fs/btrfs/extent_io.c:1469 btrfs_invalidatepage+0x238/0x890 fs/btrfs/inode.c:8755 __extent_writepage+0x46e/0xbc0 fs/btrfs/extent_io.c:4091 extent_write_cache_pages fs/btrfs/extent_io.c:5030 [inline] extent_writepages+0xbbd/0x1590 fs/btrfs/extent_io.c:5157 do_writepages+0x481/0x730 mm/page-writeback.c:2364 __writeback_single_inode+0x15b/0xe30 fs/fs-writeback.c:1647 writeback_sb_inodes+0xbce/0x1a40 fs/fs-writeback.c:1930 wb_writeback+0x451/0xc50 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x46c/0x1130 fs/fs-writeback.c:2288 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 INFO: task syz-executor.0:4664 blocked for more than 143 seconds. Not tainted 5.15.153-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:26848 pid: 4664 ppid: 3528 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 io_schedule+0x88/0x100 kernel/sched/core.c:8484 wait_on_page_bit_common+0xa13/0x1180 mm/filemap.c:1356 lock_page include/linux/pagemap.h:625 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:5008 [inline] extent_writepages+0x8fb/0x1590 fs/btrfs/extent_io.c:5157 do_writepages+0x481/0x730 mm/page-writeback.c:2364 filemap_fdatawrite_wbc+0x1d6/0x230 mm/filemap.c:400 __filemap_fdatawrite_range mm/filemap.c:433 [inline] __filemap_fdatawrite mm/filemap.c:439 [inline] filemap_flush+0x10c/0x150 mm/filemap.c:466 btrfs_release_file+0x102/0x120 fs/btrfs/file.c:2119 __fput+0x3bf/0x890 fs/file_table.c:280 task_work_run+0x129/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fad74115c9a RSP: 002b:00007ffd4ceb7170 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007fad74115c9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fad74246980 R08: 0000001b2fa20000 R09: 0000000000000283 R10: 0000000084068f93 R11: 0000000000000293 R12: 00000000000172fe R13: ffffffffffffffff R14: 00007fad73c99000 R15: 0000000000016a38 INFO: task syz-executor.0:4665 blocked for more than 144 seconds. Not tainted 5.15.153-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:22816 pid: 4665 ppid: 3528 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191 __writeback_inodes_sb_nr+0x2ce/0x370 fs/fs-writeback.c:2684 try_to_writeback_inodes_sb+0x94/0xb0 fs/fs-writeback.c:2732 btrfs_start_delalloc_flush fs/btrfs/transaction.c:2106 [inline] btrfs_commit_transaction+0xb17/0x3800 fs/btrfs/transaction.c:2269 btrfs_sync_file+0xbc1/0xfa0 fs/btrfs/file.c:2397 generic_write_sync include/linux/fs.h:2958 [inline] btrfs_file_write_iter+0x896/0xc60 fs/btrfs/file.c:2093 do_iter_readv_writev+0x594/0x7a0 do_iter_write+0x1ea/0x760 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x219/0x360 fs/read_write.c:1025 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fad74116da9 RSP: 002b:00007fad726970c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fad74244f80 RCX: 00007fad74116da9 RDX: 0000000000000001 RSI: 0000000020000500 RDI: 0000000000000006 RBP: 00007fad7416347a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fad74244f80 R15: 00007ffd4ceb70a8 INFO: task syz-executor.0:4769 blocked for more than 144 seconds. Not tainted 5.15.153-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:23936 pid: 4769 ppid: 3528 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 wait_current_trans+0x305/0x480 fs/btrfs/transaction.c:539 start_transaction+0x778/0x11a0 fs/btrfs/transaction.c:681 clone_copy_inline_extent fs/btrfs/reflink.c:290 [inline] btrfs_clone+0x1a23/0x2ac0 fs/btrfs/reflink.c:514 btrfs_clone_files+0x26a/0x360 fs/btrfs/reflink.c:740 btrfs_remap_file_range+0x5c8/0xef0 fs/btrfs/reflink.c:888 vfs_copy_file_range+0x109c/0x14c0 fs/read_write.c:1510 __do_sys_copy_file_range fs/read_write.c:1588 [inline] __se_sys_copy_file_range+0x3ea/0x5d0 fs/read_write.c:1551 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fad74116da9 RSP: 002b:00007fad726760c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fad74245050 RCX: 00007fad74116da9 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007fad7416347a R08: 0000000000000009 R09: 0000000000000000 R10: 0000000020000640 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fad74245050 R15: 00007ffd4ceb70a8 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:3/427: #0: ffff8881427a4938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90003117d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 2 locks held by getty/3257: #0: ffff88814ac90098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc9000250b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 3 locks held by syz-executor.0/4665: #0: ffff8880206fc460 (sb_writers#26){.+.+}-{0:0}, at: vfs_writev fs/read_write.c:927 [inline] #0: ffff8880206fc460 (sb_writers#26){.+.+}-{0:0}, at: do_pwritev+0x1fd/0x360 fs/read_write.c:1025 #1: ffff8880206fc650 (sb_internal#2){.+.+}-{0:0}, at: btrfs_sync_file+0x9d9/0xfa0 fs/btrfs/file.c:2316 #2: ffff8880206fc0e0 (&type->s_umount_key#85){++++}-{3:3}, at: try_to_writeback_inodes_sb+0x1d/0xb0 fs/fs-writeback.c:2729 4 locks held by syz-executor.0/4769: #0: ffff8880206fc460 (sb_writers#26){.+.+}-{0:0}, at: vfs_copy_file_range+0x923/0x14c0 fs/read_write.c:1494 #1: ffff888070e4b720 (&sb->s_type->i_mutex_key#32){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #1: ffff888070e4b720 (&sb->s_type->i_mutex_key#32){+.+.}-{3:3}, at: btrfs_inode_lock+0x49/0xd0 fs/btrfs/inode.c:124 #2: ffff888070e4b5a8 (&ei->i_mmap_lock){+.+.}-{3:3}, at: btrfs_inode_lock+0xc1/0xd0 fs/btrfs/inode.c:127 #3: ffff8880206fc650 (sb_internal#2){.+.+}-{0:0}, at: clone_copy_inline_extent fs/btrfs/reflink.c:290 [inline] #3: ffff8880206fc650 (sb_internal#2){.+.+}-{0:0}, at: btrfs_clone+0x1a23/0x2ac0 fs/btrfs/reflink.c:514 1 lock held by btrfs-transacti/4759: #0: ffff88805f47c7b0 (&fs_info->transaction_kthread_mutex){+.+.}-{3:3}, at: transaction_kthread+0xe4/0x410 fs/btrfs/disk-io.c:1875 3 locks held by kworker/u4:11/5171: #0: ffff8880b9b3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475 #1: ffffc900032b7d20 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff8880b9b28098 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 kernel/time/timer.c:946 2 locks held by syz-executor.2/5613: #0: ffff8880206fc0e0 (&type->s_umount_key#85){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 2 locks held by syz-executor.2/5614: #0: ffff8880206fc0e0 (&type->s_umount_key#85){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 2 locks held by syz-executor.4/6954: #0: ffff8880206fc0e0 (&type->s_umount_key#85){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 2 locks held by syz-executor.3/7223: #0: ffff8880206fc0e0 (&type->s_umount_key#85){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 2 locks held by syz-executor.3/7228: #0: ffff8880206fc0e0 (&type->s_umount_key#85){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8880206fe7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.153-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3597 Comm: kworker/1:7 Not tainted 5.15.153-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Workqueue: events_power_efficient wg_ratelimiter_gc_entries RIP: 0010:kasan_check_range+0x1ac/0x290 mm/kasan/generic.c:189 Code: 4c 89 d5 48 8d 5d 07 48 85 ed 48 0f 49 dd 48 83 e3 f8 48 29 dd 74 12 41 80 39 00 0f 85 a2 00 00 00 49 ff c1 48 ff cd 75 ee 5b <41> 5e 41 5f 5d c3 45 84 f6 75 61 41 f7 c6 00 ff 00 00 75 5d 41 f7 RSP: 0018:ffffc9000115f938 EFLAGS: 00000056 RAX: 0000000000000001 RBX: 000000000000075f RCX: ffffffff8162f8e8 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8fbd01a8 RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff1f7a036 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: fffffbfff1f7a036 R15: ffff88807ae12900 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563479eb0030 CR3: 0000000023b49000 CR4: 00000000003506e0 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] hlock_class kernel/locking/lockdep.c:197 [inline] mark_lock+0x98/0x340 kernel/locking/lockdep.c:4569 __lock_acquire+0xc78/0x1ff0 kernel/locking/lockdep.c:4966 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] wg_ratelimiter_gc_entries+0x5c/0x470 drivers/net/wireguard/ratelimiter.c:63 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298