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=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 CD44AC433E0 for ; Wed, 3 Feb 2021 03:59:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F5F664F72 for ; Wed, 3 Feb 2021 03:59:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231564AbhBCD7G (ORCPT ); Tue, 2 Feb 2021 22:59:06 -0500 Received: from mail-io1-f72.google.com ([209.85.166.72]:40710 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231398AbhBCD7E (ORCPT ); Tue, 2 Feb 2021 22:59:04 -0500 Received: by mail-io1-f72.google.com with SMTP id x26so20708442ior.7 for ; Tue, 02 Feb 2021 19:58:48 -0800 (PST) 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:in-reply-to:message-id:subject :from:to; bh=wXlcTMxuXTA9JnopaVEiXLjgbf8SiWAZS7qkL4vEMcM=; b=L37ILyOc3WtZOvr/IDLc+fP6ypQx9NxJSvwgkwy/yCPEEZYRp0qdDqzxKGseXmFFlg rHm7YsXhUs5OYHiYpfNbzdx01e7dU6f9yQ/47qRz9uqT/oSM47i66OJR1ENfupDAPld+ Gs+TszJAqQZrh4VP9Ob6oax/WVeEyQiZebgQNcssWLsJdYJzUzuiGLS/Kj+p1RdK4YYv Tlb9M0NVjXNofk6H55ySiBt4rkVVxxnltLofYdH16SFIEIN5Fve+VOLIuQYQ03ibzXno y4iWlrREZBOVJqF4eZdecKgzmnY87iU/weQbaEMuCyg76paUQB5iPo3824OG2qiBWj4i 5H3A== X-Gm-Message-State: AOAM531Ic9aX26Dk6monovsv3DMakufP/YynzsWOZzMxdJ8aoatKRPNi D8IAbmcwmTIcaa2Uul5w5ottWPGNZKlg+gz9X2o0q2eAlxEf X-Google-Smtp-Source: ABdhPJyotqswEP2/6Ey2ejcag/c/3KutI/stJYeOOKtD16yPleM3f0WixEdK7LIQjSXpFFiYxYJ3svYd4/P5EjuRVH4SkEk+bnVy MIME-Version: 1.0 X-Received: by 2002:a92:1e12:: with SMTP id e18mr1154706ile.270.1612324703619; Tue, 02 Feb 2021 19:58:23 -0800 (PST) Date: Tue, 02 Feb 2021 19:58:23 -0800 In-Reply-To: <000000000000fef5a905aa76dbf9@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000038d23a05ba66999d@google.com> Subject: Re: memory leak in create_pipe_files From: syzbot To: anant.thazhemadam@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 3aaf0a27 Merge tag 'clang-format-for-linux-v5.11-rc7' of g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15d87364d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=b7edd79f26f7c0c3 dashboard link: https://syzkaller.appspot.com/bug?extid=6a137efd811917e8b53c syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10df828cd00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12c4f2f8d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+6a137efd811917e8b53c@syzkaller.appspotmail.com Warning: Permanently added '10.128.10.43' (ECDSA) to the list of known hosts. executing program executing program BUG: memory leak unreferenced object 0xffff888110f47600 (size 232): comm "kworker/u4:1", pid 8442, jiffies 4294942490 (age 13.540s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 60 2a 04 01 81 88 ff ff 80 2d 37 0f 81 88 ff ff `*.......-7..... backtrace: [<000000007ea4ba2d>] kmem_cache_zalloc include/linux/slab.h:672 [inline] [<000000007ea4ba2d>] __alloc_file+0x1f/0xf0 fs/file_table.c:101 [<00000000cdcab42a>] alloc_empty_file+0x69/0x120 fs/file_table.c:150 [<00000000ca09bf0f>] alloc_file+0x33/0x1b0 fs/file_table.c:192 [<00000000c44b2f75>] alloc_file_pseudo+0xb2/0x140 fs/file_table.c:232 [<00000000a7d8ad8d>] create_pipe_files+0x138/0x2e0 fs/pipe.c:911 [<000000007cde2906>] umd_setup+0x33/0x220 kernel/usermode_driver.c:104 [<00000000566c5ffa>] call_usermodehelper_exec_async+0xb4/0x1b0 kernel/umh.c:101 [<00000000f26cfa20>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 BUG: memory leak unreferenced object 0xffff888113186300 (size 232): comm "kworker/u4:1", pid 8442, jiffies 4294942490 (age 13.540s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 60 2a 04 01 81 88 ff ff 00 d6 13 0f 81 88 ff ff `*.............. backtrace: [<000000007ea4ba2d>] kmem_cache_zalloc include/linux/slab.h:672 [inline] [<000000007ea4ba2d>] __alloc_file+0x1f/0xf0 fs/file_table.c:101 [<00000000cdcab42a>] alloc_empty_file+0x69/0x120 fs/file_table.c:150 [<00000000ca09bf0f>] alloc_file+0x33/0x1b0 fs/file_table.c:192 [<0000000053d2fba9>] alloc_file_clone+0x22/0x70 fs/file_table.c:244 [<000000002475fc17>] create_pipe_files+0x182/0x2e0 fs/pipe.c:922 [<00000000bcdcee57>] umd_setup+0xad/0x220 kernel/usermode_driver.c:115 [<00000000566c5ffa>] call_usermodehelper_exec_async+0xb4/0x1b0 kernel/umh.c:101 [<00000000f26cfa20>] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296