INFO: task syz.6.3680:24500 blocked for more than 143 seconds.
Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.3680 state:D stack:22936 pid:24500 tgid:24484 ppid:22022 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5371 [inline]
__schedule+0x189f/0x4c80 kernel/sched/core.c:6758
__schedule_loop kernel/sched/core.c:6835 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6850
io_schedule+0x8d/0x110 kernel/sched/core.c:7683
folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1309
folio_lock include/linux/pagemap.h:1172 [inline]
truncate_inode_pages_range+0xc1f/0x10e0 mm/truncate.c:380
bchfs_fallocate+0x2d1/0x730 fs/bcachefs/fs-io.c:756
bch2_fallocate_dispatch+0x3ac/0x540 fs/bcachefs/fs-io.c:809
vfs_fallocate+0x623/0x7a0 fs/open.c:338
do_vfs_ioctl+0x258c/0x2e40 fs/ioctl.c:885
__do_sys_ioctl fs/ioctl.c:904 [inline]
__se_sys_ioctl+0x80/0x170 fs/ioctl.c:892
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:0x7f5f7b185d29
RSP: 002b:00007f5f7bfa3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5f7b376160 RCX: 00007f5f7b185d29
RDX: 0000000020000180 RSI: 0000000040305839 RDI: 0000000000000007
RBP: 00007f5f7b201b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5f7b376160 R15: 00007fff373a9638
INFO: task syz.6.3680:24501 blocked for more than 144 seconds.
Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.3680 state:D stack:24656 pid:24501 tgid:24484 ppid:22022 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5371 [inline]
__schedule+0x189f/0x4c80 kernel/sched/core.c:6758
__schedule_loop kernel/sched/core.c:6835 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6850
__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+0x7ee/0xba0 mm/readahead.c:504
page_cache_sync_readahead include/linux/pagemap.h:1413 [inline]
filemap_get_pages+0x605/0x2080 mm/filemap.c:2528
filemap_splice_read+0x68e/0xef0 mm/filemap.c:2904
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
vfs_copy_file_range+0xd1f/0x14f0 fs/read_write.c:1620
__do_sys_copy_file_range fs/read_write.c:1670 [inline]
__se_sys_copy_file_range+0x3fa/0x600 fs/read_write.c:1637
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:0x7f5f7b185d29
RSP: 002b:00007f5f7bf82038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146
RAX: ffffffffffffffda RBX: 00007f5f7b376240 RCX: 00007f5f7b185d29
RDX: 0000000000000004 RSI: 0000000020000240 RDI: 0000000000000006
RBP: 00007f5f7b201b08 R08: 0000000000000080 R09: 0000000000000000
R10: 0000000020000280 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f5f7b376240 R15: 00007fff373a9638
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
3 locks held by kworker/u8:4/61:
2 locks held by getty/5593:
#0: ffff888034f7a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
2 locks held by syz.6.3680/24500:
#0: ffff888061e36420 (sb_writers#33){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3012 [inline]
#0: ffff888061e36420 (sb_writers#33){.+.+}-{0:0}, at: vfs_fallocate+0x59d/0x7a0 fs/open.c:337
#1: ffff88804d7d9fa8 (&sb->s_type->i_mutex_key#42){++++}-{4:4}, at: inode_lock include/linux/fs.h:863 [inline]
#1: ffff88804d7d9fa8 (&sb->s_type->i_mutex_key#42){++++}-{4:4}, at: bch2_fallocate_dispatch+0x1e2/0x540 fs/bcachefs/fs-io.c:800
1 lock held by syz.6.3680/24501:
#0: ffff88804d7da148 (mapping.invalidate_lock#16){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:918 [inline]
#0: ffff88804d7da148 (mapping.invalidate_lock#16){.+.+}-{4:4}, at: page_cache_ra_order+0x325/0xba0 mm/readahead.c:480
5 locks held by syz.2.4153/26464:
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:234 [inline]
watchdog+0xff6/0x1040 kernel/hung_task.c:397
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: 26464 Comm: syz.2.4153 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:memcg_rstat_updated+0x122/0x2f0 mm/memcontrol.c:594
Code: 00 84 c0 0f 85 1b 01 00 00 44 8b 23 41 01 ec 41 0f b6 44 15 00 84 c0 0f 85 2e 01 00 00 44 89 23 41 83 fc 40 0f 82 ce 00 00 00 <4c> 8d 7b 10 4d 89 fe 49 c1 ee 03 41 80 3c 16 00 74 08 4c 89 ff e8
RSP: 0018:ffffc9000c136a58 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffffe8ffffc655c0 RCX: dffffc0000000000
RDX: dffffc0000000000 RSI: ffffffff8c5fece0 RDI: ffffffff8c5feca0
RBP: 0000000000000001 R08: ffffffff81b7b454 R09: 1ffffffff203563e
R10: dffffc0000000000 R11: fffffbfff203563f R12: 0000000000000040
R13: 1ffffd1ffff8cab8 R14: 0000000000000001 R15: 1ffff92001826d58
FS: 00007fe69ad976c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe69a147ab8 CR3: 00000000715b4000 CR4: 00000000003526f0
Call Trace:
__count_memcg_events+0x1a7/0x3d0 mm/memcontrol.c:857
count_memcg_events include/linux/memcontrol.h:970 [inline]
count_memcg_events_mm include/linux/memcontrol.h:993 [inline]
count_memcg_event_mm+0x231/0x420 include/linux/memcontrol.h:1000
mm_account_fault mm/memory.c:6067 [inline]
handle_mm_fault+0x1851/0x1d50 mm/memory.c:6228
faultin_page mm/gup.c:1196 [inline]
__get_user_pages+0x1a92/0x4140 mm/gup.c:1491
__get_user_pages_locked mm/gup.c:1757 [inline]
get_dump_page+0x155/0x2f0 mm/gup.c:2275
dump_user_range+0x14d/0x970 fs/coredump.c:943
elf_core_dump+0x3e9f/0x4790 fs/binfmt_elf.c:2129
do_coredump+0x242a/0x2ee0 fs/coredump.c:758
get_signal+0x140b/0x1750 kernel/signal.c:3002
arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
irqentry_exit_to_user_mode+0x7e/0x250 kernel/entry/common.c:231
exc_page_fault+0x590/0x8b0 arch/x86/mm/fault.c:1542
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0033:0x7fe699f85d31
Code: 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 48 3d 01 f0 ff ff 73 01 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f
RSP: 002b:00000000fffffe10 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fe69a175fa0 RCX: 00007fe699f85d29
RDX: 0000000000000000 RSI: 00000000fffffe10 RDI: 0000000000000000
RBP: 00007fe69a001b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe69a175fa0 R15: 00007ffd1abce228