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 A815FC00140 for ; Fri, 12 Aug 2022 17:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239376AbiHLREa (ORCPT ); Fri, 12 Aug 2022 13:04:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238785AbiHLRE1 (ORCPT ); Fri, 12 Aug 2022 13:04:27 -0400 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE40B14E1 for ; Fri, 12 Aug 2022 10:04:26 -0700 (PDT) Received: by mail-il1-f200.google.com with SMTP id i12-20020a056e021d0c00b002df2d676974so943659ila.5 for ; Fri, 12 Aug 2022 10:04:26 -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=OucfZo6bVXb/CmNvLXiX7ZiXfaSuQBZNkZAXzjRTZBU=; b=VG8mX6RoiNgA4jAqBIn4xlV0OlWh+Kp0QFFxBheW7mT1xllOJm79+7scIedKc5ktEw sDdSfzVea10j9wrH8dODg5frdU9iRG3Gs261qvvTHk+14NF70wIizWfpAdBD2/DsSK0+ EXAGe+QAKuBiw2ZXnR8Bumxs+sFgJfDsiB5xmgPnCWCVG88fSQwr88Y/jN2N9ShWHfiV 9p0VKmspFGYzxBGP7hLpK6KoefDYyvDSQqgIo+dkznOCVOfSMW09dGXRQgLBMYSUBt5x DPO88L4dA5BiTQoS9BEyisd6oFhNAp3BpmvHWhdG4EQLlTCXGXWHcCvw0sqCfuPb+ly+ 3sWw== X-Gm-Message-State: ACgBeo2XWVCT3bjI6eWhiWAYbrovJVKbS05mOkD7zDUeFoh+mlCd2mTK arpiW0UiLdhAOTN1EWD5wJKLLBhmdFFrUHxr/+W9HkXFkauI X-Google-Smtp-Source: AA6agR5HWmeytSdzRgCgeULhsaPpv91UfKL6B8MwYexprhotbMy5bkGj4e3ws5EVzW2GuZhBp7h8YINzcUmzrNzO0KTy32T3c1+V MIME-Version: 1.0 X-Received: by 2002:a05:6638:595:b0:343:3759:b245 with SMTP id a21-20020a056638059500b003433759b245mr2448450jar.180.1660323866068; Fri, 12 Aug 2022 10:04:26 -0700 (PDT) Date: Fri, 12 Aug 2022 10:04:26 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000003fcafc05e60e466e@google.com> Subject: [syzbot] memory leak in netlink_policy_dump_add_policy From: syzbot To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, 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: 4e23eeebb2e5 Merge tag 'bitmap-6.0-rc1' of https://github... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=165f4f6a080000 kernel config: https://syzkaller.appspot.com/x/.config?x=3a433c7a2539f51c dashboard link: https://syzkaller.appspot.com/bug?extid=dc54d9ba8153b216cae0 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=1443be71080000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11e5918e080000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+dc54d9ba8153b216cae0@syzkaller.appspotmail.com executing program executing program executing program BUG: memory leak unreferenced object 0xffff888113093f00 (size 192): comm "syz-executor228", pid 3636, jiffies 4294947950 (age 12.750s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 0a 00 00 00 00 00 00 00 ................ 40 53 fd 84 ff ff ff ff 40 01 00 00 00 00 00 00 @S......@....... backtrace: [] kmalloc include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] alloc_state net/netlink/policy.c:104 [inline] [] netlink_policy_dump_add_policy+0x198/0x1f0 net/netlink/policy.c:135 [] ctrl_dumppolicy_start+0x15d/0x290 net/netlink/genetlink.c:1173 [] genl_start+0x148/0x210 net/netlink/genetlink.c:596 [] __netlink_dump_start+0x20a/0x440 net/netlink/af_netlink.c:2370 [] genl_family_rcv_msg_dumpit+0x15e/0x190 net/netlink/genetlink.c:678 [] genl_family_rcv_msg net/netlink/genetlink.c:772 [inline] [] genl_rcv_msg+0x225/0x2c0 net/netlink/genetlink.c:792 [] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2501 [] genl_rcv+0x24/0x40 net/netlink/genetlink.c:803 [] netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] [] netlink_unicast+0x397/0x4c0 net/netlink/af_netlink.c:1345 [] netlink_sendmsg+0x396/0x710 net/netlink/af_netlink.c:1921 [] sock_sendmsg_nosec net/socket.c:714 [inline] [] sock_sendmsg+0x56/0x80 net/socket.c:734 [] ____sys_sendmsg+0x36c/0x390 net/socket.c:2482 [] ___sys_sendmsg+0xa8/0x110 net/socket.c:2536 [] __sys_sendmsg+0x88/0x100 net/socket.c:2565 [] 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