program: r0 = syz_mount_image$ext4(&(0x7f0000000080)='ext4\x00', &(0x7f0000000480)='./file1\x00', 0x0, &(0x7f0000000340)={[{@noload}, {@stripe={'stripe', 0x3d, 0x30c}}, {@jqfmt_vfsv1}, {@nojournal_checksum}, {@jqfmt_vfsv1}, {@usrjquota}]}, 0xfe, 0x45e, &(0x7f000000ff40)="$eJzs3MuPFMUfAPBv98wu79/uT/EBgq6ikfjYZZfnwYMYTTxoYqIHjKd1dyHIwiq7JkKIogc8GhLvxqOJf4EnvRj1ZOJV74aEGC6gicmY7umeHYeZdYcdGGA+n6ShqruGqm9310x11QwBDKyx7I8kYnNE/BoRI/XsvwuM1f+6duXczJ9Xzs0kUau9/keSl7t65dxMWbR83aZ6plYr8uva1HvhrYjp+fm500V+YunkuxOLZ84+e/zk9LG5Y3Onpg4d2rd35/CBqf09iTOL6+r2Dxd2bHv5zYuvzhy5+PaPX2ft3Vwcb46jV8bqZ7etJ3pdWZ9taUon1Yjn+9gWVq8SEdWIGMr7/0hUYkPj2Ei89ElfGwfcVLVardbu87lwvgbcxZLodwuA/ig/6LPn33K7RUOP28LlwxHvHazHf63Y6keqkRZlhlqeb3tpLCKOnP/ri2yLmzQPAQDQ7NvDEfFMu/FfGvc3lftfsYYyGhH/j4h7IuLeiNgaEfdF5GUfiIgHu6y/dYXk+vFPeumGAlulbPz3XLG21Rj//V3L4y+MVorcljz+oeTo8fm5PcU52R1D67L85Ap1fPfiL591OtY8/su2rP5yLFiXXqq2TNDNTi9NrzHshssfR2yvtsSfS/J1gSjW9bZFxPau/uXlJ4zjT321o1Op/45/BdWuGtS+lV9GPFm//uejJf5S0nF9cvLggan9E+tjfm7PRHlXlJbXUX76+cJrnepfU/w9kF3/ja33f64R/2iyPmLxzNkT+XrtYvd1XPjt047PNDd6/w8nb+Tp4WLfB9NLS6cnI4aTV67fP7X82jJfls/i372rXfxp/h5XnomHIiK7iXdGxMMR8UjR9kcj4rGI2LVC/D+88Pg73ce/wqx8D2Xxz7a7/pVGkdEs/uXr332icuL7b7qPv5Rd/315anexZzXvf6tt4FrOHQAAANwp0vw78Ek63kin6fh4/Tv8W2NjOr+wuPT00YX3T83Wvys/GkNpOdM10jQfOlnMDZf5qZb83mLe+PPKhjw/PrMwP9vv4GHAberQ/zO/V/rdOuCm68E6GnCH0v9hcOn/MLj0fxhc+j8Mrnb9/6M+tAO49Xz+w+DS/2Fw6f8wuPR/GEitP4mvlHvSNf3kX+KuT0Ta/auqcZs0/k5KVFf9n1ncYGJd20P9fmcCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADojX8CAAD//w/N7aY=") truncate(&(0x7f0000000040)='./file1\x00', 0xc5d) io_setup(0x1, &(0x7f00000004c0)=0x0) r2 = socket$nl_route(0x10, 0x3, 0x0) setsockopt$SO_ATTACH_FILTER(r2, 0x1, 0x1a, &(0x7f0000000200)={0x2, &(0x7f0000000240)=[{0x48, 0x5, 0x73, 0xffe00003}, {0x6, 0x83, 0x6, 0x10400}]}, 0x10) sendmsg$nl_route_sched(r2, &(0x7f0000000300)={0x0, 0x0, &(0x7f0000000500)={&(0x7f0000000540)=@gettaction={0x14, 0x32, 0x201, 0x70bd24, 0x25dfdbfe}, 0x14}, 0x1, 0x0, 0x0, 0x20000000}, 0x40004) creat(&(0x7f0000000380)='./bus\x00', 0x0) mount(&(0x7f0000000280)=@loop={'/dev/loop', 0x0}, &(0x7f0000000140)='./bus\x00', 0x0, 0x5000, 0x0) r3 = open(&(0x7f0000000000)='./bus\x00', 0x0, 0x0) ioctl$LOOP_SET_STATUS64(r3, 0x4c04, &(0x7f00000003c0)={0x0, 0x0, 0x0, 0x1, 0x8005, 0x0, 0x0, 0x19, 0xd, "ef359f413bb93852f7d6a4ae6dddfbd1ce5d29c2ee5e5ca9000ff8ee09e737ff0edf110ff4117639c2eb4b78c660e677df701905b9aafab4afaaf755a3f6a004", "036c47c6780820d1cbf7966d61fdcf335263bd9bffbcc2542ded71038259ca171ce1a311ef54ec32d71e14ef3dc177e9b48b00", "f28359738e229a4c66810000000000d300e6d602000000000000000000000001", [0x3, 0x10000000]}) r4 = openat(r0, &(0x7f00000000c0)='./file1\x00', 0x101042, 0x10d) r5 = openat(0xffffffffffffff9c, &(0x7f000000fe80)='./file1\x00', 0x143042, 0x0) ioctl$EVIOCSFF(0xffffffffffffffff, 0x40304580, &(0x7f0000000100)={0x56, 0x0, 0x1, {0x4, 0x1}, {0x2a, 0xffff}, @cond=[{0x10, 0x100d, 0xcf, 0x1, 0x1, 0x3}, {0xa8f9, 0x4, 0x1, 0x7e, 0xfffe, 0x7ff}]}) r6 = syz_open_dev$tty1(0xc, 0x4, 0x1) r7 = fcntl$getown(r2, 0x9) syz_open_procfs(r7, &(0x7f0000000580)='syscall\x00') ioctl$KDSETMODE(r6, 0x4b45, 0x2) r8 = syz_open_dev$evdev(&(0x7f0000000180), 0x1, 0x842b01) write$char_usb(r8, &(0x7f00000001c0)="e2", 0x2250) pwritev2(r5, &(0x7f000000fec0)=[{&(0x7f000000ff00)="ff", 0x1}], 0x1, 0x25412, 0x4, 0x0) io_submit(r1, 0x1, &(0x7f00000002c0)=[&(0x7f0000000280)={0xffffff7f00000000, 0x0, 0x0, 0x1, 0x0, r4, &(0x7f0000000140)='i', 0xa800, 0xe00}]) [ 102.593977][ T4668] Bluetooth: hci0: command tx timeout [ 102.702601][ T5351] loop0: detected capacity change from 0 to 33280 [ 102.806222][ T5351] EXT4-fs (loop0): 1 truncate cleaned up [ 102.819323][ T5351] EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. [ 102.875684][ T5351] tc_dump_action: action bad kind [ 102.928136][ T5351] loop0: detected capacity change from 33280 to 64 [ 102.951887][ T45] kworker/u4:3: attempt to access beyond end of device [ 102.951887][ T45] loop0: rw=1, sector=72, nr_sectors = 2 limit=64 [ 102.951916][ T45] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 36) [ 102.951974][ T45] Buffer I/O error on device loop0, logical block 36 [ 102.980438][ T5351] EXT4-fs error (device loop0): xattr_find_entry:333: inode #15: comm syz.0.0: corrupted xattr entries [ 102.991580][ T5351] syz.0.0: attempt to access beyond end of device [ 102.991580][ T5351] loop0: rw=8912896, sector=72, nr_sectors = 2 limit=64 [ 102.991625][ T5351] syz.0.0: attempt to access beyond end of device [ 102.991625][ T5351] loop0: rw=8388608, sector=72, nr_sectors = 2 limit=64 [ 103.011905][ T25] audit: type=1800 audit(1794728747.709:2): pid=5351 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed comm="syz.0.0" name="file1" dev="loop0" ino=15 res=0 errno=-5 [ 103.012050][ T5352] EXT4-fs error (device loop0): xattr_find_entry:333: inode #15: comm syz.0.0: corrupted xattr entries [ 103.012422][ T5352] syz.0.0: attempt to access beyond end of device [ 103.012422][ T5352] loop0: rw=8388608, sector=72, nr_sectors = 2 limit=64 [ 103.012618][ T25] audit: type=1800 audit(1794728747.709:3): pid=5352 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed comm="syz.0.0" name="file1" dev="loop0" ino=15 res=0 errno=-5 [ 103.048700][ T5351] EXT4-fs error (device loop0): xattr_find_entry:333: inode #15: comm syz.0.0: corrupted xattr entries [ 103.120578][ T5352] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm syz.0.0: corrupted inode contents [ 103.131065][ T5352] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm syz.0.0: mark_inode_dirty error [ 103.131511][ T5352] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm syz.0.0: corrupted inode contents [ 103.132635][ T5352] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm syz.0.0: mark_inode_dirty error [ 103.133234][ T5352] syz.0.0: attempt to access beyond end of device [ 103.133234][ T5352] loop0: rw=2049, sector=296, nr_sectors = 2 limit=64 [ 103.133255][ T5352] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 148) [ 103.133277][ T5352] Buffer I/O error on device loop0, logical block 148 [ 103.133416][ T5352] syz.0.0: attempt to access beyond end of device [ 103.133416][ T5352] loop0: rw=2049, sector=510, nr_sectors = 2 limit=64 [ 103.133433][ T5352] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 255) [ 103.133451][ T5352] Buffer I/O error on device loop0, logical block 255 [ 103.133561][ T5352] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm syz.0.0: corrupted inode contents [ 103.192184][ T5351] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm syz.0.0: corrupted inode contents [ 103.201581][ T5351] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm syz.0.0: mark_inode_dirty error [ 103.216175][ T5352] syz.0.0: attempt to access beyond end of device [ 103.216175][ T5352] loop0: rw=2049, sector=308, nr_sectors = 14 limit=64 [ 103.216203][ T5352] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 154) [ 103.216223][ T5352] Buffer I/O error on device loop0, logical block 154 [ 103.216232][ T5352] Buffer I/O error on device loop0, logical block 155 [ 103.216238][ T5352] Buffer I/O error on device loop0, logical block 156 [ 103.216246][ T5352] Buffer I/O error on device loop0, logical block 157 [ 103.216252][ T5352] Buffer I/O error on device loop0, logical block 158 [ 103.216258][ T5352] Buffer I/O error on device loop0, logical block 159 [ 103.216262][ T5352] Buffer I/O error on device loop0, logical block 160 [ 103.263379][ T187] ------------[ cut here ]------------ [ 103.263400][ T187] kernel BUG at fs/ext4/mballoc.c:4779! [ 103.263419][ T187] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 103.271014][ T187] CPU: 0 UID: 0 PID: 187 Comm: kworker/u4:7 Not tainted syzkaller #0 PREEMPT(full) [ 103.275006][ T187] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 103.279263][ T187] Workqueue: writeback wb_workfn (flush-7:0) [ 103.282089][ T187] RIP: 0010:ext4_mb_use_inode_pa+0x6bf/0x720 [ 103.284704][ T187] Code: e8 06 22 a0 ff 48 ba 00 00 00 00 00 fc ff df e9 d7 fa ff ff e8 c2 c1 26 ff 90 0f 0b e8 ba c1 26 ff 90 0f 0b e8 b2 c1 26 ff 90 <0f> 0b e8 aa c1 26 ff 90 0f 0b 48 8b 0c 24 48 83 c1 54 80 e1 07 80 [ 103.294334][ T187] RSP: 0018:ffffc90001a964e0 EFLAGS: 00010293 [ 103.297041][ T187] RAX: ffffffff82a2702e RBX: 00000000fffffff1 RCX: ffff888034b10000 [ 103.300514][ T187] RDX: 0000000000000000 RSI: 000000000000001a RDI: 000000000000000b [ 103.304992][ T187] RBP: 1ffff11008c8d45e R08: ffff88804646ea73 R09: 1ffff11008c8dd4e [ 103.308526][ T187] R10: dffffc0000000000 R11: ffffed1008c8dd4f R12: 0000000000000000 [ 103.311889][ T187] R13: 000000000000001a R14: 1ffff11008c8dd51 R15: ffff88804646ea88 [ 103.315081][ T187] FS: 0000000000000000(0000) GS:ffff88808a9f4000(0000) knlGS:0000000000000000 [ 103.318537][ T187] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 103.321229][ T187] CR2: 000020000000a000 CR3: 00000000456e9000 CR4: 0000000000352ef0 [ 103.324449][ T187] Call Trace: [ 103.325829][ T187] [ 103.327140][ T187] ext4_mb_use_preallocated+0x638/0x13e0 [ 103.329582][ T187] ext4_mb_new_blocks+0x596/0x4520 [ 103.331884][ T187] ? rcu_is_watching+0x16/0xb0 [ 103.334037][ T187] ? __pfx_ext4_new_meta_blocks+0x10/0x10 [ 103.336560][ T187] ? __pfx_ext4_mb_new_blocks+0x10/0x10 [ 103.339218][ T187] ? unwind_next_frame+0x8f/0x2550 [ 103.341666][ T187] ? ext4_block_to_path+0x382/0x700 [ 103.343951][ T187] ext4_ind_map_blocks+0xef3/0x2300 [ 103.346174][ T187] ? __pfx_ext4_ind_map_blocks+0x10/0x10 [ 103.348612][ T187] ? down_write+0x166/0x200 [ 103.350722][ T187] ext4_map_create_blocks+0xbb/0x530 [ 103.353115][ T187] ? ext4_fc_track_inode+0xf3/0x3f0 [ 103.355413][ T187] ext4_map_blocks+0xe8e/0x1c60 [ 103.357568][ T187] ? __pfx_ext4_map_blocks+0x10/0x10 [ 103.359835][ T187] ? kmem_cache_alloc_noprof+0x151/0x600 [ 103.362212][ T187] ext4_do_writepages+0x1978/0x44a0 [ 103.364667][ T187] ? __pfx_ext4_do_writepages+0x10/0x10 [ 103.367066][ T187] ? __lock_acquire+0x747/0x2de0 [ 103.369213][ T187] ? filemap_get_folios_tag+0x639/0x720 [ 103.371388][ T187] ? filemap_get_folios_tag+0x118/0x720 [ 103.373759][ T187] ? __pfx_filemap_get_folios_tag+0x10/0x10 [ 103.376347][ T187] ? lock_acquire+0x115/0x350 [ 103.378781][ T187] ext4_writepages+0x1fe/0x4e0 [ 103.381476][ T187] ? __pfx_ext4_writepages+0x10/0x10 [ 103.384359][ T187] ? __pfx_ext4_writepages+0x10/0x10 [ 103.386869][ T187] do_writepages+0x338/0x560 [ 103.388820][ T187] ? do_raw_spin_lock+0x12b/0x2f0 [ 103.390956][ T187] ? reacquire_held_locks+0x117/0x1a0 [ 103.393202][ T187] ? writeback_sb_inodes+0x450/0x1af0 [ 103.395673][ T187] __writeback_single_inode+0x136/0x1220 [ 103.398133][ T187] ? do_raw_spin_unlock+0x4d/0x200 [ 103.400287][ T187] writeback_sb_inodes+0x9de/0x1af0 [ 103.402438][ T187] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 103.404948][ T187] ? __pfx_down_read_trylock+0x10/0x10 [ 103.407310][ T187] ? __pfx___up_read+0x10/0x10 [ 103.409380][ T187] __writeback_inodes_wb+0x114/0x250 [ 103.411652][ T187] wb_writeback+0x42f/0xad0 [ 103.413570][ T187] ? queue_io+0x251/0x470 [ 103.415431][ T187] ? __pfx_wb_writeback+0x10/0x10 [ 103.417504][ T187] ? do_raw_spin_lock+0x12b/0x2f0 [ 103.419591][ T187] wb_workfn+0x980/0x10f0 [ 103.421307][ T187] ? __pfx_wb_workfn+0x10/0x10 [ 103.423375][ T187] ? trace_hrtimer_start+0x82/0x200 [ 103.425568][ T187] ? do_raw_spin_lock+0x12b/0x2f0 [ 103.427702][ T187] ? lock_acquire+0x115/0x350 [ 103.429726][ T187] ? rcu_is_watching+0x16/0xb0 [ 103.431862][ T187] ? process_scheduled_works+0x97a/0x1630 [ 103.434346][ T187] process_scheduled_works+0xc3d/0x1630 [ 103.436739][ T187] ? __pfx_process_scheduled_works+0x10/0x10 [ 103.439159][ T187] ? assign_work+0x3cf/0x5d0 [ 103.441193][ T187] worker_thread+0xa47/0xfb0 [ 103.443146][ T187] ? __kthread_parkme+0x71/0x1f0 [ 103.445161][ T187] kthread+0x38b/0x480 [ 103.446848][ T187] ? __pfx_worker_thread+0x10/0x10 [ 103.449136][ T187] ? __pfx_kthread+0x10/0x10 [ 103.451121][ T187] ret_from_fork+0x514/0xb70 [ 103.453029][ T187] ? __pfx_ret_from_fork+0x10/0x10 [ 103.455179][ T187] ? __switch_to+0xc78/0x1410 [ 103.457085][ T187] ? __pfx_kthread+0x10/0x10 [ 103.458954][ T187] ret_from_fork_asm+0x1a/0x30 [ 103.460901][ T187] [ 103.462156][ T187] Modules linked in: [ 103.464717][ T187] ---[ end trace 0000000000000000 ]--- [ 103.467521][ T187] RIP: 0010:ext4_mb_use_inode_pa+0x6bf/0x720 [ 103.467546][ T187] Code: e8 06 22 a0 ff 48 ba 00 00 00 00 00 fc ff df e9 d7 fa ff ff e8 c2 c1 26 ff 90 0f 0b e8 ba c1 26 ff 90 0f 0b e8 b2 c1 26 ff 90 <0f> 0b e8 aa c1 26 ff 90 0f 0b 48 8b 0c 24 48 83 c1 54 80 e1 07 80 [ 103.467557][ T187] RSP: 0018:ffffc90001a964e0 EFLAGS: 00010293 [ 103.467569][ T187] RAX: ffffffff82a2702e RBX: 00000000fffffff1 RCX: ffff888034b10000 [ 103.467578][ T187] RDX: 0000000000000000 RSI: 000000000000001a RDI: 000000000000000b [ 103.467586][ T187] RBP: 1ffff11008c8d45e R08: ffff88804646ea73 R09: 1ffff11008c8dd4e [ 103.467594][ T187] R10: dffffc0000000000 R11: ffffed1008c8dd4f R12: 0000000000000000 [ 103.467603][ T187] R13: 000000000000001a R14: 1ffff11008c8dd51 R15: ffff88804646ea88 [ 103.467611][ T187] FS: 0000000000000000(0000) GS:ffff88808a9f4000(0000) knlGS:0000000000000000 [ 103.467620][ T187] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 103.467628][ T187] CR2: 000020000000a000 CR3: 00000000456e9000 CR4: 0000000000352ef0 [ 103.467668][ T187] Kernel panic - not syncing: Fatal exception [ 103.512134][ T187] Kernel Offset: disabled [ 103.514092][ T187] Rebooting in 86400 seconds..