From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 799E2A48 for ; Tue, 23 Aug 2022 06:18:36 +0000 (UTC) Received: by mail-io1-f71.google.com with SMTP id v14-20020a6b5b0e000000b0067bc967a6c0so6816909ioh.5 for ; Mon, 22 Aug 2022 23:18:36 -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; bh=w7IBh16YCOLSqhh2JLVcXFQTO2VKalGU5Te6z3qBSMc=; b=xid+U+An4ziSb7lwr+6YcMn15TG2PMQzRMejSJDnjP5rNCphneImGkgLz1ergnudJ6 uucFuRCHMS2DrxOEKYRKMG751TZhuCnTCWANPsXForyrEsgZ71/OtgPdWCv2DaK1EMbY DbMS9dITmS8DnZ5pvynubBh7wA3f5PPvEJDEFLPIfXuoNt4Pd5Ay53azeD0xobABQpVG 1RdMN5ZcQGrzGux9lD0sYqb1wARZ6JrYsLnjGHkaDRJmKu2GU0k0ZQ3V37rqlRor9/e0 YZdqEDT8KfEg3H+Qq0JLxk6abNa2IY1w4rUkPOd30BpGmDTLjbeFkRmxA4rbfSluyZfV ABVg== X-Gm-Message-State: ACgBeo0L+VK/gXjaEEhD9qC5j42Nq7dKWZWfubdi9dFkhTrkhowIVT5n UvXJwo9jTVfW2STt1rbIUcbUWSjvsSkFOq0m7t99WImKqZ7s X-Google-Smtp-Source: AA6agR6ZjVfPnVgmZjl23yXcHlr22t2DH/cVcuWLiCkH385YErK52BwMvN4Ge2U5Gj99sViQbuYqE2WhAZKQzNWxEXweKfeCQkaE Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:f04:b0:2e9:be2a:5fac with SMTP id x4-20020a056e020f0400b002e9be2a5facmr4268302ilj.70.1661235515559; Mon, 22 Aug 2022 23:18:35 -0700 (PDT) Date: Mon, 22 Aug 2022 23:18:35 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000cb172905e6e28808@google.com> Subject: [syzbot] memory leak in ntfs_init_fs_context From: syzbot To: almaz.alexandrovich@paragon-software.com, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, nathan@kernel.org, ndesaulniers@google.com, ntfs3@lists.linux.dev, syzkaller-bugs@googlegroups.com, trix@redhat.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 1c23f9e627a7 Linux 6.0-rc2 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16caa92d080000 kernel config: https://syzkaller.appspot.com/x/.config?x=b1831d905b683446 dashboard link: https://syzkaller.appspot.com/bug?extid=9d67170b20e8f94351c8 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=161472f3080000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=145f3e2d080000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+9d67170b20e8f94351c8@syzkaller.appspotmail.com executing program executing program BUG: memory leak unreferenced object 0xffff8881100918a0 (size 32): comm "syz-executor151", pid 3611, jiffies 4294944949 (age 8.110s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 c0 ff c0 ff 00 00 00 00 ................ backtrace: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] ntfs_init_fs_context+0x22/0x1e0 fs/ntfs3/super.c:1397 [] alloc_fs_context+0x225/0x3b0 fs/fs_context.c:290 [] do_new_mount fs/namespace.c:3025 [inline] [] path_mount+0x6f3/0x10d0 fs/namespace.c:3370 [] do_mount fs/namespace.c:3383 [inline] [] __do_sys_mount fs/namespace.c:3591 [inline] [] __se_sys_mount fs/namespace.c:3568 [inline] [] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568 [] 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