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(0x5, &(0x7f0000000100)=0x0) creat(&(0x7f0000000380)='./bus\x00', 0x0) mount(&(0x7f0000000280)=@loop={'/dev/loop', 0x0}, &(0x7f0000000140)='./bus\x00', 0x0, 0x5000, 0x0) r2 = open(&(0x7f0000000000)='./bus\x00', 0x0, 0x0) ioctl$LOOP_SET_STATUS64(r2, 0x4c04, &(0x7f00000003c0)={0x0, 0x0, 0x0, 0x1, 0x8005, 0x0, 0x0, 0x19, 0xd, "ef359f413bb93852f7d6a4ae6dddfbd1ce5d29c2ee5e5ca9000ff8ee09e737ff0edf110ff4117639c2eb4b78c660e677df701905b9aafab4afaaf755a3f6a004", "036c47c6780820d1cbf7966d61fdcf335263bd9bffbcc2542ded71038259ca171ce1a311ef54ec32d71e14ef3dc177e9b48b00", "f28359738e229a4c66810000000000d300e6d602000000000000000000000001", [0x3, 0x10000000]}) r3 = openat(r0, &(0x7f00000000c0)='./file1\x00', 0x101042, 0x10d) r4 = openat(0xffffffffffffff9c, &(0x7f000000fe80)='./file1\x00', 0x143042, 0x0) pwritev2(r4, &(0x7f000000fec0)=[{&(0x7f000000ff00)="ff", 0x1}], 0x1, 0x25412, 0x4, 0x0) io_submit(r1, 0x1, &(0x7f00000002c0)=[&(0x7f0000000280)={0xffffff7f00000000, 0x0, 0x0, 0x1, 0x0, r3, &(0x7f0000000140)='i', 0xa800, 0xe00}]) [ 103.162690][ T4665] Bluetooth: hci0: command tx timeout [ 105.258928][ T4665] Bluetooth: hci0: command tx timeout [ 105.351518][ T5354] loop0: detected capacity change from 0 to 33280 [ 105.461767][ T5354] EXT4-fs (loop0): 1 truncate cleaned up [ 105.468937][ T5354] EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. [ 105.645221][ T5354] loop0: detected capacity change from 33280 to 64 [ 105.688761][ T5354] EXT4-fs error (device loop0): xattr_find_entry:333: inode #15: comm syz.0.0: corrupted xattr entries [ 105.710320][ T5354] EXT4-fs error (device loop0): xattr_find_entry:333: inode #15: comm syz.0.0: corrupted xattr entries [ 105.780911][ T5355] syz.0.0: attempt to access beyond end of device [ 105.780911][ T5355] loop0: rw=2049, sector=72, nr_sectors = 2 limit=64 [ 105.780941][ T5355] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 36) [ 105.781087][ T5355] Buffer I/O error on device loop0, logical block 36 [ 105.799626][ T5355] syz.0.0: attempt to access beyond end of device [ 105.799626][ T5355] loop0: rw=2049, sector=296, nr_sectors = 2 limit=64 [ 105.799652][ T5355] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 148) [ 105.799672][ T5355] Buffer I/O error on device loop0, logical block 148 [ 105.801977][ T5355] syz.0.0: attempt to access beyond end of device [ 105.801977][ T5355] loop0: rw=2049, sector=510, nr_sectors = 2 limit=64 [ 105.802001][ T5355] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 255) [ 105.802018][ T5355] Buffer I/O error on device loop0, logical block 255 [ 105.841448][ T5355] syz.0.0: attempt to access beyond end of device [ 105.841448][ T5355] loop0: rw=2049, sector=308, nr_sectors = 6 limit=64 [ 105.841475][ T5355] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 154) [ 105.841495][ T5355] Buffer I/O error on device loop0, logical block 154 [ 105.841509][ T5355] Buffer I/O error on device loop0, logical block 155 [ 105.841517][ T5355] Buffer I/O error on device loop0, logical block 156 [ 105.879450][ T5355] syz.0.0: attempt to access beyond end of device [ 105.879450][ T5355] loop0: rw=2049, sector=314, nr_sectors = 8 limit=64 [ 105.879480][ T5355] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 157) [ 105.879500][ T5355] Buffer I/O error on device loop0, logical block 157 [ 105.879509][ T5355] Buffer I/O error on device loop0, logical block 158 [ 105.879516][ T5355] Buffer I/O error on device loop0, logical block 159 [ 105.879523][ T5355] Buffer I/O error on device loop0, logical block 160 [ 105.880168][ T14] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents [ 105.919088][ T14] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error [ 105.920851][ T14] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents [ 105.922122][ T14] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error [ 105.949096][ T14] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents [ 105.951473][ T14] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error [ 105.968245][ T14] ------------[ cut here ]------------ [ 105.968259][ T14] kernel BUG at fs/ext4/mballoc.c:4779! [ 105.968291][ T14] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 105.975756][ T14] CPU: 0 UID: 0 PID: 14 Comm: kworker/u4:1 Not tainted syzkaller #0 PREEMPT(full) [ 105.979647][ T14] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 105.984029][ T14] Workqueue: writeback wb_workfn (flush-7:0) [ 105.986836][ T14] RIP: 0010:ext4_mb_use_inode_pa+0x6bf/0x720 [ 105.989490][ T14] Code: e8 06 0c a0 ff 48 ba 00 00 00 00 00 fc ff df e9 d7 fa ff ff e8 02 52 26 ff 90 0f 0b e8 fa 51 26 ff 90 0f 0b e8 f2 51 26 ff 90 <0f> 0b e8 ea 51 26 ff 90 0f 0b 48 8b 0c 24 48 83 c1 54 80 e1 07 80 [ 105.997987][ T14] RSP: 0018:ffffc9000027e4e0 EFLAGS: 00010293 [ 106.000590][ T14] RAX: ffffffff82a2e97e RBX: 00000000ffffffef RCX: ffff88801d7e4b00 [ 106.004067][ T14] RDX: 0000000000000000 RSI: 0000000000000016 RDI: 0000000000000005 [ 106.007396][ T14] RBP: 1ffff11008b35807 R08: ffff8880459b0a73 R09: 1ffff11008b3614e [ 106.010660][ T14] R10: dffffc0000000000 R11: ffffed1008b3614f R12: 0000000000000000 [ 106.013999][ T14] R13: 0000000000000016 R14: 1ffff11008b36151 R15: ffff8880459b0a88 [ 106.017599][ T14] FS: 0000000000000000(0000) GS:ffff88808a9f0000(0000) knlGS:0000000000000000 [ 106.021649][ T14] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 106.024418][ T14] CR2: 00007f09844b5b00 CR3: 000000001f9cc000 CR4: 0000000000352ef0 [ 106.027992][ T14] Call Trace: [ 106.029499][ T14] [ 106.030659][ T14] ext4_mb_use_preallocated+0x638/0x13e0 [ 106.033053][ T14] ext4_mb_new_blocks+0x596/0x4520 [ 106.035242][ T14] ? do_raw_spin_unlock+0x4d/0x200 [ 106.037364][ T14] ? _raw_spin_unlock+0x28/0x50 [ 106.039513][ T14] ? __pfx_ext4_new_meta_blocks+0x10/0x10 [ 106.042033][ T14] ? __pfx_ext4_mb_new_blocks+0x10/0x10 [ 106.044425][ T14] ? unwind_next_frame+0x8f/0x2550 [ 106.046715][ T14] ? ext4_block_to_path+0x382/0x700 [ 106.048966][ T14] ext4_ind_map_blocks+0xef3/0x2300 [ 106.051158][ T14] ? __pfx_ext4_ind_map_blocks+0x10/0x10 [ 106.053558][ T14] ? stack_trace_save+0xa9/0x100 [ 106.055655][ T14] ? ext4_alloc_io_end_vec+0x2b/0x160 [ 106.058000][ T14] ? kmem_cache_alloc_noprof+0x81/0x600 [ 106.060394][ T14] ? down_write+0x166/0x200 [ 106.063451][ T14] ext4_map_create_blocks+0xbb/0x530 [ 106.066175][ T14] ? ext4_fc_track_inode+0xf3/0x3f0 [ 106.068469][ T14] ext4_map_blocks+0xe8e/0x1c60 [ 106.070532][ T14] ? __pfx_ext4_map_blocks+0x10/0x10 [ 106.072687][ T14] ? kmem_cache_alloc_noprof+0x151/0x600 [ 106.075016][ T14] ext4_do_writepages+0x1978/0x44a0 [ 106.077155][ T14] ? __pfx_ext4_do_writepages+0x10/0x10 [ 106.079270][ T14] ? __lock_acquire+0x747/0x2de0 [ 106.081325][ T14] ? __pfx_clockevents_program_event+0x10/0x10 [ 106.084002][ T14] ? lock_acquire+0x115/0x350 [ 106.086033][ T14] ext4_writepages+0x1fe/0x4e0 [ 106.088150][ T14] ? __pfx_ext4_writepages+0x10/0x10 [ 106.090540][ T14] ? __pfx___schedule+0x10/0x10 [ 106.092689][ T14] ? __queue_work+0x20a/0x1360 [ 106.094672][ T14] ? __pfx_ext4_writepages+0x10/0x10 [ 106.096859][ T14] do_writepages+0x338/0x560 [ 106.098909][ T14] ? __lock_acquire+0x747/0x2de0 [ 106.101063][ T14] ? reacquire_held_locks+0x117/0x1a0 [ 106.103417][ T14] ? writeback_sb_inodes+0x450/0x1af0 [ 106.105801][ T14] __writeback_single_inode+0x136/0x1220 [ 106.108276][ T14] ? do_raw_spin_unlock+0x4d/0x200 [ 106.110283][ T14] writeback_sb_inodes+0x9de/0x1af0 [ 106.112466][ T14] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 106.114813][ T14] ? __pfx_down_read_trylock+0x10/0x10 [ 106.117177][ T14] __writeback_inodes_wb+0x114/0x250 [ 106.119354][ T14] wb_writeback+0x42f/0xad0 [ 106.121217][ T14] ? queue_io+0x201/0x470 [ 106.123101][ T14] ? __pfx_wb_writeback+0x10/0x10 [ 106.125358][ T14] ? do_raw_spin_lock+0x12b/0x2f0 [ 106.127645][ T14] wb_workfn+0x980/0x10f0 [ 106.129649][ T14] ? __pfx_wb_workfn+0x10/0x10 [ 106.131742][ T14] ? do_raw_spin_lock+0x12b/0x2f0 [ 106.133767][ T14] ? lock_acquire+0x115/0x350 [ 106.135761][ T14] ? rcu_is_watching+0x16/0xb0 [ 106.137801][ T14] ? process_scheduled_works+0x97a/0x1630 [ 106.140292][ T14] process_scheduled_works+0xc3d/0x1630 [ 106.142946][ T14] ? __pfx_process_scheduled_works+0x10/0x10 [ 106.145592][ T14] ? assign_work+0x3cf/0x5d0 [ 106.147432][ T14] worker_thread+0xa47/0xfb0 [ 106.149310][ T14] kthread+0x38b/0x480 [ 106.151048][ T14] ? __pfx_worker_thread+0x10/0x10 [ 106.153218][ T14] ? __pfx_kthread+0x10/0x10 [ 106.155147][ T14] ret_from_fork+0x514/0xb70 [ 106.157178][ T14] ? __pfx_ret_from_fork+0x10/0x10 [ 106.159171][ T14] ? __switch_to+0xc78/0x1410 [ 106.161083][ T14] ? __pfx_kthread+0x10/0x10 [ 106.162935][ T14] ret_from_fork_asm+0x1a/0x30 [ 106.164913][ T14] [ 106.166217][ T14] Modules linked in: [ 106.168845][ T14] ---[ end trace 0000000000000000 ]--- [ 106.171464][ T14] RIP: 0010:ext4_mb_use_inode_pa+0x6bf/0x720 [ 106.171485][ T14] Code: e8 06 0c a0 ff 48 ba 00 00 00 00 00 fc ff df e9 d7 fa ff ff e8 02 52 26 ff 90 0f 0b e8 fa 51 26 ff 90 0f 0b e8 f2 51 26 ff 90 <0f> 0b e8 ea 51 26 ff 90 0f 0b 48 8b 0c 24 48 83 c1 54 80 e1 07 80 [ 106.171494][ T14] RSP: 0018:ffffc9000027e4e0 EFLAGS: 00010293 [ 106.171505][ T14] RAX: ffffffff82a2e97e RBX: 00000000ffffffef RCX: ffff88801d7e4b00 [ 106.171512][ T14] RDX: 0000000000000000 RSI: 0000000000000016 RDI: 0000000000000005 [ 106.171519][ T14] RBP: 1ffff11008b35807 R08: ffff8880459b0a73 R09: 1ffff11008b3614e [ 106.171526][ T14] R10: dffffc0000000000 R11: ffffed1008b3614f R12: 0000000000000000 [ 106.171534][ T14] R13: 0000000000000016 R14: 1ffff11008b36151 R15: ffff8880459b0a88 [ 106.171541][ T14] FS: 0000000000000000(0000) GS:ffff88808a9f0000(0000) knlGS:0000000000000000 [ 106.171547][ T14] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 106.171552][ T14] CR2: 00007f09844b5b00 CR3: 000000001f9cc000 CR4: 0000000000352ef0 [ 106.171585][ T14] Kernel panic - not syncing: Fatal exception [ 106.215007][ T14] Kernel Offset: disabled [ 106.216881][ T14] Rebooting in 86400 seconds..