INFO: task syz.8.152:7457 blocked for more than 143 seconds. Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.152 state:D stack:17352 pid:7457 tgid:7455 ppid:6779 task_flags:0x440140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 __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+0x177/0x580 mm/readahead.c:160 page_cache_ra_order+0xa24/0xc70 mm/readahead.c:515 filemap_readahead mm/filemap.c:2571 [inline] filemap_get_pages+0xb22/0x1ea0 mm/filemap.c:2616 filemap_splice_read+0x4fc/0xbc0 mm/filemap.c:2990 do_splice_read fs/splice.c:979 [inline] splice_direct_to_actor+0x4a6/0xcc0 fs/splice.c:1083 do_splice_direct_actor fs/splice.c:1201 [inline] do_splice_direct+0x181/0x270 fs/splice.c:1227 vfs_copy_file_range+0xabc/0x1310 fs/read_write.c:1627 __do_sys_copy_file_range fs/read_write.c:1677 [inline] __se_sys_copy_file_range+0x2fb/0x470 fs/read_write.c:1644 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fda0938e929 RSP: 002b:00007fda0a1b4038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fda095b5fa0 RCX: 00007fda0938e929 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007fda09410b39 R08: fffffbffa003e458 R09: 0700000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fda095b5fa0 R15: 00007fff98ac39b8 INFO: task syz.8.152:7524 blocked for more than 144 seconds. Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.152 state:D stack:26600 pid:7524 tgid:7455 ppid:6779 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 io_schedule+0x81/0xe0 kernel/sched/core.c:7724 folio_wait_bit_common+0x6b0/0xb90 mm/filemap.c:1317 folio_lock include/linux/pagemap.h:1114 [inline] truncate_inode_pages_range+0xa77/0xda0 mm/truncate.c:433 truncate_inode_pages mm/truncate.c:460 [inline] truncate_pagecache mm/truncate.c:769 [inline] truncate_setsize+0xcf/0xf0 mm/truncate.c:794 bchfs_truncate+0x622/0xc20 fs/bcachefs/fs-io.c:488 notify_change+0xb36/0xe40 fs/attr.c:552 do_truncate+0x1a4/0x220 fs/open.c:68 handle_truncate fs/namei.c:3517 [inline] do_open fs/namei.c:3900 [inline] path_openat+0x306c/0x3830 fs/namei.c:4055 do_filp_open+0x1fa/0x410 fs/namei.c:4082 do_sys_openat2+0x121/0x1c0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_open fs/open.c:1460 [inline] __se_sys_open fs/open.c:1456 [inline] __x64_sys_open+0x11e/0x150 fs/open.c:1456 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fda0938e929 RSP: 002b:00007fda0a193038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fda095b6080 RCX: 00007fda0938e929 RDX: 0000000000000000 RSI: 000000000014d27e RDI: 0000200000000180 RBP: 00007fda09410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fda095b6080 R15: 00007fff98ac39b8 INFO: task syz.8.152:7535 blocked for more than 145 seconds. Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.152 state:D stack:27768 pid:7535 tgid:7455 ppid:6779 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6936 rwsem_down_write_slowpath+0xbec/0x1030 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1ab/0x1f0 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:869 [inline] process_measurement+0x3d8/0x1a40 security/integrity/ima/ima_main.c:260 ima_file_check+0xd7/0x120 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbb/0x290 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x2f26/0x3830 fs/namei.c:4055 do_filp_open+0x1fa/0x410 fs/namei.c:4082 do_sys_openat2+0x121/0x1c0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_open fs/open.c:1460 [inline] __se_sys_open fs/open.c:1456 [inline] __x64_sys_open+0x11e/0x150 fs/open.c:1456 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fda0938e929 RSP: 002b:00007fda0a172038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fda095b6160 RCX: 00007fda0938e929 RDX: 0000000000000000 RSI: 000000000014927e RDI: 0000200000000180 RBP: 00007fda09410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fda095b6160 R15: 00007fff98ac39b8 INFO: task syz.8.152:7536 blocked for more than 146 seconds. Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.152 state:D stack:27240 pid:7536 tgid:7455 ppid:6779 task_flags:0x400140 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5397 [inline] __schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786 __schedule_loop kernel/sched/core.c:6864 [inline] schedule+0x165/0x360 kernel/sched/core.c:6879 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6936 rwsem_down_write_slowpath+0xbec/0x1030 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1ab/0x1f0 kernel/locking/rwsem.c:1578 inode_lock include/linux/fs.h:869 [inline] process_measurement+0x3d8/0x1a40 security/integrity/ima/ima_main.c:260 ima_file_check+0xd7/0x120 security/integrity/ima/ima_main.c:613 security_file_post_open+0xbb/0x290 security/security.c:3130 do_open fs/namei.c:3898 [inline] path_openat+0x2f26/0x3830 fs/namei.c:4055 do_filp_open+0x1fa/0x410 fs/namei.c:4082 do_sys_openat2+0x121/0x1c0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_open fs/open.c:1460 [inline] __se_sys_open fs/open.c:1456 [inline] __x64_sys_open+0x11e/0x150 fs/open.c:1456 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fda0938e929 RSP: 002b:00007fda0a151038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fda095b6240 RCX: 00007fda0938e929 RDX: 389b0d52417bb211 RSI: 0000000000064842 RDI: 00002000000005c0 RBP: 00007fda09410b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fda095b6240 R15: 00007fff98ac39b8 Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770 2 locks held by kworker/u8:7/1108: #0: ffff8881404d9148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff8881404d9148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0 kernel/workqueue.c:3321 #1: ffffc90003d3fbc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90003d3fbc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0 kernel/workqueue.c:3321 3 locks held by kworker/u8:8/1166: 1 lock held by udevd/5206: 2 locks held by getty/5601: #0: ffff88814cc2f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000333b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222 1 lock held by syz-executor/6372: #0: ffff8880436ee0e0 (&type->s_umount_key#58){+.+.}-{4:4}, at: __super_lock fs/super.c:57 [inline] #0: ffff8880436ee0e0 (&type->s_umount_key#58){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:72 [inline] #0: ffff8880436ee0e0 (&type->s_umount_key#58){+.+.}-{4:4}, at: deactivate_super+0xa9/0xe0 fs/super.c:506 1 lock held by syz-executor/6945: 1 lock held by syz.8.152/7457: #0: ffff8880782eced8 (mapping.invalidate_lock#7){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff8880782eced8 (mapping.invalidate_lock#7){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 2 locks held by syz.8.152/7524: #0: ffff888050d24428 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:557 #1: ffff8880782ecd38 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: inode_lock_killable include/linux/fs.h:874 [inline] #1: ffff8880782ecd38 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: do_truncate+0x171/0x220 fs/open.c:63 2 locks held by syz.8.152/7535: #0: ffff888050d24428 (sb_writers#19){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:557 #1: ffff8880782ecd38 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff8880782ecd38 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: process_measurement+0x3d8/0x1a40 security/integrity/ima/ima_main.c:260 1 lock held by syz.8.152/7536: #0: ffff8880782ecd38 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #0: ffff8880782ecd38 (&sb->s_type->i_mutex_key#25){++++}-{4:4}, at: process_measurement+0x3d8/0x1a40 security/integrity/ima/ima_main.c:260 2 locks held by bch-rebalance/l/7502: 4 locks held by udevd/7598: 2 locks held by rm/9938: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: 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:307 [inline] watchdog+0xfee/0x1030 kernel/hung_task.c:470 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 7502 Comm: bch-rebalance/l Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:clear_page_erms+0xb/0x20 arch/x86/lib/clear_page_64.S:52 Code: 48 8d 7f 40 75 d9 90 e9 53 12 04 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa b9 00 10 00 00 31 c0 aa c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc900033c68d0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000e40 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880809341c0 RBP: 1ffffffff1b74487 R08: ffffffff8fa0cbf7 R09: 0000000000000000 R10: ffffed1010126800 R11: fffffbfff1f4197f R12: fffa800080934000 R13: fffa800000000000 R14: 1ffffffff1b74485 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff888125d4f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1fdd1d2850 CR3: 0000000077f40000 CR4: 00000000003526f0 Call Trace: clear_page arch/x86/include/asm/page_64.h:54 [inline] clear_highpage_kasan_tagged include/linux/highmem.h:248 [inline] kernel_init_pages mm/page_alloc.c:1084 [inline] post_alloc_hook+0x1bd/0x2a0 mm/page_alloc.c:1702 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x21d5/0x22b0 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:4959 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2419 alloc_frozen_pages_noprof mm/mempolicy.c:2490 [inline] alloc_pages_noprof+0xa9/0x190 mm/mempolicy.c:2510 bch2_bio_alloc_pages+0x36/0xc0 fs/bcachefs/util.c:636 __bch2_data_update_bios_init+0xef/0x460 fs/bcachefs/data_update.c:743 bch2_data_update_init+0x36b3/0x4900 fs/bcachefs/data_update.c:991 bch2_move_extent+0x690/0x1bb0 fs/bcachefs/move.c:376 do_rebalance_extent+0x8f0/0x1fe0 fs/bcachefs/rebalance.c:441 do_rebalance fs/bcachefs/rebalance.c:578 [inline] bch2_rebalance_thread+0x126a/0x1f80 fs/bcachefs/rebalance.c:626 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245