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 243F3C63793 for ; Thu, 22 Jul 2021 06:12:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0051161264 for ; Thu, 22 Jul 2021 06:12:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbhGVFbm (ORCPT ); Thu, 22 Jul 2021 01:31:42 -0400 Received: from mail-io1-f71.google.com ([209.85.166.71]:46992 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbhGVFbm (ORCPT ); Thu, 22 Jul 2021 01:31:42 -0400 Received: by mail-io1-f71.google.com with SMTP id a24-20020a5d95580000b029044cbcdddd23so3290577ios.13 for ; Wed, 21 Jul 2021 23:12:17 -0700 (PDT) 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=zd5EMJMxH832+tT0bxAQpl6QF9px5miSg1moPe7RgLE=; b=gDQx7wlP6YrHN3rTy763sGs6iHaZcE42kbu2+tdShobLRJdKpxOLf7mZPiSXleAcgn qneO5A0KkTuLIGBgbsqYoWUfv93qiHQg7cHzIK2pGHQU2qrCoub0qwpw06oK6NMw6bEZ hYYYaj/smjCssxjK3qG0pXMBjUxfLvyuFm4UpezrCbB3idx7CdTrQWKul5/GcrsOS514 U+NJ0GA1iP81uzPfPpxXsfj2bhqUZYy7Bi4aFZVT0ScJ8sOZewK8AaKZbQRrcrvvFYGP WaNERiphvexhrPzrisk8HtuLeTQGxiLyUhbQcEeE+ARthRmUfejeS6NPxHH8Lr8illjM DQ3g== X-Gm-Message-State: AOAM530lN/RhgejlVqqEgTlV1EvTxvaemn7ZhX+VbvEz/u+3lXcGhjQc C1hGD8LuyBynHSTzcqg+gCQdrIGw47fx9cj/ZhU2cKfP4hbu X-Google-Smtp-Source: ABdhPJyGq6K9u578UAGsM/2tYh+oYIElzFL2Rxc/VlZ+OAEzwe6DyBiTQuGigt+er0qLWf3U9vIzzQrSgfu1B4WNNDFqS7plRJ+X MIME-Version: 1.0 X-Received: by 2002:a92:1942:: with SMTP id e2mr27746119ilm.4.1626934337416; Wed, 21 Jul 2021 23:12:17 -0700 (PDT) Date: Wed, 21 Jul 2021 23:12:17 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000041351c05c7b02b15@google.com> Subject: [syzbot] memory leak in reg_copy_regd From: syzbot To: davem@davemloft.net, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: d980cc0620ae Merge tag 'devicetree-fixes-for-5.14-1' of gi.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=142c634a300000 kernel config: https://syzkaller.appspot.com/x/.config?x=7280943fd0476e5a dashboard link: https://syzkaller.appspot.com/bug?extid=1638e7c770eef6b6c0d0 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=131de45a300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=118cea5c300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+1638e7c770eef6b6c0d0@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff888111969200 (size 512): comm "syz-executor817", pid 8828, jiffies 4294955311 (age 19.340s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 05 00 00 00 39 39 00 00 00 00 00 00 d0 a6 24 00 ....99........$. backtrace: [] kmalloc include/linux/slab.h:596 [inline] [] kzalloc include/linux/slab.h:721 [inline] [] reg_copy_regd+0x30/0x120 net/wireless/reg.c:444 [] wiphy_apply_custom_regulatory+0x101/0x1a0 net/wireless/reg.c:2582 [] mac80211_hwsim_new_radio+0x897/0x1300 drivers/net/wireless/mac80211_hwsim.c:3344 [] hwsim_new_radio_nl+0x425/0x5f0 drivers/net/wireless/mac80211_hwsim.c:3924 [] genl_family_rcv_msg_doit+0x113/0x180 net/netlink/genetlink.c:739 [] genl_family_rcv_msg net/netlink/genetlink.c:783 [inline] [] genl_rcv_msg+0x174/0x2c0 net/netlink/genetlink.c:800 [] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2504 [] genl_rcv+0x24/0x40 net/netlink/genetlink.c:811 [] netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] [] netlink_unicast+0x392/0x4c0 net/netlink/af_netlink.c:1340 [] netlink_sendmsg+0x36b/0x6b0 net/netlink/af_netlink.c:1929 [] sock_sendmsg_nosec net/socket.c:703 [inline] [] sock_sendmsg+0x56/0x80 net/socket.c:723 [] ____sys_sendmsg+0x36c/0x390 net/socket.c:2392 [] ___sys_sendmsg+0x8b/0xd0 net/socket.c:2446 [] __sys_sendmsg+0x88/0x100 net/socket.c:2475 [] 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+0x44/0xae --- 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