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=") sendmsg$IPCTNL_MSG_EXP_NEW(0xffffffffffffffff, &(0x7f0000000100)={0x0, 0x0, &(0x7f0000000180)={&(0x7f00000001c0)={0x94, 0x0, 0x2, 0x301, 0x0, 0x0, {0x7, 0x0, 0x10}, [@CTA_EXPECT_NAT={0x80, 0xa, 0x0, 0x1, [@CTA_EXPECT_NAT_TUPLE={0x58, 0x2, 0x0, 0x1, [@CTA_TUPLE_ZONE={0x6, 0x3, 0x1, 0x0, 0x1}, @CTA_TUPLE_IP={0x14, 0x1, 0x0, 0x1, @ipv4={{0x8, 0x1, @multicast1}, {0x8, 0x2, @remote}}}, @CTA_TUPLE_IP={0x2c, 0x1, 0x0, 0x1, @ipv6={{0x14, 0x3, @empty}, {0x14, 0x4, @rand_addr=' \x01\x00'}}}, @CTA_TUPLE_PROTO={0xc, 0x2, 0x0, 0x1, {0x5, 0x1, 0x1}}]}, @CTA_EXPECT_NAT_TUPLE={0x10, 0x2, 0x0, 0x1, [@CTA_TUPLE_PROTO={0xc, 0x2, 0x0, 0x1, {0x5, 0x1, 0x94}}]}, @CTA_EXPECT_NAT_TUPLE={0x4}, @CTA_EXPECT_NAT_DIR={0x8, 0x1, 0x1, 0x0, 0x1}, @CTA_EXPECT_NAT_DIR={0x8}]}]}, 0x94}, 0x1, 0x0, 0x0, 0x40010}, 0x4008000) r1 = socket(0x10, 0x803, 0x0) sendto(r1, &(0x7f0000000300)="120000001200e7ef007b0000000000faffa0", 0x12, 0x8800, 0x0, 0x0) recvmmsg(r1, &(0x7f0000000500)=[{{&(0x7f0000000540)=@ethernet={0x0, @random}, 0xfdf4, &(0x7f00000005c0)=[{&(0x7f0000000640)=""/100, 0x321}, {&(0x7f00000006c0)=""/85, 0x42}, {&(0x7f0000000740)=""/4096, 0x197}, {&(0x7f0000001740)=""/106, 0x659}, {&(0x7f00000017c0)=""/73, 0xd}, {&(0x7f0000001840)=""/77, 0x69}, {&(0x7f00000018c0)=""/141, 0xc4}, {&(0x7f0000001980)=""/17, 0x1d8}], 0x21, &(0x7f00000019c0)=""/191, 0x41}, 0x5}], 0x4000000000003b4, 0x2000, &(0x7f0000001a80)={0x77359400}) truncate(&(0x7f0000000040)='./file1\x00', 0xc5d) io_setup(0x1, &(0x7f00000004c0)=0x0) 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) pwritev2(r5, &(0x7f000000fec0)=[{&(0x7f000000ff00)="ff", 0x1}], 0x1, 0x25412, 0x4, 0x0) io_submit(r2, 0x1, &(0x7f00000002c0)=[&(0x7f0000000280)={0xffffff7f00000000, 0x0, 0x0, 0x1, 0x0, r4, &(0x7f0000000140)='i', 0xa800, 0xe00}]) [ 121.540978][ T4669] Bluetooth: hci0: command tx timeout [ 121.689203][ T5351] loop0: detected capacity change from 0 to 33280 [ 121.793231][ T5351] EXT4-fs (loop0): 1 truncate cleaned up [ 121.799461][ T5351] EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. [ 121.875289][ T5351] loop0: detected capacity change from 33280 to 64 [ 121.889346][ T5351] EXT4-fs error (device loop0): xattr_find_entry:333: inode #15: comm syz.0.0: corrupted xattr entries [ 121.906786][ T5351] EXT4-fs error (device loop0): xattr_find_entry:333: inode #15: comm syz.0.0: corrupted xattr entries [ 121.961319][ T5352] syz.0.0: attempt to access beyond end of device [ 121.961319][ T5352] loop0: rw=2049, sector=72, nr_sectors = 2 limit=64 [ 121.961348][ T5352] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 36) [ 121.961436][ T5352] Buffer I/O error on device loop0, logical block 36 [ 121.961600][ T5352] syz.0.0: attempt to access beyond end of device [ 121.961600][ T5352] loop0: rw=2049, sector=296, nr_sectors = 2 limit=64 [ 121.961615][ T5352] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 148) [ 121.961630][ T5352] Buffer I/O error on device loop0, logical block 148 [ 122.008437][ T14] kworker/u4:1: attempt to access beyond end of device [ 122.008437][ T14] loop0: rw=1, sector=510, nr_sectors = 2 limit=64 [ 122.008463][ T14] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 255) [ 122.008484][ T14] Buffer I/O error on device loop0, logical block 255 [ 122.009525][ T14] kworker/u4:1: attempt to access beyond end of device [ 122.009525][ T14] loop0: rw=1, sector=308, nr_sectors = 6 limit=64 [ 122.009543][ T14] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 154) [ 122.009558][ T14] Buffer I/O error on device loop0, logical block 154 [ 122.009565][ T14] Buffer I/O error on device loop0, logical block 155 [ 122.009571][ T14] Buffer I/O error on device loop0, logical block 156 [ 122.059883][ T14] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents [ 122.061012][ T5352] syz.0.0: attempt to access beyond end of device [ 122.061012][ T5352] loop0: rw=2049, sector=314, nr_sectors = 8 limit=64 [ 122.061032][ T5352] EXT4-fs warning (device loop0): ext4_end_bio:367: I/O error 10 writing to inode 15 starting block 157) [ 122.061050][ T5352] Buffer I/O error on device loop0, logical block 157 [ 122.061058][ T5352] Buffer I/O error on device loop0, logical block 158 [ 122.061065][ T5352] Buffer I/O error on device loop0, logical block 159 [ 122.061073][ T5352] Buffer I/O error on device loop0, logical block 160 [ 122.062054][ T14] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error [ 122.063043][ T14] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents [ 122.063319][ T14] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error [ 122.120458][ T14] EXT4-fs error (device loop0): ext4_do_update_inode:6679: inode #15: comm kworker/u4:1: corrupted inode contents [ 122.121312][ T14] EXT4-fs error (device loop0): ext4_dirty_inode:7653: inode #15: comm kworker/u4:1: mark_inode_dirty error [ 122.122625][ T14] ------------[ cut here ]------------ [ 122.122632][ T14] kernel BUG at fs/ext4/mballoc.c:4779! [ 122.122736][ T14] Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI [ 122.139016][ T14] CPU: 0 UID: 0 PID: 14 Comm: kworker/u4:1 Not tainted syzkaller #0 PREEMPT(full) [ 122.142776][ T14] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 122.146881][ T14] Workqueue: writeback wb_workfn (flush-7:0) [ 122.149468][ T14] RIP: 0010:ext4_mb_use_inode_pa+0x6bf/0x720 [ 122.151999][ T14] 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 [ 122.159901][ T14] RSP: 0018:ffffc9000027e4e0 EFLAGS: 00010293 [ 122.162435][ T14] RAX: ffffffff82a2702e RBX: 00000000ffffffef RCX: ffff88801d7ecb00 [ 122.165832][ T14] RDX: 0000000000000000 RSI: 0000000000000016 RDI: 0000000000000005 [ 122.168954][ T14] RBP: 1ffff11008af2607 R08: ffff888045797a73 R09: 1ffff11008af2f4e [ 122.172300][ T14] R10: dffffc0000000000 R11: ffffed1008af2f4f R12: 0000000000000000 [ 122.175628][ T14] R13: 0000000000000016 R14: 1ffff11008af2f51 R15: ffff888045797a88 [ 122.179039][ T14] FS: 0000000000000000(0000) GS:ffff88808a9f4000(0000) knlGS:0000000000000000 [ 122.182600][ T14] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 122.185302][ T14] CR2: 00007fdef43fd6b8 CR3: 0000000046a6b000 CR4: 0000000000352ef0 [ 122.188647][ T14] Call Trace: [ 122.190164][ T14] [ 122.191372][ T14] ext4_mb_use_preallocated+0x638/0x13e0 [ 122.193802][ T14] ext4_mb_new_blocks+0x596/0x4520 [ 122.195956][ T14] ? do_raw_spin_unlock+0x4d/0x200 [ 122.198097][ T14] ? _raw_spin_unlock+0x28/0x50 [ 122.200294][ T14] ? __pfx_ext4_new_meta_blocks+0x10/0x10 [ 122.202735][ T14] ? __pfx_ext4_mb_new_blocks+0x10/0x10 [ 122.205063][ T14] ? unwind_next_frame+0x8f/0x2550 [ 122.207235][ T14] ? ext4_block_to_path+0x382/0x700 [ 122.209419][ T14] ext4_ind_map_blocks+0xef3/0x2300 [ 122.211574][ T14] ? __pfx_ext4_ind_map_blocks+0x10/0x10 [ 122.213897][ T14] ? stack_trace_save+0xa9/0x100 [ 122.216006][ T14] ? ext4_alloc_io_end_vec+0x2b/0x160 [ 122.218277][ T14] ? kmem_cache_alloc_noprof+0x141/0x600 [ 122.220660][ T14] ? down_write+0x166/0x200 [ 122.222670][ T14] ext4_map_create_blocks+0xbb/0x530 [ 122.224875][ T14] ? ext4_fc_track_inode+0xf3/0x3f0 [ 122.227177][ T14] ext4_map_blocks+0xe8e/0x1c60 [ 122.229248][ T14] ? __pfx_ext4_map_blocks+0x10/0x10 [ 122.231502][ T14] ? kmem_cache_alloc_noprof+0x151/0x600 [ 122.233866][ T14] ext4_do_writepages+0x1978/0x44a0 [ 122.236176][ T14] ? __pfx_ext4_do_writepages+0x10/0x10 [ 122.238385][ T14] ? __lock_acquire+0x747/0x2de0 [ 122.240405][ T14] ? do_raw_spin_lock+0x12b/0x2f0 [ 122.244547][ T14] ? lock_acquire+0x115/0x350 [ 122.246449][ T14] ext4_writepages+0x1fe/0x4e0 [ 122.248456][ T14] ? __pfx_ext4_writepages+0x10/0x10 [ 122.250583][ T14] ? __schedule+0x183e/0x58c0 [ 122.252628][ T14] ? rcu_is_watching+0x16/0xb0 [ 122.254655][ T14] ? __pfx_ext4_writepages+0x10/0x10 [ 122.257017][ T14] do_writepages+0x338/0x560 [ 122.259061][ T14] ? reacquire_held_locks+0x117/0x1a0 [ 122.261407][ T14] ? writeback_sb_inodes+0x450/0x1af0 [ 122.263739][ T14] __writeback_single_inode+0x136/0x1220 [ 122.266180][ T14] ? do_raw_spin_unlock+0x4d/0x200 [ 122.268255][ T14] writeback_sb_inodes+0x9de/0x1af0 [ 122.270264][ T14] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 122.272540][ T14] ? __pfx_down_read_trylock+0x10/0x10 [ 122.274671][ T14] __writeback_inodes_wb+0x114/0x250 [ 122.276792][ T14] wb_writeback+0x42f/0xad0 [ 122.278611][ T14] ? queue_io+0x251/0x470 [ 122.280419][ T14] ? __pfx_wb_writeback+0x10/0x10 [ 122.282586][ T14] ? do_raw_spin_lock+0x12b/0x2f0 [ 122.284883][ T14] wb_workfn+0x980/0x10f0 [ 122.286940][ T14] ? __pfx_wb_workfn+0x10/0x10 [ 122.289222][ T14] ? trace_hrtimer_start+0x82/0x200 [ 122.291606][ T14] ? do_raw_spin_lock+0x12b/0x2f0 [ 122.293953][ T14] ? lock_acquire+0x115/0x350 [ 122.296017][ T14] ? rcu_is_watching+0x16/0xb0 [ 122.298038][ T14] ? process_scheduled_works+0x97a/0x1630 [ 122.300598][ T14] process_scheduled_works+0xc3d/0x1630 [ 122.302958][ T14] ? __pfx_process_scheduled_works+0x10/0x10 [ 122.305615][ T14] ? assign_work+0x3cf/0x5d0 [ 122.307686][ T14] worker_thread+0xa47/0xfb0 [ 122.309799][ T14] kthread+0x38b/0x480 [ 122.311634][ T14] ? __pfx_worker_thread+0x10/0x10 [ 122.314113][ T14] ? __pfx_kthread+0x10/0x10 [ 122.316221][ T14] ret_from_fork+0x514/0xb70 [ 122.318281][ T14] ? __pfx_ret_from_fork+0x10/0x10 [ 122.320595][ T14] ? __switch_to+0xc78/0x1410 [ 122.322721][ T14] ? __pfx_kthread+0x10/0x10 [ 122.324820][ T14] ret_from_fork_asm+0x1a/0x30 [ 122.326971][ T14] [ 122.328397][ T14] Modules linked in: [ 122.330684][ T14] ---[ end trace 0000000000000000 ]--- [ 122.333351][ T14] RIP: 0010:ext4_mb_use_inode_pa+0x6bf/0x720 [ 122.333364][ T14] 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 [ 122.333370][ T14] RSP: 0018:ffffc9000027e4e0 EFLAGS: 00010293 [ 122.333378][ T14] RAX: ffffffff82a2702e RBX: 00000000ffffffef RCX: ffff88801d7ecb00 [ 122.333384][ T14] RDX: 0000000000000000 RSI: 0000000000000016 RDI: 0000000000000005 [ 122.333388][ T14] RBP: 1ffff11008af2607 R08: ffff888045797a73 R09: 1ffff11008af2f4e [ 122.333394][ T14] R10: dffffc0000000000 R11: ffffed1008af2f4f R12: 0000000000000000 [ 122.333398][ T14] R13: 0000000000000016 R14: 1ffff11008af2f51 R15: ffff888045797a88 [ 122.333403][ T14] FS: 0000000000000000(0000) GS:ffff88808a9f4000(0000) knlGS:0000000000000000 [ 122.333409][ T14] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 122.333414][ T14] CR2: 00007fdef43fd6b8 CR3: 0000000046a6b000 CR4: 0000000000352ef0 [ 122.333444][ T14] Kernel panic - not syncing: Fatal exception [ 122.379916][ T14] Kernel Offset: disabled [ 122.381755][ T14] Rebooting in 86400 seconds..