INFO: task syz.3.263:7347 blocked for more than 143 seconds. Not tainted 6.15.0-rc4-syzkaller-00052-g4f79eaa2ceac #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.263 state:D stack:14752 pid:7347 tgid:7345 ppid:5833 task_flags:0x440140 flags:0x00004006 Call Trace: <TASK> context_switch kernel/sched/core.c:5382 [inline] __schedule+0x16e2/0x4cd0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x165/0x360 kernel/sched/core.c:6860 __bch2_two_state_lock+0x1ea/0x370 fs/bcachefs/two_state_shared_lock.c:7 bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:55 [inline] bch2_readahead+0x94f/0x1100 fs/bcachefs/fs-io-buffered.c:296 read_pages+0x17a/0x590 mm/readahead.c:160 page_cache_ra_order+0xa24/0xc70 mm/readahead.c:515 filemap_readahead mm/filemap.c:2560 [inline] filemap_get_pages+0xb22/0x1eb0 mm/filemap.c:2605 filemap_splice_read+0x4fc/0xbc0 mm/filemap.c:2981 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0x4a9/0xcc0 fs/splice.c:1083 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x181/0x270 fs/splice.c:1227 do_sendfile+0x4da/0x7d0 fs/read_write.c:1368 __do_sys_sendfile64 fs/read_write.c:1429 [inline] __se_sys_sendfile64+0x13e/0x190 fs/read_write.c:1415 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2cbd78e969 RSP: 002b:00007f2cbb5f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f2cbd9b5fa0 RCX: 00007f2cbd78e969 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007f2cbd810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2cbd9b5fa0 R15: 00007ffc313353a8 </TASK> INFO: task syz.3.263:7378 blocked for more than 146 seconds. Not tainted 6.15.0-rc4-syzkaller-00052-g4f79eaa2ceac #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.263 state:D stack:26048 pid:7378 tgid:7345 ppid:5833 task_flags:0x400040 flags:0x00004004 Call Trace: <TASK> context_switch kernel/sched/core.c:5382 [inline] __schedule+0x16e2/0x4cd0 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x165/0x360 kernel/sched/core.c:6860 io_schedule+0x81/0xe0 kernel/sched/core.c:7742 folio_wait_bit_common+0x6b0/0xb90 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1137 [inline] truncate_inode_pages_range+0xa77/0xda0 mm/truncate.c:429 truncate_inode_pages mm/truncate.c:456 [inline] truncate_pagecache mm/truncate.c:765 [inline] truncate_setsize+0xcf/0xf0 mm/truncate.c:790 bchfs_truncate+0x627/0xb70 fs/bcachefs/fs-io.c:471 notify_change+0xb36/0xe40 fs/attr.c:552 do_truncate+0x19a/0x220 fs/open.c:65 handle_truncate fs/namei.c:3501 [inline] do_open fs/namei.c:3884 [inline] path_openat+0x306c/0x3830 fs/namei.c:4039 do_filp_open+0x1fa/0x410 fs/namei.c:4066 do_sys_openat2+0x121/0x1c0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_creat fs/open.c:1522 [inline] __se_sys_creat fs/open.c:1516 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1516 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2cbd78e969 RSP: 002b:00007f2cbb5b4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f2cbd9b6160 RCX: 00007f2cbd78e969 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000240 RBP: 00007f2cbd810ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f2cbd9b6160 R15: 00007ffc313353a8 </TASK> Showing all locks held in the system: 3 locks held by kworker/0:1/10: #0: ffff888020eac148 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff888020eac148 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b1/0x17a0 kernel/workqueue.c:3319 #1: ffffc900000f7c60 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc900000f7c60 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9ec/0x17a0 kernel/workqueue.c:3319 #2: ffff8880278f6198 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #2: ffff8880278f6198 (&dev->mutex){....}-{4:4}, at: hub_event+0x184/0x4a00 drivers/usb/core/hub.c:5859 1 lock held by khungtaskd/31: #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8df3b860 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6764 2 locks held by getty/5582: #0: ffff88803066c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900036cb2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 2 locks held by kworker/u8:9/6006: #0: ffff88801e330948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801e330948 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x9b1/0x17a0 kernel/workqueue.c:3319 #1: ffffc9000b247c60 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000b247c60 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ec/0x17a0 kernel/workqueue.c:3319 1 lock held by syz.3.263/7347: #0: ffff88807821f4d0 (mapping.invalidate_lock#4){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:922 [inline] #0: ffff88807821f4d0 (mapping.invalidate_lock#4){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz.3.263/7378: #0: ffff888030a06420 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:556 #1: ffff88807821f330 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline] #1: ffff88807821f330 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: do_truncate+0x186/0x220 fs/open.c:63 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc4-syzkaller-00052-g4f79eaa2ceac #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: <TASK> dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline] watchdog+0xfee/0x1030 kernel/hung_task.c:437 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4e/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK> Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 3 Comm: pool_workqueue_ Not tainted 6.15.0-rc4-syzkaller-00052-g4f79eaa2ceac #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 RIP: 0010:remove_class_from_lock_chain kernel/locking/lockdep.c:6195 [inline] RIP: 0010:remove_class_from_lock_chains kernel/locking/lockdep.c:6234 [inline] RIP: 0010:zap_class+0xc2/0x360 kernel/locking/lockdep.c:6279 Code: 49 81 fc 00 00 08 00 0f 84 a5 01 00 00 4e 8b 2c e5 10 d7 38 93 4d 85 ed 0f 94 c0 49 83 c5 f8 0f 94 c1 08 c1 75 d7 45 8b 7d 00 <41> f6 c7 fc 0f 84 e2 00 00 00 41 c1 ef 08 4e 8d 34 7d e0 d6 7d 92 RSP: 0018:ffffc90000087c60 EFLAGS: 00000046 RAX: 0000000000032800 RBX: 0000000000000ce9 RCX: 0000000000032800 RDX: ffffffff9338d708 RSI: 0000000000000004 RDI: 000000000004bbf1 RBP: ffffffff937cdb80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff81aafa28 R12: 0000000000053592 R13: ffffffff93837160 R14: ffffffff928427e2 R15: 0000000000c2eb08 FS: 0000000000000000(0000) GS:ffff8881260cc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6e46f7fab8 CR3: 0000000065d5d000 CR4: 0000000000350ef0 Call Trace: <TASK> __lockdep_free_key_range kernel/locking/lockdep.c:6405 [inline] lockdep_unregister_key+0x1a6/0x310 kernel/locking/lockdep.c:6607 wq_unregister_lockdep kernel/workqueue.c:4816 [inline] pwq_release_workfn+0x6d5/0x870 kernel/workqueue.c:5112 kthread_worker_fn+0x507/0xb60 kernel/kthread.c:1010 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4e/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK>