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=-0.4 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 3DE79C2BA83 for ; Fri, 14 Feb 2020 17:37:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 25D8422314 for ; Fri, 14 Feb 2020 17:37:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390335AbgBNRhQ (ORCPT ); Fri, 14 Feb 2020 12:37:16 -0500 Received: from mail-io1-f69.google.com ([209.85.166.69]:51568 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390294AbgBNRhP (ORCPT ); Fri, 14 Feb 2020 12:37:15 -0500 Received: by mail-io1-f69.google.com with SMTP id c7so7174538ioq.18 for ; Fri, 14 Feb 2020 09:37:15 -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:message-id:subject:from:to; bh=5F+xFY1+W/Hlac79V6ZobQB/3n68BJuYvhyjKZywEuE=; b=skfRWV0psUl2TFaFHXuLqXHr2DTt+be37Q6bnCycxdyI3lT8/VhSta1iKMPfnPN7sG TaKSypvZTHCwlaJtgK4CpIij5vd1lna20q7yzQD+BzOP9I+Krc/AmyOJsfUbp1brVsLz +mMU0LvX3cOV8IhCE85Gt1mg/ogGn/mNadi2SaYEPuXNvRxC4WJcII6QPih6/5mQZiIz ckeu67EoM5kqja4h/75ZRU5wuf9/R/5ocOBtu+uz1GFhLp8BzSzlxphQ+GUWDg2bJgaQ Gd3inKJAfiQL40hYlWqK3Jq8nvY7xNMg4AxVSUJXxQVaRA9PoerXxOsXeqYfu0T6rHol w6yw== X-Gm-Message-State: APjAAAWA+56YwB33Mo6igOY5JoCrhAaApyLXOMe6QFvYSJVCvKkL3+z9 5lmzB32SM7MW5gTJwpF1xPKvOtJjJ3HiN93Ea2DqTk/LJfjK X-Google-Smtp-Source: APXvYqzbsVvDyxQKl/xehVX2UF3KhAqgullVm/2J57JdImUF93XtDZ+eMr3+hVL6v2CdR9bVBWDbK4C1e7Qgu2QNh0RvlyELRwjj MIME-Version: 1.0 X-Received: by 2002:a02:8587:: with SMTP id d7mr3471135jai.39.1581701834636; Fri, 14 Feb 2020 09:37:14 -0800 (PST) Date: Fri, 14 Feb 2020 09:37:14 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000fe87be059e8ca7bc@google.com> Subject: memory leak in nfs_fs_context_parse_monolithic From: syzbot To: anna.schumaker@netapp.com, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, syzkaller-bugs@googlegroups.com, trond.myklebust@hammerspace.com Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 0bf999f9 linux/pipe_fs_i.h: fix kernel-doc warnings after .. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1589bd4ee00000 kernel config: https://syzkaller.appspot.com/x/.config?x=2802e33434f4f863 dashboard link: https://syzkaller.appspot.com/bug?extid=193c375dcddb4f345091 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13dec65ee00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14c05311e00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+193c375dcddb4f345091@syzkaller.appspotmail.com executing program BUG: memory leak unreferenced object 0xffff8881166b3ac0 (size 32): comm "syz-executor191", pid 7127, jiffies 4294946216 (age 12.850s) hex dump (first 32 bytes): 00 66 73 00 00 00 00 00 00 00 00 00 00 00 00 00 .fs............. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000006202a794>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline] [<000000006202a794>] slab_post_alloc_hook mm/slab.h:586 [inline] [<000000006202a794>] slab_alloc mm/slab.c:3320 [inline] [<000000006202a794>] __do_kmalloc mm/slab.c:3654 [inline] [<000000006202a794>] __kmalloc_track_caller+0x165/0x300 mm/slab.c:3671 [<000000007e324303>] kstrdup+0x3a/0x70 mm/util.c:60 [<000000002835aac3>] nfs23_parse_monolithic fs/nfs/fs_context.c:958 [inline] [<000000002835aac3>] nfs_fs_context_parse_monolithic+0x5cf/0x8f0 fs/nfs/fs_context.c:1147 [<000000004fe3f934>] parse_monolithic_mount_data+0x37/0x40 fs/fs_context.c:679 [<00000000dccb779f>] do_new_mount fs/namespace.c:2818 [inline] [<00000000dccb779f>] do_mount+0x945/0xc80 fs/namespace.c:3107 [<000000006234487e>] __do_sys_mount fs/namespace.c:3316 [inline] [<000000006234487e>] __se_sys_mount fs/namespace.c:3293 [inline] [<000000006234487e>] __x64_sys_mount+0xc0/0x140 fs/namespace.c:3293 [<00000000d2937fdd>] do_syscall_64+0x73/0x220 arch/x86/entry/common.c:294 [<00000000fa6ba8f3>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches