From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB186C11F66 for ; Wed, 7 Jul 2021 14:56:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 94A8561CC0 for ; Wed, 7 Jul 2021 14:56:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232116AbhGGO7X (ORCPT ); Wed, 7 Jul 2021 10:59:23 -0400 Received: from mail-io1-f70.google.com ([209.85.166.70]:46787 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232132AbhGGO7K (ORCPT ); Wed, 7 Jul 2021 10:59:10 -0400 Received: by mail-io1-f70.google.com with SMTP id a24-20020a5d95580000b029044cbcdddd23so1820152ios.13 for ; Wed, 07 Jul 2021 07:56:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=Pf6VZ22fSZR5ROkaZ00fSm1pK8614Mu21PT8tzHS51c=; b=EZrh9/bxUIGH2nPifcVRnRKbKRWDxl8do1d2d5XE45ly6br6YV8qP7Coe1OzyXk4lG EMPWKwd8gz5P4SmTrSMUsmA6eKAwPGgAGGpGNCG3vu2R2DeffIaWFicVKV1LU6WR5qOK JQROUkZXmnX4W2AmRWGGujWks2HCsh/wYKJiFdk5b13VgB0wfJp6Z1ZWVyJk5OGNDLxo YmpzLoM1746DrW5B0cuGdxT9WHY+YuYS0fdXiTUJSk+vV6wJ5yuSZ4AIOCTxxasj5yQN HqpS76w/EJGPsTcOpWK5fP8lbPDJ/sp3s6iYPOSeeZcUu5uom7ZEi/X2YsoQ4D0ikWIP kP7g== X-Gm-Message-State: AOAM531SjoI15zTxY852QOHVASUjasQTwfCMKnm3WUL2wophTsiUIA46 qOPVGmoxTRqbvYMclnPQcOvNRDvJZRXNm/C2h3U7lbyodpGd X-Google-Smtp-Source: ABdhPJwTevBzQct6vPdTFoJasDvrx+dANqbV6mTP6CDcfkapYC3Jgi/V2uh5snABDApVmOAA3qTzKl84WyFTHDG72V1O3q9gCiiG MIME-Version: 1.0 X-Received: by 2002:a6b:c707:: with SMTP id x7mr19924666iof.160.1625669602195; Wed, 07 Jul 2021 07:53:22 -0700 (PDT) Date: Wed, 07 Jul 2021 07:53:22 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000029401005c689b36c@google.com> Subject: [syzbot] memory leak in ext4_mb_new_blocks From: syzbot To: adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tytso@mit.edu Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 3dbdb38e Merge branch 'for-5.14' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11f472e4300000 kernel config: https://syzkaller.appspot.com/x/.config?x=55ac6a927d7e3fe9 dashboard link: https://syzkaller.appspot.com/bug?extid=d00808b55445133eca1e syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1258bdfc300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d00808b55445133eca1e@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff888113d82958 (size 104): comm "kworker/u4:0", pid 8, jiffies 4294943328 (age 340.640s) hex dump (first 32 bytes): c0 33 c0 13 81 88 ff ff 22 01 00 00 00 00 ad de .3......"....... 00 01 00 00 00 00 ad de 22 01 00 00 00 00 ad de ........"....... backtrace: [] kmem_cache_zalloc include/linux/slab.h:711 [inline] [] ext4_mb_pa_alloc fs/ext4/mballoc.c:4974 [inline] [] ext4_mb_new_blocks+0xd5b/0x18b0 fs/ext4/mballoc.c:5509 [] ext4_ext_map_blocks+0xdfd/0x28f0 fs/ext4/extents.c:4245 [] ext4_map_blocks+0x333/0xb10 fs/ext4/inode.c:638 [] mpage_map_one_extent fs/ext4/inode.c:2395 [inline] [] mpage_map_and_submit_extent fs/ext4/inode.c:2448 [inline] [] ext4_writepages+0xc82/0x19c0 fs/ext4/inode.c:2800 [] do_writepages+0x4a/0x120 mm/page-writeback.c:2355 [] __writeback_single_inode+0x6e/0x520 fs/fs-writeback.c:1610 [] writeback_sb_inodes+0x2d4/0x710 fs/fs-writeback.c:1875 [] __writeback_inodes_wb+0x5b/0x150 fs/fs-writeback.c:1944 [] wb_writeback+0x433/0x4a0 fs/fs-writeback.c:2050 [] wb_check_old_data_flush fs/fs-writeback.c:2152 [inline] [] wb_do_writeback fs/fs-writeback.c:2205 [inline] [] wb_workfn+0x3fa/0x760 fs/fs-writeback.c:2234 [] process_one_work+0x2c9/0x610 kernel/workqueue.c:2276 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2422 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff888113d82a28 (size 104): comm "kworker/u4:0", pid 8, jiffies 4294943328 (age 340.640s) hex dump (first 32 bytes): d8 08 c1 13 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: [] kmem_cache_zalloc include/linux/slab.h:711 [inline] [] ext4_mb_pa_alloc fs/ext4/mballoc.c:4974 [inline] [] ext4_mb_new_blocks+0xd5b/0x18b0 fs/ext4/mballoc.c:5509 [] ext4_ext_map_blocks+0xdfd/0x28f0 fs/ext4/extents.c:4245 [] ext4_map_blocks+0x333/0xb10 fs/ext4/inode.c:638 [] mpage_map_one_extent fs/ext4/inode.c:2395 [inline] [] mpage_map_and_submit_extent fs/ext4/inode.c:2448 [inline] [] ext4_writepages+0xc82/0x19c0 fs/ext4/inode.c:2800 [] do_writepages+0x4a/0x120 mm/page-writeback.c:2355 [] __writeback_single_inode+0x6e/0x520 fs/fs-writeback.c:1610 [] writeback_sb_inodes+0x2d4/0x710 fs/fs-writeback.c:1875 [] __writeback_inodes_wb+0x5b/0x150 fs/fs-writeback.c:1944 [] wb_writeback+0x433/0x4a0 fs/fs-writeback.c:2050 [] wb_check_old_data_flush fs/fs-writeback.c:2152 [inline] [] wb_do_writeback fs/fs-writeback.c:2205 [inline] [] wb_workfn+0x3fa/0x760 fs/fs-writeback.c:2234 [] process_one_work+0x2c9/0x610 kernel/workqueue.c:2276 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2422 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff888113d82a90 (size 104): comm "kworker/u4:0", pid 8, jiffies 4294943328 (age 340.640s) hex dump (first 32 bytes): b0 1d c1 13 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: [] kmem_cache_zalloc include/linux/slab.h:711 [inline] [] ext4_mb_pa_alloc fs/ext4/mballoc.c:4974 [inline] [] ext4_mb_new_blocks+0xd5b/0x18b0 fs/ext4/mballoc.c:5509 [] ext4_ext_map_blocks+0xdfd/0x28f0 fs/ext4/extents.c:4245 [] ext4_map_blocks+0x333/0xb10 fs/ext4/inode.c:638 [] mpage_map_one_extent fs/ext4/inode.c:2395 [inline] [] mpage_map_and_submit_extent fs/ext4/inode.c:2448 [inline] [] ext4_writepages+0xc82/0x19c0 fs/ext4/inode.c:2800 [] do_writepages+0x4a/0x120 mm/page-writeback.c:2355 [] __writeback_single_inode+0x6e/0x520 fs/fs-writeback.c:1610 [] writeback_sb_inodes+0x2d4/0x710 fs/fs-writeback.c:1875 [] __writeback_inodes_wb+0x5b/0x150 fs/fs-writeback.c:1944 [] wb_writeback+0x433/0x4a0 fs/fs-writeback.c:2050 [] wb_check_old_data_flush fs/fs-writeback.c:2152 [inline] [] wb_do_writeback fs/fs-writeback.c:2205 [inline] [] wb_workfn+0x3fa/0x760 fs/fs-writeback.c:2234 [] process_one_work+0x2c9/0x610 kernel/workqueue.c:2276 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2422 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff888123294558 (size 1176): comm "syz-executor.1", pid 8467, jiffies 4294969731 (age 76.670s) hex dump (first 32 bytes): 0a f3 00 00 04 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: [] ext4_alloc_inode+0x19/0x1a0 fs/ext4/super.c:1281 [] alloc_inode+0x27/0x100 fs/inode.c:233 [] new_inode_pseudo fs/inode.c:934 [inline] [] new_inode+0x23/0x100 fs/inode.c:963 [] __ext4_new_inode+0x127/0x26d0 fs/ext4/ialloc.c:958 [] ext4_mkdir+0x1ef/0x550 fs/ext4/namei.c:2921 [] vfs_mkdir+0x258/0x330 fs/namei.c:3813 [] do_mkdirat+0x1a5/0x1f0 fs/namei.c:3838 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 401.478399][ C --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches