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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6308DC433F5 for ; Tue, 4 Oct 2022 08:50:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230272AbiJDIuA (ORCPT ); Tue, 4 Oct 2022 04:50:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbiJDIto (ORCPT ); Tue, 4 Oct 2022 04:49:44 -0400 Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2014B6477 for ; Tue, 4 Oct 2022 01:49:43 -0700 (PDT) Received: by mail-il1-f198.google.com with SMTP id h10-20020a056e021d8a00b002f99580de6cso5614804ila.5 for ; Tue, 04 Oct 2022 01:49:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=VBeaHDpdMW1szRoAus88zuJw4xnVO7SqiCfgFw2DXwo=; b=n/5b3du8kYZDhB6CQlwGfDp7rutkWHZarNyzjuHWWUUSLQLt1ZDVLhECNnl9Cmgz5b CRjYeOUh1HMQp2Sk4qipSfG9g35SP6ISZ47MatYY7ROBtVvcjlkd8XTqb5wiGvdG8D3f pLeHrCIG4vqMQjcBZFbpla6c6eo9hdgd7Qeaz+gNwWkbJUEfKOytvPQM2bia+OMy9zAt rTfoyC7R95h8i4PM6quzj1KV4J7A22foIyI8+l3jwl0cavvbqo0seUODw7F4Hg2UjkOy 2tnb2U4HFTI6wUpkyK8Wp0dMXdLVUGNPQExhkNyEsLD2TNkeskmOdzbglOsv/LHj4+zL sjQg== X-Gm-Message-State: ACrzQf3+C0U9zKDK1vtBiY5XwryMZVwCa0dIDESVm9SvMYNIzhCQKj+V j+rtUsahXxw1J5aJcoAYHFVK914BiivZDGhZ/F3MsAtYX0ef X-Google-Smtp-Source: AMsMyM46aFwfyzGc/e8EUFOd4K5gNimo5H9/+hwlW87B84h1xj8UFd8UKM1UcFjdTVlUV16LAKIj54cV/0aRq6q/xepCv/8l0Mm/ MIME-Version: 1.0 X-Received: by 2002:a05:6e02:18cc:b0:2f1:fcbb:e6e0 with SMTP id s12-20020a056e0218cc00b002f1fcbbe6e0mr11469385ilu.139.1664873382171; Tue, 04 Oct 2022 01:49:42 -0700 (PDT) Date: Tue, 04 Oct 2022 01:49:42 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008a5a2e05ea318aa9@google.com> Subject: [syzbot] memory leak in __get_metapage From: syzbot To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 4fe89d07dcc2 Linux 6.0 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=169a7924880000 kernel config: https://syzkaller.appspot.com/x/.config?x=21254cf9c7c084e0 dashboard link: https://syzkaller.appspot.com/bug?extid=389b82b29093b3e2640a compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10bdd7ec880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/651a252f7035/disk-4fe89d07.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/776feb8e0e5b/vmlinux-4fe89d07.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+389b82b29093b3e2640a@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff888114339e80 (size 128): comm "syz-executor.0", pid 3673, jiffies 4295017005 (age 12.610s) hex dump (first 32 bytes): 00 10 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: [] mempool_alloc+0x73/0x230 mm/mempool.c:392 [] alloc_metapage fs/jfs/jfs_metapage.c:176 [inline] [] __get_metapage+0x38a/0x9b0 fs/jfs/jfs_metapage.c:651 [] diNewExt+0x3f2/0x9d0 fs/jfs/jfs_imap.c:2265 [] diAllocExt fs/jfs/jfs_imap.c:1945 [inline] [] diAllocAG+0x9a4/0xd50 fs/jfs/jfs_imap.c:1662 [] diAlloc+0x31f/0x900 fs/jfs/jfs_imap.c:1583 [] ialloc+0x6a/0x3a0 fs/jfs/jfs_inode.c:56 [] jfs_mkdir+0xf7/0x480 fs/jfs/namei.c:225 [] vfs_mkdir+0x223/0x340 fs/namei.c:4013 [] do_mkdirat+0x1a5/0x1e0 fs/namei.c:4038 [] __do_sys_mkdir fs/namei.c:4058 [inline] [] __se_sys_mkdir fs/namei.c:4056 [inline] [] __x64_sys_mkdir+0x69/0x90 fs/namei.c:4056 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff888114339e00 (size 128): comm "syz-executor.0", pid 3673, jiffies 4295017005 (age 12.610s) hex dump (first 32 bytes): 00 10 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: [] mempool_alloc+0x73/0x230 mm/mempool.c:392 [] alloc_metapage fs/jfs/jfs_metapage.c:176 [inline] [] __get_metapage+0x38a/0x9b0 fs/jfs/jfs_metapage.c:651 [] diNewExt+0x3f2/0x9d0 fs/jfs/jfs_imap.c:2265 [] diAllocExt fs/jfs/jfs_imap.c:1945 [inline] [] diAllocAG+0x9a4/0xd50 fs/jfs/jfs_imap.c:1662 [] diAlloc+0x31f/0x900 fs/jfs/jfs_imap.c:1583 [] ialloc+0x6a/0x3a0 fs/jfs/jfs_inode.c:56 [] jfs_mkdir+0xf7/0x480 fs/jfs/namei.c:225 [] vfs_mkdir+0x223/0x340 fs/namei.c:4013 [] do_mkdirat+0x1a5/0x1e0 fs/namei.c:4038 [] __do_sys_mkdir fs/namei.c:4058 [inline] [] __se_sys_mkdir fs/namei.c:4056 [inline] [] __x64_sys_mkdir+0x69/0x90 fs/namei.c:4056 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff888114339d80 (size 128): comm "syz-executor.0", pid 3673, jiffies 4295017005 (age 12.610s) hex dump (first 32 bytes): 00 10 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: [] mempool_alloc+0x73/0x230 mm/mempool.c:392 [] alloc_metapage fs/jfs/jfs_metapage.c:176 [inline] [] __get_metapage+0x38a/0x9b0 fs/jfs/jfs_metapage.c:651 [] diNewExt+0x3f2/0x9d0 fs/jfs/jfs_imap.c:2265 [] diAllocExt fs/jfs/jfs_imap.c:1945 [inline] [] diAllocAG+0x9a4/0xd50 fs/jfs/jfs_imap.c:1662 [] diAlloc+0x31f/0x900 fs/jfs/jfs_imap.c:1583 [] ialloc+0x6a/0x3a0 fs/jfs/jfs_inode.c:56 [] jfs_mkdir+0xf7/0x480 fs/jfs/namei.c:225 [] vfs_mkdir+0x223/0x340 fs/namei.c:4013 [] do_mkdirat+0x1a5/0x1e0 fs/namei.c:4038 [] __do_sys_mkdir fs/namei.c:4058 [inline] [] __se_sys_mkdir fs/namei.c:4056 [inline] [] __x64_sys_mkdir+0x69/0x90 fs/namei.c:4056 [] 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+0x63/0xcd BUG: memory leak unreferenced object 0xffff8881142f0300 (size 128): comm "syz-executor.0", pid 3676, jiffies 4295017533 (age 7.330s) hex dump (first 32 bytes): 00 10 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: [] mempool_alloc+0x73/0x230 mm/mempool.c:392 [] alloc_metapage fs/jfs/jfs_metapage.c:176 [inline] [] __get_metapage+0x38a/0x9b0 fs/jfs/jfs_metapage.c:651 [] diNewExt+0x3f2/0x9d0 fs/jfs/jfs_imap.c:2265 [] diAllocExt fs/jfs/jfs_imap.c:1945 [inline] [] diAllocAG+0x9a4/0xd50 fs/jfs/jfs_imap.c:1662 [] diAlloc+0x31f/0x900 fs/jfs/jfs_imap.c:1583 [] ialloc+0x6a/0x3a0 fs/jfs/jfs_inode.c:56 [] jfs_mkdir+0xf7/0x480 fs/jfs/namei.c:225 [] vfs_mkdir+0x223/0x340 fs/namei.c:4013 [] do_mkdirat+0x1a5/0x1e0 fs/namei.c:4038 [] __do_sys_mkdir fs/namei.c:4058 [inline] [] __se_sys_mkdir fs/namei.c:4056 [inline] [] __x64_sys_mkdir+0x69/0x90 fs/namei.c:4056 [] 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+0x63/0xcd --- 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