Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp199671rwb; Tue, 4 Oct 2022 02:46:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4HUCiUp56us7wllcGVfSzugrI/NkOYsa6OX5uoTNy++uyRojgQAv/xuc6AFaZTjBsU3BNg X-Received: by 2002:a17:907:9715:b0:787:751a:90a4 with SMTP id jg21-20020a170907971500b00787751a90a4mr18185533ejc.279.1664876819660; Tue, 04 Oct 2022 02:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664876819; cv=none; d=google.com; s=arc-20160816; b=HNuuefmtNlBGlJMx555SP4kHiqGu7rAOAkKghnFW9uoDSdDIAay+HU3P+NSDQ0FtHD dJueYo9stli4tdtDI8Pr+uStYEVEfPtQDws7Rt/yX9ps+rKrRk7/RR3Qj3dRjS+pgaYY CqpkQrlK4X1bzfYU2P0CS/ArcgnS3ntHK9oEKTfU/0zUVAD5KHOZZf+TmOeItige99ga xvnGO86DrSOLJt+Rvq5Vuzrmd7wxe8n7GNYtYnf+gBPaOxKEMCXSb/Jipe2Svn3y0EJC Tcr1AesDRRdXyaWd84cj+yjeX8heHoHXGHhjv9zKbP7PRvUj8JqP5Gn3eFTI+S+R1JVt SVmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kDenzrDIARPlIFnV/nyFXpagvMf5CwxL44CV5BFQmi4=; b=rnuRXw0rn5iCkx1aSo0b7WIxVnbEIF4kBmfTRLVOSUnUPus4d1Ulq0p2DaEoImz60b TMVY8rxKFUs5HKcA4P+k+HnHV6tRBZeLA5sbcqFz66KHGJpa4Cd6mtJzNu7aqyWxRbmJ CvQWT6C+OdTuseVCo+yORfb7bQnak0RfPwDQM4StujIl8VtvPSrbi1Bz4bKdTlhNwWn3 6md/RgWoCwiPb6qAawdDfvKoRv4P3mwIWv2XLIFMccW3mbo+MTpAnd4PrGsgI5HTrcsx iplqr5rd4KkqNDsKfLtGwnt3p6xvYd7PDCaDvTFkUiUqom7V+JifgGUu91cGmO6sj5lE adkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=F4fUs4Wo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb9-20020a170907160900b0073d2fa02149si11036384ejc.553.2022.10.04.02.46.34; Tue, 04 Oct 2022 02:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=F4fUs4Wo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbiJDIxJ (ORCPT + 99 others); Tue, 4 Oct 2022 04:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbiJDIxC (ORCPT ); Tue, 4 Oct 2022 04:53:02 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 856204D25E for ; Tue, 4 Oct 2022 01:52:57 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id bn8so1111347ljb.6 for ; Tue, 04 Oct 2022 01:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=kDenzrDIARPlIFnV/nyFXpagvMf5CwxL44CV5BFQmi4=; b=F4fUs4Wo9QkEi/UEz1G8ClkzIUELjTUhWSTaMYZ8Itiqd5/Z25F20wPpE5s/2MEWrv uzD42FNDJqM2XE9U0KaaWNavDcECN0Zlk0IxQqq4Rtuvo45tMVh9ndV2DX+iJDWXlxfT iYUe7TNZMjYcQeQdtEl2ccaSX9Vxx1llJ6/Leg5iJPAa2q7WQtvZ626Gl9i20asMiC87 kKxjfie9SbqyCI+YPk4/912godPGAsKK7ntj8t0dNH/6VZqIkVvdMrquhQs7Wyoz92O4 VYbQdqDXHlH7XqU1xvzsAPVFFjmAiDWj28rvK+L6iSyoSDpNB3kOomGUDlw4ovNb2r4i vcrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=kDenzrDIARPlIFnV/nyFXpagvMf5CwxL44CV5BFQmi4=; b=kZWGrZ/RvhSzxEklg5iV4KzYF8km6BFGTWXBa4jJW3s4NQD+/xAgznm+Ys2Fc/omo3 C4fXqmSeiNtCTl29I/YjcgJvfCEn9AGU00Bn/3QFWo+TNWZXPTVZFGPRuSuIA4WSntGU 4O8u7b7SbWWhjSUtalpn+SAH1Ue0180dgwdxqiHanzzjiUHUiWj3+/C2FML2MfCQJpIj AuKgPvxG7hViz/JFamUZAmmyRWiF1TvhS9//A33EQXSAUYK9cNDifxfvOikuHNL4yote tmNc2lzlK2NxYERFTcsp/7cS4PCxaoYkqiwsaEB3Db/zdPuxfW6Vo5guhkY+3Bpma3tn d9Lw== X-Gm-Message-State: ACrzQf1tpyi49VAFGJWrSha3/rPjN0L3rea8SnrOrOgPmHrvhG2ugs4q LlmKY0DwWuaxVhvsiE3NjmM1xEn7ixsGLmLVb8MZFvYeUo8= X-Received: by 2002:a2e:a7cc:0:b0:26c:ea51:1448 with SMTP id x12-20020a2ea7cc000000b0026cea511448mr8058031ljp.47.1664873574867; Tue, 04 Oct 2022 01:52:54 -0700 (PDT) MIME-Version: 1.0 References: <0000000000008a5a2e05ea318aa9@google.com> In-Reply-To: <0000000000008a5a2e05ea318aa9@google.com> From: Dmitry Vyukov Date: Tue, 4 Oct 2022 10:52:43 +0200 Message-ID: Subject: Re: [syzbot] memory leak in __get_metapage To: syzbot , shaggy@kernel.org, jfs-discussion@lists.sourceforge.net Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Oct 2022 at 10:49, syzbot wrote: > > 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] +jfs maintainers > [] __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 > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/0000000000008a5a2e05ea318aa9%40google.com.