INFO: task syz.8.238:8096 blocked for more than 143 seconds. Not tainted 6.16.0-rc6-syzkaller-00253-g4871b7cb27f4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.238 state:D stack:17608 pid:8096 tgid:8095 ppid:6679 task_flags:0x440140 flags:0x00004006 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+0x17a/0x580 mm/readahead.c:160 page_cache_ra_order+0xa24/0xc70 mm/readahead.c:515 filemap_get_pages+0x43c/0x1ea0 mm/filemap.c:2602 filemap_splice_read+0x4fc/0xbc0 mm/filemap.c:2990 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 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:0x7fce0698e9a9 RSP: 002b:00007fce0789c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 RAX: ffffffffffffffda RBX: 00007fce06bb5fa0 RCX: 00007fce0698e9a9 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007fce06a10d69 R08: 0000000000400000 R09: 0000000000000000 R10: 00002000000000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fce06bb5fa0 R15: 00007ffc335e5e88 INFO: task syz.8.238:8107 blocked for more than 144 seconds. Not tainted 6.16.0-rc6-syzkaller-00253-g4871b7cb27f4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.8.238 state:D stack:26664 pid:8107 tgid:8095 ppid:6679 task_flags:0x400040 flags:0x00004006 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] invalidate_inode_pages2_range+0x557/0xa80 mm/truncate.c:690 bch2_write_invalidate_inode_pages_range+0xc5/0x110 fs/bcachefs/fs-io-pagecache.c:68 bch2_direct_write+0x2a62/0x2ce0 fs/bcachefs/fs-io-direct.c:662 bch2_write_iter+0x18f/0x2b90 fs/bcachefs/fs-io-buffered.c:1064 do_iter_readv_writev+0x56e/0x7f0 fs/read_write.c:-1 vfs_writev+0x31a/0x960 fs/read_write.c:1057 do_pwritev fs/read_write.c:1153 [inline] __do_sys_pwritev2 fs/read_write.c:1211 [inline] __se_sys_pwritev2+0x179/0x290 fs/read_write.c:1202 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:0x7fce0698e9a9 RSP: 002b:00007fce0787b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fce06bb6080 RCX: 00007fce0698e9a9 RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000005 RBP: 00007fce06a10d69 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000007000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fce06bb6080 R15: 00007ffc335e5e88 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 1 lock held by udevd/5205: 2 locks held by getty/5602: #0: ffff8880348080a0 (&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.8.238/8096: #0: ffff888055d19218 (mapping.invalidate_lock#10){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline] #0: ffff888055d19218 (mapping.invalidate_lock#10){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491 1 lock held by syz.8.238/8107: #0: ffff888054fa4428 (sb_writers#18){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline] #0: ffff888054fa4428 (sb_writers#18){.+.+}-{0:0}, at: vfs_writev+0x288/0x960 fs/read_write.c:1055 1 lock held by syz-executor/9294: #0: ffffffff8e144bf8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline] #0: ffffffff8e144bf8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730 kernel/rcu/tree_exp.h:998 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc6-syzkaller-00253-g4871b7cb27f4 #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: 9654 Comm: udevd Not tainted 6.16.0-rc6-syzkaller-00253-g4871b7cb27f4 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:rcu_is_watching+0x0/0xb0 kernel/rcu/tree.c:741 Code: c7 c7 20 40 14 8e e8 3f 87 47 03 eb cc 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 41 57 41 56 53 65 ff 05 d0 44 f5 10 e8 8b 56 bf 09 89 RSP: 0018:ffffc90002ee70d0 EFLAGS: 00000202 RAX: 0000000000000001 RBX: ffffffff8233ec0a RCX: ffff88802770bc00 RDX: 0000000000000000 RSI: ffffffff8db6f3d3 RDI: ffffffff8be1b8c0 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffffff8172aae5 R10: ffffc90002ee71f8 R11: ffffffff81acff40 R12: 1ffff920005dce35 R13: ffffc90002ee71e0 R14: ffffc90002ee71a8 R15: ffffffff8172aae5 FS: 00007fbdd4dbb880(0000) GS:ffff888125d59000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559cae6c2950 CR3: 0000000062e7e000 CR4: 00000000003526f0 Call Trace: rcu_read_lock include/linux/rcupdate.h:842 [inline] class_rcu_constructor include/linux/rcupdate.h:1155 [inline] unwind_next_frame+0xd4/0x2390 arch/x86/kernel/unwind_orc.c:479 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x9c/0xe0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x62/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x18e/0x440 mm/slub.c:4842 tomoyo_realpath_from_path+0x598/0x5d0 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x1c1/0x3b0 security/tomoyo/file.c:771 security_file_open+0xb1/0x270 security/security.c:3114 do_dentry_open+0x35e/0x1970 fs/open.c:941 vfs_open+0x3b/0x340 fs/open.c:1094 do_open fs/namei.c:3896 [inline] path_openat+0x2ee5/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_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1463 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:0x7fbdd46a7407 Code: 48 89 fa 4c 89 df e8 38 aa 00 00 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 1a 5b c3 0f 1f 84 00 00 00 00 00 48 8b 44 24 10 0f 05 <5b> c3 0f 1f 80 00 00 00 00 83 e2 39 83 fa 08 75 de e8 23 ff ff ff RSP: 002b:00007ffffa921660 EFLAGS: 00000202 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fbdd4dbb880 RCX: 00007fbdd46a7407 RDX: 0000000000080000 RSI: 0000557949b27440 RDI: ffffffffffffff9c RBP: 0000557949b27440 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000009