syzbot


memory leak in __insert_pending

Status: upstream: reported C repro on 2022/11/03 22:14
Reported-by: syzbot+05a0f0ccab4a25626e38@syzkaller.appspotmail.com
First crash: 29d, last: 29d

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888111c8a1e0 (size 32):
  comm "syz-executor114", pid 3614, jiffies 4294956785 (age 12.710s)
  hex dump (first 32 bytes):
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff8178729a>] __insert_pending.isra.0+0xaa/0xf0 fs/ext4/extents_status.c:1895
    [<ffffffff8178b044>] ext4_es_insert_delayed_block+0x224/0x230 fs/ext4/extents_status.c:2018
    [<ffffffff817a7ae5>] ext4_insert_delayed_block fs/ext4/inode.c:1704 [inline]
    [<ffffffff817a7ae5>] ext4_da_map_blocks fs/ext4/inode.c:1796 [inline]
    [<ffffffff817a7ae5>] ext4_da_get_block_prep+0x3a5/0x7e0 fs/ext4/inode.c:1860
    [<ffffffff81653016>] __block_write_begin_int+0x1d6/0x9d0 fs/buffer.c:1991
    [<ffffffff8179cf7b>] ext4_da_convert_inline_data_to_extent fs/ext4/inline.c:877 [inline]
    [<ffffffff8179cf7b>] ext4_da_write_inline_data_begin+0x39b/0xb10 fs/ext4/inline.c:939
    [<ffffffff817b0307>] ext4_da_write_begin+0x477/0x4e0 fs/ext4/inode.c:2986
    [<ffffffff8148755f>] generic_perform_write+0xff/0x2b0 mm/filemap.c:3753
    [<ffffffff8178c54b>] ext4_buffered_write_iter+0xbb/0x1d0 fs/ext4/file.c:285
    [<ffffffff8178c71f>] ext4_file_write_iter+0xbf/0xbf0 fs/ext4/file.c:700
    [<ffffffff815d8517>] call_write_iter include/linux/fs.h:2191 [inline]
    [<ffffffff815d8517>] do_iter_readv_writev+0x147/0x210 fs/read_write.c:735
    [<ffffffff815d9afc>] do_iter_write+0xdc/0x300 fs/read_write.c:861
    [<ffffffff815d9d59>] vfs_iter_write+0x39/0x60 fs/read_write.c:902
    [<ffffffff8163eb44>] iter_file_splice_write+0x434/0x660 fs/splice.c:686
    [<ffffffff8163c57b>] do_splice_from fs/splice.c:764 [inline]
    [<ffffffff8163c57b>] direct_splice_actor+0x4b/0x70 fs/splice.c:931
    [<ffffffff8163cd19>] splice_direct_to_actor+0x149/0x350 fs/splice.c:886
    [<ffffffff8163d008>] do_splice_direct+0xe8/0x150 fs/splice.c:974

BUG: memory leak
unreferenced object 0xffff888111c8a260 (size 32):
  comm "syz-executor114", pid 3618, jiffies 4294957317 (age 7.390s)
  hex dump (first 32 bytes):
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff8178729a>] __insert_pending.isra.0+0xaa/0xf0 fs/ext4/extents_status.c:1895
    [<ffffffff8178b044>] ext4_es_insert_delayed_block+0x224/0x230 fs/ext4/extents_status.c:2018
    [<ffffffff817a7ae5>] ext4_insert_delayed_block fs/ext4/inode.c:1704 [inline]
    [<ffffffff817a7ae5>] ext4_da_map_blocks fs/ext4/inode.c:1796 [inline]
    [<ffffffff817a7ae5>] ext4_da_get_block_prep+0x3a5/0x7e0 fs/ext4/inode.c:1860
    [<ffffffff81653016>] __block_write_begin_int+0x1d6/0x9d0 fs/buffer.c:1991
    [<ffffffff8179cf7b>] ext4_da_convert_inline_data_to_extent fs/ext4/inline.c:877 [inline]
    [<ffffffff8179cf7b>] ext4_da_write_inline_data_begin+0x39b/0xb10 fs/ext4/inline.c:939
    [<ffffffff817b0307>] ext4_da_write_begin+0x477/0x4e0 fs/ext4/inode.c:2986
    [<ffffffff8148755f>] generic_perform_write+0xff/0x2b0 mm/filemap.c:3753
    [<ffffffff8178c54b>] ext4_buffered_write_iter+0xbb/0x1d0 fs/ext4/file.c:285
    [<ffffffff8178c71f>] ext4_file_write_iter+0xbf/0xbf0 fs/ext4/file.c:700
    [<ffffffff815d8517>] call_write_iter include/linux/fs.h:2191 [inline]
    [<ffffffff815d8517>] do_iter_readv_writev+0x147/0x210 fs/read_write.c:735
    [<ffffffff815d9afc>] do_iter_write+0xdc/0x300 fs/read_write.c:861
    [<ffffffff815d9d59>] vfs_iter_write+0x39/0x60 fs/read_write.c:902
    [<ffffffff8163eb44>] iter_file_splice_write+0x434/0x660 fs/splice.c:686
    [<ffffffff8163c57b>] do_splice_from fs/splice.c:764 [inline]
    [<ffffffff8163c57b>] direct_splice_actor+0x4b/0x70 fs/splice.c:931
    [<ffffffff8163cd19>] splice_direct_to_actor+0x149/0x350 fs/splice.c:886
    [<ffffffff8163d008>] do_splice_direct+0xe8/0x150 fs/splice.c:974


Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2022/10/30 22:07 upstream 882ad2a2a8ff 2a71366b .config log report syz C memory leak in __insert_pending
* Struck through repros no longer work on HEAD.