Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7197010rwi; Mon, 24 Oct 2022 11:04:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM680/kcJm0LQyvB/6dfHyKJwfE7xIadSbYcE1WD/VBIMeCYx3W3nRlSMi1QsolbEQZX2LWb X-Received: by 2002:a17:902:d492:b0:186:970f:57dd with SMTP id c18-20020a170902d49200b00186970f57ddmr10894468plg.86.1666634690355; Mon, 24 Oct 2022 11:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666634690; cv=none; d=google.com; s=arc-20160816; b=p5aWnicZjCO4Zo2NBpLiYy0/kzEr8Y4XBuHUCQMy8CCXSqYOAREYwbXYlFUDThoP/x A5upnSg/GDBMJOGaL3bHdpTrXlrQRVOEVhshtwkHqAFz4eH00jZbmT7I2QKcRgAuaBg6 42LeG1KpDptojh6g0G8X1ym4uBtXV4vL8oQJVpWf9QDmhqRA8sA3S8BVziR7wGexbziB s4oCcLwKiJp8NPJ8Odn9Sd1eedWRmrQ1guCl5mAoZt0MPyDXOaqQBPlSV5uohGKpudP6 /OJY/XcYYdw0dLWz9SPVaQ+7q2xbv9jrWvW8iy6d/Ft/0Prc+Gdm4wchlHkxnOM5YsFT t41w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=lb+LQ2K08rAb3t0rKlKNkf0GAL9zHh/qpN8CoY0pM2E=; b=pG/BHKXecnwlIEUKSFXQqRbBMNgyjSTrjQyXT1Qilzh96X7nfKGW+SMw5YYxuavkU6 bM0BmUN3F2IGjPTNfsjpioOOmt1gdpMJdOotPozeCXrMTsmwZ7m76WHPmOE6MeVz9CLQ 1EFjFK+HfDi63hAzSyGMroDcLaONznMwNFDbefycTNiFudjCgBp1PnKacr1PV9XNba0r pjmetbBPxza9AWeA7zmhafGiRuv9+3NDV9oW1/+C50AY29nySJOnlE72YYon5+cdpKL6 6Zz6oZa+6W8E+o0i34FkVMCk09Oc0buI8v9j3F7b62frGQ6lS6XO8rj+Wu6RuV7U8iXw u+Wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a4-20020a17090a688400b00212d2bf21b1si577122pjd.85.2022.10.24.11.04.40; Mon, 24 Oct 2022 11:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbiJXRoX (ORCPT + 65 others); Mon, 24 Oct 2022 13:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233389AbiJXRnw (ORCPT ); Mon, 24 Oct 2022 13:43:52 -0400 Received: from mail-il1-x148.google.com (mail-il1-x148.google.com [IPv6:2607:f8b0:4864:20::148]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 697845FCE for ; Mon, 24 Oct 2022 09:19:05 -0700 (PDT) Received: by mail-il1-x148.google.com with SMTP id n14-20020a056e02100e00b002f9e283e850so9010755ilj.9 for ; Mon, 24 Oct 2022 09:19:05 -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:subject:date:message-id:reply-to; bh=lb+LQ2K08rAb3t0rKlKNkf0GAL9zHh/qpN8CoY0pM2E=; b=NHRpB8QUCrhUiS8YKdQL0R8eTxQ53aBjlW6/T/gk4zMJI7V86yRGs5KF+qz0Q214zJ gwBejm9xBDGoewHeoJ7Y1VULW29aZVvZHSnzP3IDTT138Utyy1FlGr8rDrjvANfmKqxt YzKUZwmju6t5Hg9TvGn/fZ6WdJSNEgfimlujcTOroBIQRf6xSgDgpTXDnN/lFQyiaei4 UERJBTs+0if1kELg3vAwjFfV1PaA3di0DkE1ex5ciR5LBXZpUDwZA1olnHSSBoTC8luH 8n2oD1AT7OMrI6DVyDmjYXVJ1ebe1tTzb5FFWf5bo35XidshqBdZ6oJceXndYoVOupLa DLgg== X-Gm-Message-State: ACrzQf3I8/EZ9qb8EX7E8BJB2XrUgvo9WWNvCi2R/fI5QOxMuk+8D9+e lTAMQ94zs5ljU15wW/SLdVAl7294t3Q8ZoKlvtfWF5UCnSiK MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1ba1:b0:2fc:5691:3020 with SMTP id n1-20020a056e021ba100b002fc56913020mr20843178ili.227.1666627365886; Mon, 24 Oct 2022 09:02:45 -0700 (PDT) Date: Mon, 24 Oct 2022 09:02:45 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000001de5c505ebc9ec59@google.com> Subject: [syzbot] memory leak in regulatory_hint_core From: syzbot To: davem@davemloft.net, edumazet@google.com, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SORTED_RECIPS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: aae703b02f92 Merge tag 'for-6.1-rc1-tag' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=113ed1b4880000 kernel config: https://syzkaller.appspot.com/x/.config?x=d2f454d7d3b63980 dashboard link: https://syzkaller.appspot.com/bug?extid=232ebdbd36706c965ebf 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=124b8de2880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12ae6a4a880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/a6542869e73f/disk-aae703b0.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/1a8ac40b2df8/vmlinux-aae703b0.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+232ebdbd36706c965ebf@syzkaller.appspotmail.com executing program BUG: memory leak unreferenced object 0xffff8881450a3900 (size 64): comm "swapper/0", pid 1, jiffies 4294937964 (age 66.260s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ff ff ff ff 00 00 00 00 00 00 00 00 30 30 00 00 ............00.. backtrace: [] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046 [] kmalloc include/linux/slab.h:576 [inline] [] kzalloc include/linux/slab.h:712 [inline] [] regulatory_hint_core+0x22/0x60 net/wireless/reg.c:3242 [] regulatory_init_db+0x222/0x2de net/wireless/reg.c:4312 [] do_one_initcall+0x5e/0x2e0 init/main.c:1303 [] do_initcall_level init/main.c:1376 [inline] [] do_initcalls init/main.c:1392 [inline] [] do_basic_setup init/main.c:1411 [inline] [] kernel_init_freeable+0x255/0x2cf init/main.c:1631 [] kernel_init+0x1a/0x1c0 init/main.c:1519 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 BUG: memory leak unreferenced object 0xffff88810c287f00 (size 256): comm "syz-executor105", pid 3600, jiffies 4294943292 (age 12.990s) 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 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046 [] kmalloc include/linux/slab.h:576 [inline] [] kmalloc_array include/linux/slab.h:627 [inline] [] kcalloc include/linux/slab.h:659 [inline] [] tcf_exts_init include/net/pkt_cls.h:250 [inline] [] tcindex_set_parms+0xa7/0xbe0 net/sched/cls_tcindex.c:342 [] tcindex_change+0xdf/0x120 net/sched/cls_tcindex.c:553 [] tc_new_tfilter+0x4f2/0x1100 net/sched/cls_api.c:2147 [] rtnetlink_rcv_msg+0x4dc/0x5d0 net/core/rtnetlink.c:6082 [] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2540 [] 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+0x178/0x410 net/socket.c:2482 [] ___sys_sendmsg+0xa8/0x110 net/socket.c:2536 [] __sys_sendmmsg+0x105/0x330 net/socket.c:2622 [] __do_sys_sendmmsg net/socket.c:2651 [inline] [] __se_sys_sendmmsg net/socket.c:2648 [inline] [] __x64_sys_sendmmsg+0x24/0x30 net/socket.c:2648 [] 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 BUG: memory leak unreferenced object 0xffff88810c287e00 (size 256): comm "syz-executor105", pid 3600, jiffies 4294943292 (age 12.990s) 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 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046 [] kmalloc include/linux/slab.h:576 [inline] [] kmalloc_array include/linux/slab.h:627 [inline] [] kcalloc include/linux/slab.h:659 [inline] [] tcf_exts_init include/net/pkt_cls.h:250 [inline] [] tcindex_set_parms+0xa7/0xbe0 net/sched/cls_tcindex.c:342 [] tcindex_change+0xdf/0x120 net/sched/cls_tcindex.c:553 [] tc_new_tfilter+0x4f2/0x1100 net/sched/cls_api.c:2147 [] rtnetlink_rcv_msg+0x4dc/0x5d0 net/core/rtnetlink.c:6082 [] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2540 [] 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+0x178/0x410 net/socket.c:2482 [] ___sys_sendmsg+0xa8/0x110 net/socket.c:2536 [] __sys_sendmmsg+0x105/0x330 net/socket.c:2622 [] __do_sys_sendmmsg net/socket.c:2651 [inline] [] __se_sys_sendmmsg net/socket.c:2648 [inline] [] __x64_sys_sendmmsg+0x24/0x30 net/socket.c:2648 [] 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 BUG: memory leak unreferenced object 0xffff88810c1c6d00 (size 256): comm "syz-executor105", pid 3601, jiffies 4294943831 (age 7.600s) 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 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046 [] kmalloc include/linux/slab.h:576 [inline] [] kmalloc_array include/linux/slab.h:627 [inline] [] kcalloc include/linux/slab.h:659 [inline] [] tcf_exts_init include/net/pkt_cls.h:250 [inline] [] tcindex_set_parms+0xa7/0xbe0 net/sched/cls_tcindex.c:342 [] tcindex_change+0xdf/0x120 net/sched/cls_tcindex.c:553 [] tc_new_tfilter+0x4f2/0x1100 net/sched/cls_api.c:2147 [] rtnetlink_rcv_msg+0x4dc/0x5d0 net/core/rtnetlink.c:6082 [] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2540 [] 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+0x178/0x410 net/socket.c:2482 [] ___sys_sendmsg+0xa8/0x110 net/socket.c:2536 [] __sys_sendmmsg+0x105/0x330 net/socket.c:2622 [] __do_sys_sendmmsg net/socket.c:2651 [inline] [] __se_sys_sendmmsg net/socket.c:2648 [inline] [] __x64_sys_sendmmsg+0x24/0x30 net/socket.c:2648 [] 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