INFO: task syz.7.255:8327 blocked for more than 143 seconds. Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.7.255 state:D stack:13968 pid:8327 tgid:8326 ppid:7452 task_flags:0x400140 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5378 [inline] __schedule+0x18bc/0x4c40 kernel/sched/core.c:6765 __schedule_loop kernel/sched/core.c:6842 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6857 io_schedule+0x8d/0x110 kernel/sched/core.c:7690 folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1318 folio_lock include/linux/pagemap.h:1163 [inline] truncate_inode_pages_range+0xc1f/0x10e0 mm/truncate.c:380 truncate_inode_pages mm/truncate.c:407 [inline] truncate_pagecache mm/truncate.c:718 [inline] truncate_setsize+0xcf/0xf0 mm/truncate.c:743 bchfs_truncate+0x6e0/0xc70 fs/bcachefs/fs-io.c:470 notify_change+0xbca/0xe90 fs/attr.c:552 do_truncate+0x220/0x310 fs/open.c:65 vfs_truncate+0x492/0x530 fs/open.c:115 do_sys_truncate+0xdb/0x190 fs/open.c:138 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd86898cde9 RSP: 002b:00007fd869728038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007fd868ba5fa0 RCX: 00007fd86898cde9 RDX: 0000000000000000 RSI: 000000000000000a RDI: 0000400000000080 RBP: 00007fd868a0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd868ba5fa0 R15: 00007ffd7d081cc8 INFO: task syz.7.255:8381 blocked for more than 143 seconds. Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.7.255 state:D stack:15312 pid:8381 tgid:8326 ppid:7452 task_flags:0x440040 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5378 [inline] __schedule+0x18bc/0x4c40 kernel/sched/core.c:6765 __schedule_loop kernel/sched/core.c:6842 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6857 __bch2_two_state_lock+0x229/0x2c0 fs/bcachefs/two_state_shared_lock.c:7 bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:55 [inline] bch2_readahead+0x9e1/0x1240 fs/bcachefs/fs-io-buffered.c:272 read_pages+0x179/0x570 mm/readahead.c:161 page_cache_ra_order+0xa36/0xca0 mm/readahead.c:516 filemap_readahead mm/filemap.c:2549 [inline] filemap_get_pages+0x9e4/0x1fb0 mm/filemap.c:2594 filemap_splice_read+0x68e/0xef0 mm/filemap.c:2971 do_splice_read fs/splice.c:985 [inline] splice_direct_to_actor+0x4af/0xc80 fs/splice.c:1089 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x564/0x8a0 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1410 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd86898cde9 RSP: 002b:00007fd869707038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fd868ba6080 RCX: 00007fd86898cde9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007fd868a0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000e3aa6ea R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fd868ba6080 R15: 00007ffd7d081cc8 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8eb38f60 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8eb38f60 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8eb38f60 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6746 2 locks held by getty/5575: #0: ffff8880315a70a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000331b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x616/0x1770 drivers/tty/n_tty.c:2211 3 locks held by kworker/u9:4/5828: #0: ffff88805a1a8948 ((wq_completion)hci6){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3211 [inline] #0: ffff88805a1a8948 ((wq_completion)hci6){+.+.}-{0:0}, at: process_scheduled_works+0x98b/0x18e0 kernel/workqueue.c:3317 #1: ffffc9000429fc60 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3212 [inline] #1: ffffc9000429fc60 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9c6/0x18e0 kernel/workqueue.c:3317 #2: ffff888066ca0d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1ec/0x400 net/bluetooth/hci_sync.c:331 2 locks held by syz.7.255/8327: #0: ffff888033e68420 (sb_writers#23){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:547 #1: ffff8880550bd4d0 (&sb->s_type->i_mutex_key#26){++++}-{4:4}, at: inode_lock include/linux/fs.h:877 [inline] #1: ffff8880550bd4d0 (&sb->s_type->i_mutex_key#26){++++}-{4:4}, at: do_truncate+0x20c/0x310 fs/open.c:63 1 lock held by syz.7.255/8381: #0: ffff8880550bd670 (mapping.invalidate_lock#9){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:932 [inline] #0: ffff8880550bd670 (mapping.invalidate_lock#9){.+.+}-{4:4}, at: page_cache_ra_order+0x45d/0xca0 mm/readahead.c:492 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 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:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:236 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:399 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 2130 Comm: kworker/u8:7 Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Workqueue: events_unbound nsim_dev_trap_report_work RIP: 0010:enqueue_task_fair+0x0/0xd40 kernel/sched/fair.c:6916 Code: ff ff 48 8b 7c 24 10 e8 9e e6 92 00 e9 15 ff ff ff e8 54 e0 6c 0a 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 41 57 41 56 41 55 41 54 53 48 83 ec 38 41 89 d4 48 RSP: 0018:ffffc90000007c48 EFLAGS: 00000046 RAX: 1ffffffff1ca5387 RBX: ffffffff8e529c38 RCX: ffffc90000007d60 RDX: 0000000000000409 RSI: ffff888027825a00 RDI: ffff8880b863e7c0 RBP: dffffc0000000000 R08: ffffffff81615721 R09: fffff52000000f84 R10: dffffc0000000000 R11: ffffffff81938ce0 R12: ffff888027825a00 R13: 0000000000000409 R14: 1ffff11004f04b4d R15: ffff8880b863e7c0 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556b42c04ed0 CR3: 000000000e938000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: enqueue_task+0x73/0x3d0 kernel/sched/core.c:2070 activate_task kernel/sched/core.c:2117 [inline] ttwu_do_activate+0x1d1/0x760 kernel/sched/core.c:3729 ttwu_queue kernel/sched/core.c:4002 [inline] try_to_wake_up+0x89b/0x1470 kernel/sched/core.c:4330 autoremove_wake_function+0x16/0x110 kernel/sched/wait.c:384 __wake_up_common kernel/sched/wait.c:89 [inline] __wake_up_common_lock+0x130/0x1e0 kernel/sched/wait.c:106 irq_work_single+0xe2/0x240 kernel/irq_work.c:221 irq_work_run_list kernel/irq_work.c:252 [inline] irq_work_run+0x18b/0x350 kernel/irq_work.c:261 __sysvec_irq_work+0xb8/0x430 arch/x86/kernel/irq_work.c:22 instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline] sysvec_irq_work+0x9e/0xc0 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:738 RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:36 [inline] RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:149 [inline] RIP: 0010:wrmsr arch/x86/include/asm/msr.h:256 [inline] RIP: 0010:native_apic_msr_write+0x39/0x50 arch/x86/include/asm/apic.h:212 Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 cc cc cc cc f3 0f 1e fa 89 f6 31 d2 e9 53 21 bb 03 0f 1f RSP: 0018:ffffc90004f975c8 EFLAGS: 00000246 RAX: 00000000000000f6 RBX: 0000000000000200 RCX: 000000000000083f RDX: 0000000000000000 RSI: 00000000000000f6 RDI: 000000000000083f RBP: 0000000000000000 R08: ffffffff815fda8e R09: 1ffff920009f2ea4 R10: dffffc0000000000 R11: fffff520009f2ea5 R12: ffffffff8ec50a68 R13: 0000000000000000 R14: 2c1008001f8bfbff R15: 0000000000000020 __apic_send_IPI_self arch/x86/include/asm/apic.h:455 [inline] arch_irq_work_raise+0x6f/0x80 arch/x86/kernel/irq_work.c:31 irq_work_queue+0xa7/0x150 kernel/irq_work.c:124 __kfence_alloc+0x2b0/0x400 mm/kfence/core.c:1114 kfence_alloc include/linux/kfence.h:129 [inline] slab_alloc_node mm/slub.c:4148 [inline] kmem_cache_alloc_node_noprof+0x2c8/0x380 mm/slub.c:4216 __alloc_skb+0x1c3/0x440 net/core/skbuff.c:668 alloc_skb include/linux/skbuff.h:1331 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:748 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:805 [inline] nsim_dev_trap_report_work+0x261/0xb50 drivers/net/netdevsim/dev.c:851 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xabe/0x18e0 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244