syzbot


memory leak in ext4_mb_new_blocks

Status: auto-obsoleted due to no activity on 2022/11/03 13:20
Subsystems: ext4 usb
[Documentation on labels]
Reported-by: syzbot+d00808b55445133eca1e@syzkaller.appspotmail.com
First crash: 1026d, last: 1002d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] memory leak in ext4_mb_new_blocks 0 (1) 2021/07/07 14:53
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/11/03 00:30 15m retest repro upstream OK log
2022/11/02 22:30 14m retest repro upstream OK log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff8881136d63a8 (size 104):
  comm "kworker/u4:3", pid 1955, jiffies 4294943376 (age 403.530s)
  hex dump (first 32 bytes):
    b0 2e ff 11 81 88 ff ff 22 01 00 00 00 00 ad de  ........".......
    00 01 00 00 00 00 ad de 22 01 00 00 00 00 ad de  ........".......
  backtrace:
    [<ffffffff8176ba8b>] kmem_cache_zalloc include/linux/slab.h:711 [inline]
    [<ffffffff8176ba8b>] ext4_mb_pa_alloc fs/ext4/mballoc.c:4975 [inline]
    [<ffffffff8176ba8b>] ext4_mb_new_blocks+0xd5b/0x18b0 fs/ext4/mballoc.c:5510
    [<ffffffff8172709d>] ext4_ext_map_blocks+0xdfd/0x28f0 fs/ext4/extents.c:4245
    [<ffffffff81749de3>] ext4_map_blocks+0x333/0xb10 fs/ext4/inode.c:638
    [<ffffffff81750de2>] mpage_map_one_extent fs/ext4/inode.c:2395 [inline]
    [<ffffffff81750de2>] mpage_map_and_submit_extent fs/ext4/inode.c:2448 [inline]
    [<ffffffff81750de2>] ext4_writepages+0xc82/0x19c0 fs/ext4/inode.c:2800
    [<ffffffff81451dfa>] do_writepages+0x4a/0x120 mm/page-writeback.c:2355
    [<ffffffff815c078e>] __writeback_single_inode+0x6e/0x520 fs/fs-writeback.c:1613
    [<ffffffff815c1304>] writeback_sb_inodes+0x2d4/0x710 fs/fs-writeback.c:1878
    [<ffffffff815c179b>] __writeback_inodes_wb+0x5b/0x150 fs/fs-writeback.c:1947
    [<ffffffff815c1cc3>] wb_writeback+0x433/0x4a0 fs/fs-writeback.c:2053
    [<ffffffff815c377a>] wb_check_old_data_flush fs/fs-writeback.c:2155 [inline]
    [<ffffffff815c377a>] wb_do_writeback fs/fs-writeback.c:2208 [inline]
    [<ffffffff815c377a>] wb_workfn+0x3fa/0x760 fs/fs-writeback.c:2237
    [<ffffffff812626b9>] process_one_work+0x2c9/0x610 kernel/workqueue.c:2276
    [<ffffffff81262fa9>] worker_thread+0x59/0x5d0 kernel/workqueue.c:2422
    [<ffffffff8126c408>] kthread+0x188/0x1d0 kernel/kthread.c:319
    [<ffffffff810022cf>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

BUG: memory leak
unreferenced object 0xffff8881136d6478 (size 104):
  comm "kworker/u4:3", pid 1955, jiffies 4294943376 (age 403.530s)
  hex dump (first 32 bytes):
    80 25 ff 11 81 88 ff ff 22 01 00 00 00 00 ad de  .%......".......
    00 01 00 00 00 00 ad de 22 01 00 00 00 00 ad de  ........".......
  backtrace:
    [<ffffffff8176ba8b>] kmem_cache_zalloc include/linux/slab.h:711 [inline]
    [<ffffffff8176ba8b>] ext4_mb_pa_alloc fs/ext4/mballoc.c:4975 [inline]
    [<ffffffff8176ba8b>] ext4_mb_new_blocks+0xd5b/0x18b0 fs/ext4/mballoc.c:5510
    [<ffffffff8172709d>] ext4_ext_map_blocks+0xdfd/0x28f0 fs/ext4/extents.c:4245
    [<ffffffff81749de3>] ext4_map_blocks+0x333/0xb10 fs/ext4/inode.c:638
    [<ffffffff81750de2>] mpage_map_one_extent fs/ext4/inode.c:2395 [inline]
    [<ffffffff81750de2>] mpage_map_and_submit_extent fs/ext4/inode.c:2448 [inline]
    [<ffffffff81750de2>] ext4_writepages+0xc82/0x19c0 fs/ext4/inode.c:2800
    [<ffffffff81451dfa>] do_writepages+0x4a/0x120 mm/page-writeback.c:2355
    [<ffffffff815c078e>] __writeback_single_inode+0x6e/0x520 fs/fs-writeback.c:1613
    [<ffffffff815c1304>] writeback_sb_inodes+0x2d4/0x710 fs/fs-writeback.c:1878
    [<ffffffff815c179b>] __writeback_inodes_wb+0x5b/0x150 fs/fs-writeback.c:1947
    [<ffffffff815c1cc3>] wb_writeback+0x433/0x4a0 fs/fs-writeback.c:2053
    [<ffffffff815c377a>] wb_check_old_data_flush fs/fs-writeback.c:2155 [inline]
    [<ffffffff815c377a>] wb_do_writeback fs/fs-writeback.c:2208 [inline]
    [<ffffffff815c377a>] wb_workfn+0x3fa/0x760 fs/fs-writeback.c:2237
    [<ffffffff812626b9>] process_one_work+0x2c9/0x610 kernel/workqueue.c:2276
    [<ffffffff81262fa9>] worker_thread+0x59/0x5d0 kernel/workqueue.c:2422
    [<ffffffff8126c408>] kthread+0x188/0x1d0 kernel/kthread.c:319
    [<ffffffff810022cf>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

BUG: memory leak
unreferenced object 0xffff8881136d64e0 (size 104):
  comm "kworker/u4:3", pid 1955, jiffies 4294943376 (age 403.540s)
  hex dump (first 32 bytes):
    58 38 ff 11 81 88 ff ff 22 01 00 00 00 00 ad de  X8......".......
    00 01 00 00 00 00 ad de 22 01 00 00 00 00 ad de  ........".......
  backtrace:
    [<ffffffff8176ba8b>] kmem_cache_zalloc include/linux/slab.h:711 [inline]
    [<ffffffff8176ba8b>] ext4_mb_pa_alloc fs/ext4/mballoc.c:4975 [inline]
    [<ffffffff8176ba8b>] ext4_mb_new_blocks+0xd5b/0x18b0 fs/ext4/mballoc.c:5510
    [<ffffffff8172709d>] ext4_ext_map_blocks+0xdfd/0x28f0 fs/ext4/extents.c:4245
    [<ffffffff81749de3>] ext4_map_blocks+0x333/0xb10 fs/ext4/inode.c:638
    [<ffffffff81750de2>] mpage_map_one_extent fs/ext4/inode.c:2395 [inline]
    [<ffffffff81750de2>] mpage_map_and_submit_extent fs/ext4/inode.c:2448 [inline]
    [<ffffffff81750de2>] ext4_writepages+0xc82/0x19c0 fs/ext4/inode.c:2800
    [<ffffffff81451dfa>] do_writepages+0x4a/0x120 mm/page-writeback.c:2355
    [<ffffffff815c078e>] __writeback_single_inode+0x6e/0x520 fs/fs-writeback.c:1613
    [<ffffffff815c1304>] writeback_sb_inodes+0x2d4/0x710 fs/fs-writeback.c:1878
    [<ffffffff815c179b>] __writeback_inodes_wb+0x5b/0x150 fs/fs-writeback.c:1947
    [<ffffffff815c1cc3>] wb_writeback+0x433/0x4a0 fs/fs-writeback.c:2053
    [<ffffffff815c377a>] wb_check_old_data_flush fs/fs-writeback.c:2155 [inline]
    [<ffffffff815c377a>] wb_do_writeback fs/fs-writeback.c:2208 [inline]
    [<ffffffff815c377a>] wb_workfn+0x3fa/0x760 fs/fs-writeback.c:2237
    [<ffffffff812626b9>] process_one_work+0x2c9/0x610 kernel/workqueue.c:2276
    [<ffffffff81262fa9>] worker_thread+0x59/0x5d0 kernel/workqueue.c:2422
    [<ffffffff8126c408>] kthread+0x188/0x1d0 kernel/kthread.c:319
    [<ffffffff810022cf>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

BUG: memory leak
unreferenced object 0xffff8881202059c0 (size 192):
  comm "systemd-journal", pid 4860, jiffies 4294980026 (age 37.100s)
  hex dump (first 32 bytes):
    44 80 00 00 06 00 00 00 48 25 dd 0e 81 88 ff ff  D.......H%......
    00 00 00 00 00 00 00 00 40 52 30 20 81 88 ff ff  ........@R0 ....
  backtrace:
    [<ffffffff8159383a>] __d_alloc+0x2a/0x270 fs/dcache.c:1744
    [<ffffffff81593aa5>] d_alloc+0x25/0xd0 fs/dcache.c:1823
    [<ffffffff8159889b>] d_alloc_parallel+0x6b/0x920 fs/dcache.c:2575
    [<ffffffff8157c737>] __lookup_slow+0x77/0x1f0 fs/namei.c:1631
    [<ffffffff815815e2>] lookup_slow fs/namei.c:1663 [inline]
    [<ffffffff815815e2>] walk_component+0x1f2/0x2a0 fs/namei.c:1959
    [<ffffffff81581dd6>] lookup_last fs/namei.c:2414 [inline]
    [<ffffffff81581dd6>] path_lookupat+0xc6/0x330 fs/namei.c:2438
    [<ffffffff815860af>] filename_lookup+0xff/0x2a0 fs/namei.c:2467
    [<ffffffff8155e885>] user_path_at include/linux/namei.h:57 [inline]
    [<ffffffff8155e885>] do_faccessat+0xd5/0x450 fs/open.c:425
    [<ffffffff843b1915>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff843b1915>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84400068>] entry_SYSCALL_64_after_hwframe+0x44/0xae

[  

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/28 04:54 upstream 7d549995d4e0 17d6ab15 .config console log report syz ci-upstream-gce-leak memory leak in ext4_mb_new_blocks
2021/07/03 14:48 upstream 3dbdb38e2869 55aa55c2 .config console log report syz ci-upstream-gce-leak memory leak in ext4_mb_new_blocks
* Struck through repros no longer work on HEAD.