program: r0 = socket$inet_mptcp(0x2, 0x1, 0x106) r1 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cgroup.controllers\x00', 0x275a, 0x0) write$binfmt_script(r1, &(0x7f0000000040), 0xfea7) mmap(&(0x7f0000000000/0x3000)=nil, 0x3000, 0x1, 0x12, r1, 0x0) mkdirat(r1, &(0x7f0000000000)='./file0\x00', 0x11) sendmmsg(r0, &(0x7f0000007900)=[{{&(0x7f00000000c0)=@in={0x2, 0x4e21, @loopback}, 0x80, 0x0}}], 0x1, 0x2c000011) [ 72.719725][ T5336] loop0: detected capacity change from 32768 to 11 [ 72.729357][ T37] kworker/0:1H: attempt to access beyond end of device [ 72.729357][ T37] loop0: rw=4097, sector=7560, nr_sectors = 8 limit=11 [ 72.734686][ T37] bcachefs (loop0): btree write error: I/O [ 72.738317][ T37] bcachefs (loop0): btree_node_write_work(): fatal error writing btree node: btree_node_write_all_failed [ 72.743449][ T37] bcachefs (loop0): fatal error - emergency read only [ 72.746531][ T5321] kworker/u5:2: attempt to access beyond end of device [ 72.746531][ T5321] loop0: rw=6145, sector=2648, nr_sectors = 8 limit=11 [ 72.751883][ T5321] bcachefs (loop0): error writing journal entry 51: I/O [ 72.754584][ T5321] bcachefs (loop0): unable to write journal to sufficient devices [ 72.765142][ T8] bcachefs (loop0): going read-only [ 72.785284][ T5335] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 72.788142][ T5335] CPU: 0 UID: 0 PID: 5335 Comm: syz.0.0 Not tainted 6.12.0-syzkaller-09435-g2c22dc1ee3a1 #0 [ 72.791417][ T5335] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 72.795238][ T5335] Call Trace: [ 72.796481][ T5335] [ 72.797667][ T5335] dump_stack_lvl+0x241/0x360 [ 72.799312][ T5335] ? __pfx_dump_stack_lvl+0x10/0x10 [ 72.801165][ T5335] ? __pfx__printk+0x10/0x10 [ 72.802891][ T5335] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 72.805116][ T5335] ? vscnprintf+0x5d/0x90 [ 72.806739][ T5335] panic+0x349/0x880 [ 72.808256][ T5335] ? check_panic_on_warn+0x21/0xb0 [ 72.810111][ T5335] ? __pfx_panic+0x10/0x10 [ 72.811688][ T5335] ? _raw_spin_unlock_irqrestore+0x130/0x140 [ 72.813865][ T5335] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 72.816238][ T5335] check_panic_on_warn+0x86/0xb0 [ 72.818097][ T5335] ? memscan+0x62/0x80 [ 72.819647][ T5335] end_report+0x77/0x160 [ 72.821263][ T5335] kasan_report+0x154/0x180 [ 72.823025][ T5335] ? memscan+0x62/0x80 [ 72.824636][ T5335] memscan+0x62/0x80 [ 72.826117][ T5335] printbuf_do_indent+0x10d/0x9d0 [ 72.828067][ T5335] bch2_prt_printf+0x559/0x6d0 [ 72.829949][ T5335] ? __pfx_lock_release+0x10/0x10 [ 72.831851][ T5335] ? do_raw_spin_lock+0x14f/0x370 [ 72.834113][ T5335] ? bch2_printbuf_tabstop_push+0x51/0x200 [ 72.836495][ T5335] ? __pfx_bch2_prt_printf+0x10/0x10 [ 72.838436][ T5335] ? do_raw_spin_unlock+0x58/0x8b0 [ 72.840362][ T5335] ? bch2_printbuf_tabstop_push+0xc9/0x200 [ 72.842552][ T5335] trace_bucket_alloc2+0x119/0xba0 [ 72.844499][ T5335] ? __pfx_trace_bucket_alloc2+0x10/0x10 [ 72.846554][ T5335] ? rcu_is_watching+0x15/0xb0 [ 72.848294][ T5335] ? bch2_printbuf_exit+0x6d/0xa0 [ 72.850111][ T5335] ? __asan_memset+0x23/0x50 [ 72.851845][ T5335] bch2_bucket_alloc_trans+0x3a43/0x3a50 [ 72.854009][ T5335] ? bch2_bucket_alloc_trans+0xcd8/0x3a50 [ 72.856216][ T5335] ? __pfx_bch2_bucket_alloc_trans+0x10/0x10 [ 72.858524][ T5335] ? __asan_memset+0x23/0x50 [ 72.860308][ T5335] ? bch2_btree_path_verify_level+0x369/0x1970 [ 72.862612][ T5335] ? bch2_bucket_alloc_trans+0xcd8/0x3a50 [ 72.864687][ T5335] ? bch2_btree_iter_verify_ret+0x174/0x16e0 [ 72.866936][ T5335] ? btree_trans_peek_key_cache+0xb5f/0x1260 [ 72.869166][ T5335] ? mark_lock+0x9a/0x360 [ 72.870860][ T5335] ? __lock_acquire+0x1397/0x2100 [ 72.872749][ T5335] ? bch2_bucket_alloc_trans+0xcd8/0x3a50 [ 72.874690][ T5335] ? bch2_bucket_alloc_set_trans+0x26f/0xd30 [ 72.876699][ T5335] bch2_bucket_alloc_set_trans+0x517/0xd30 [ 72.878916][ T5335] ? bch2_bucket_alloc_set_trans+0x26f/0xd30 [ 72.881261][ T5335] ? number+0xb5e/0xf90 [ 72.882875][ T5335] ? __pfx_bch2_bucket_alloc_set_trans+0x10/0x10 [ 72.885106][ T5335] ? __pfx_number+0x10/0x10 [ 72.886589][ T5335] ? vsnprintf+0x948/0x1da0 [ 72.888168][ T5335] ? mark_lock+0x9a/0x360 [ 72.889738][ T5335] ? __lock_acquire+0x1397/0x2100 [ 72.891559][ T5335] ? kernel_text_address+0xa7/0xe0 [ 72.893367][ T5335] ? __kernel_text_address+0xd/0x40 [ 72.895086][ T5335] ? unwind_get_return_address+0x4d/0x90 [ 72.897002][ T5335] __open_bucket_add_buckets+0x13d0/0x1ec0 [ 72.899237][ T5335] ? __pfx_stack_trace_save+0x10/0x10 [ 72.901254][ T5335] ? __pfx___open_bucket_add_buckets+0x10/0x10 [ 72.903610][ T5335] ? mark_lock+0x9a/0x360 [ 72.905261][ T5335] ? bch2_alloc_sectors_start_trans+0xb10/0x2030 [ 72.907529][ T5335] ? __pfx_lock_release+0x10/0x10 [ 72.909495][ T5335] ? __bch2_trans_relock+0x44a/0x5f0 [ 72.911524][ T5335] open_bucket_add_buckets+0x33a/0x410 [ 72.913605][ T5335] bch2_alloc_sectors_start_trans+0xce9/0x2030 [ 72.915924][ T5335] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 72.918279][ T5335] ? __pfx_bch2_alloc_sectors_start_trans+0x10/0x10 [ 72.920798][ T5335] ? __asan_memset+0x23/0x50 [ 72.922644][ T5335] ? lockdep_init_map_type+0xa1/0x910 [ 72.924673][ T5335] ? __bch2_write+0x5d8/0x5dd0 [ 72.926513][ T5335] ? __pfx_bch2_trans_begin+0x10/0x10 [ 72.928546][ T5335] __bch2_write+0x72b/0x5dd0 [ 72.930375][ T5335] ? __pfx_validate_chain+0x10/0x10 [ 72.932412][ T5335] ? mark_lock+0x9a/0x360 [ 72.934065][ T5335] ? __pfx___bch2_write+0x10/0x10 [ 72.936019][ T5335] ? __pfx_lock_acquire+0x10/0x10 [ 72.937950][ T5335] ? filemap_get_folios_tag+0x1ce/0x890 [ 72.940106][ T5335] ? __pfx_lock_release+0x10/0x10 [ 72.942038][ T5335] ? xas_find_marked+0xd1/0x10e0 [ 72.943872][ T5335] ? filemap_get_folios_tag+0x1ce/0x890 [ 72.946063][ T5335] ? filemap_get_folios_tag+0x5eb/0x890 [ 72.948126][ T5335] ? filemap_get_folios_tag+0x1ce/0x890 [ 72.950249][ T5335] ? __pfx_filemap_get_folios_tag+0x10/0x10 [ 72.952510][ T5335] ? mlock_drain_local+0x79/0x490 [ 72.954471][ T5335] bch2_write+0x9b5/0x1760 [ 72.956130][ T5335] ? writeback_iter+0x123a/0x18d0 [ 72.958053][ T5335] ? __pfx_bch2_write+0x10/0x10 [ 72.959879][ T5335] ? __pfx_write_cache_pages+0x10/0x10 [ 72.961763][ T5335] ? blk_start_plug+0x70/0x1b0 [ 72.963383][ T5335] bch2_writepages+0x284/0x390 [ 72.965210][ T5335] ? __pfx_bch2_writepages+0x10/0x10 [ 72.967271][ T5335] ? __pfx_bch2_writepages+0x10/0x10 [ 72.969437][ T5335] do_writepages+0x35f/0x880 [ 72.971239][ T5335] ? __pfx_do_writepages+0x10/0x10 [ 72.973217][ T5335] ? file_write_and_wait_range+0x298/0x3c0 [ 72.975496][ T5335] ? do_raw_spin_lock+0x14f/0x370 [ 72.977553][ T5335] ? __pfx_lock_release+0x10/0x10 [ 72.979466][ T5335] ? do_raw_spin_unlock+0x58/0x8b0 [ 72.981448][ T5335] ? wbc_attach_and_unlock_inode+0xba/0x580 [ 72.983770][ T5335] file_write_and_wait_range+0x2a3/0x3c0 [ 72.985913][ T5335] ? __pfx_file_write_and_wait_range+0x10/0x10 [ 72.988331][ T5335] ? up_write+0x1a9/0x590 [ 72.990029][ T5335] bch2_fsync+0x13a/0x360 [ 72.991666][ T5335] bch2_write_iter+0x222f/0x2440 [ 72.993577][ T5335] ? __pfx_bch2_write_iter+0x10/0x10 [ 72.995579][ T5335] iter_file_splice_write+0xbfa/0x1510 [ 72.997702][ T5335] ? __pfx_iter_file_splice_write+0x10/0x10 [ 72.999930][ T5335] ? rcu_read_lock_any_held+0xb7/0x160 [ 73.002005][ T5335] ? __pfx_iter_file_splice_write+0x10/0x10 [ 73.004207][ T5335] direct_splice_actor+0x11b/0x220 [ 73.006203][ T5335] splice_direct_to_actor+0x586/0xc80 [ 73.008226][ T5335] ? __pfx_up_write+0x10/0x10 [ 73.009956][ T5335] ? __pfx_direct_splice_actor+0x10/0x10 [ 73.011997][ T5335] ? __pfx_splice_direct_to_actor+0x10/0x10 [ 73.014130][ T5335] do_splice_direct+0x289/0x3e0 [ 73.015795][ T5335] ? __pfx_do_splice_direct+0x10/0x10 [ 73.017718][ T5335] ? rcu_read_lock_any_held+0xb7/0x160 [ 73.019721][ T5335] ? __pfx_direct_file_splice_eof+0x10/0x10 [ 73.021819][ T5335] vfs_copy_file_range+0xd1f/0x1510 [ 73.023696][ T5335] ? __pfx_lock_release+0x10/0x10 [ 73.025550][ T5335] ? __pfx_vfs_copy_file_range+0x10/0x10 [ 73.027683][ T5335] ? __fget_files+0x395/0x410 [ 73.029538][ T5335] ? __fget_files+0x2a/0x410 [ 73.031148][ T5335] __se_sys_copy_file_range+0x3fa/0x600 [ 73.033231][ T5335] ? __pfx___se_sys_copy_file_range+0x10/0x10 [ 73.035541][ T5335] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 73.037836][ T5335] ? do_syscall_64+0x100/0x230 [ 73.039619][ T5335] ? __x64_sys_copy_file_range+0x21/0xf0 [ 73.041669][ T5335] do_syscall_64+0xf3/0x230 [ 73.043410][ T5335] ? clear_bhb_loop+0x35/0x90 [ 73.045196][ T5335] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 73.047405][ T5335] RIP: 0033:0x7f7d0837e819 [ 73.049022][ T5335] Code: ff ff c3 66 2e 0f 1f 84 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 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 [ 73.056043][ T5335] RSP: 002b:00007f7d091d8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146 [ 73.059076][ T5335] RAX: ffffffffffffffda RBX: 00007f7d08535fa0 RCX: 00007f7d0837e819 [ 73.061809][ T5335] RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000006 [ 73.064653][ T5335] RBP: 00007f7d091d8090 R08: fffffbffa003e45c R09: 0700000000000000 [ 73.067504][ T5335] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 [ 73.070370][ T5335] R13: 0000000000000000 R14: 00007f7d08535fa0 R15: 00007ffcfb862a38 [ 73.073200][ T5335] [ 73.074531][ T5335] Kernel Offset: disabled [ 73.075938][ T5335] Rebooting in 86400 seconds.. [ 69.157181][ T5321] Bluetooth: hci0: command tx timeout