INFO: task syz-executor.1:6058 blocked for more than 143 seconds. Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:19920 pid:6058 tgid:6056 ppid:5632 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 io_schedule+0x8d/0x110 kernel/sched/core.c:9043 folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1283 __filemap_get_folio+0xa3/0xbb0 mm/filemap.c:1874 filemap_lock_folio include/linux/pagemap.h:673 [inline] __bch2_truncate_folio+0x14e/0x1d80 fs/bcachefs/fs-io.c:254 bch2_truncate_folio fs/bcachefs/fs-io.c:356 [inline] bchfs_truncate+0x644/0xc80 fs/bcachefs/fs-io.c:446 notify_change+0xb9f/0xe70 fs/attr.c:497 do_truncate+0x220/0x310 fs/open.c:65 handle_truncate fs/namei.c:3308 [inline] do_open fs/namei.c:3654 [inline] path_openat+0x29fe/0x3240 fs/namei.c:3807 do_filp_open+0x235/0x490 fs/namei.c:3834 do_sys_openat2+0x13e/0x1d0 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_open fs/open.c:1429 [inline] __se_sys_open fs/open.c:1425 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1425 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f460387cee9 RSP: 002b:00007f46045290c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f46039abf80 RCX: 00007f460387cee9 RDX: 0000000000000000 RSI: 000000000014927e RDI: 0000000020000180 RBP: 00007f46038c949e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f46039abf80 R15: 00007ffcc1665b88 INFO: task syz-executor.1:6133 blocked for more than 143 seconds. Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:20632 pid:6133 tgid:6056 ppid:5632 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 __bch2_two_state_lock+0x171/0x200 fs/bcachefs/two_state_shared_lock.c:7 bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:56 [inline] bch2_readahead+0xcf5/0x1870 fs/bcachefs/fs-io-buffered.c:277 read_pages+0x180/0x840 mm/readahead.c:160 page_cache_ra_order+0xa62/0xcc0 mm/readahead.c:531 page_cache_sync_readahead include/linux/pagemap.h:1302 [inline] filemap_get_pages+0x49d/0x2090 mm/filemap.c:2505 filemap_splice_read+0x654/0xeb0 mm/filemap.c:2870 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x4b9/0xc90 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x28c/0x3e0 fs/splice.c:1233 do_sendfile+0x56d/0xdc0 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1348 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f460387cee9 RSP: 002b:00007f46045080c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f46039ac050 RCX: 00007f460387cee9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000004 RBP: 00007f46038c949e R08: 0000000000000000 R09: 0000000000000000 R10: 000000000001dd00 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f46039ac050 R15: 00007ffcc1665b88 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e333d20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e333d20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8e333d20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 3 locks held by kworker/u8:4/61: 2 locks held by getty/4845: #0: ffff88802abd40a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 3 locks held by syz-fuzzer/5097: 2 locks held by syz-executor.1/6058: #0: ffff88801cfea420 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409 #1: ffff88805fde08b8 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline] #1: ffff88805fde08b8 (&sb->s_type->i_mutex_key#21){+.+.}-{3:3}, at: do_truncate+0x20c/0x310 fs/open.c:63 2 locks held by syz-executor.1/6133: #0: ffff88805fde0a58 (mapping.invalidate_lock#7){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:846 [inline] #0: ffff88805fde0a58 (mapping.invalidate_lock#7){.+.+}-{3:3}, at: page_cache_ra_order+0x3bc/0xcc0 mm/readahead.c:510 #1: ffff88805d104250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline] #1: ffff88805d104250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline] #1: ffff88805d104250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x911/0xd30 fs/bcachefs/btree_iter.c:3069 3 locks held by udevd/6275: 1 lock held by syz-executor.1/6293: 1 lock held by syz-executor.3/7714: 1 lock held by syz-executor.2/7736: 6 locks held by syz-executor.2/7737: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 30 Comm: khungtaskd Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:379 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 61 Comm: kworker/u8:4 Not tainted 6.9.0-syzkaller-08995-g0450d2083be6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: bat_events batadv_tt_purge RIP: 0010:batadv_tt_global_purge net/batman-adv/translation-table.c:2234 [inline] RIP: 0010:batadv_tt_purge+0x4eb/0xa40 net/batman-adv/translation-table.c:3520 Code: fc ff ff e8 37 f6 3e f6 eb 05 e8 30 f6 3e f6 48 8b 7c 24 20 e8 26 b0 3c 00 48 8b 14 24 48 ff c2 48 8b 44 24 18 42 0f b6 04 28 <84> c0 4c 8b 7c 24 48 4c 8b 74 24 40 48 8b 6c 24 38 75 18 41 8b 06 RSP: 0018:ffffc900015c7b38 EFLAGS: 00000206 RAX: 0000000000000000 RBX: ffff88806289c398 RCX: ffffffff8172ea4a RDX: 0000000000000074 RSI: ffffffff8bcab840 RDI: ffffffff8c1fa220 RBP: ffff888061799d88 R08: ffffffff92fa066f R09: 1ffffffff25f40cd R10: dffffc0000000000 R11: fffffbfff25f40ce R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888061799d90 R15: ffff888061799d80 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020028000 CR3: 000000006dc20000 CR4: 0000000000350ef0 Call Trace: process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2e/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244