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 C57F5C43334 for ; Wed, 13 Jul 2022 10:35:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236034AbiGMKfK (ORCPT ); Wed, 13 Jul 2022 06:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235954AbiGMKfI (ORCPT ); Wed, 13 Jul 2022 06:35:08 -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 94B4CF0E26 for ; Wed, 13 Jul 2022 03:35:07 -0700 (PDT) Received: by mail-il1-f200.google.com with SMTP id r10-20020a92cd8a000000b002dca70934a2so347650ilb.6 for ; Wed, 13 Jul 2022 03:35:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=/gNbNii7yMVWS8fxbVS9LZCYRdyRODnecdP2k3C4uIE=; b=PkJ77++tfoiSmVHtsMXLM/BLXpjMr4NZQn+2Mkdw5kq9udK9oQAk0MSVrHSsxaO4GB AGKKfeCgfIV9JSkQsVwsgIIGU4IjoPyRnQqEJjOKhtsg69TOlDKG9fzomrf8ZDw5lsL2 QI7TebDxBuab9OKG387po3qIixDpFx6TeWmYmIO2jHG2VG3qxhWjclMYDUlZSxzp9+Oz M1Id9RD7ZECp9ASZBIM4usME0Yy+/8WOHRO96YVH9F5wzqbcoaKnQAv4mSwxVcvjWTVR hyA3SLHGcYQ+uIdXtnpdeGt9IcWYUwTYcRMCUqlp3scPLpcZV7Js2ftv5V5109ANXwKc e+AA== X-Gm-Message-State: AJIora8KTv7LL7jmufjrr5kC5Fc9RqOK1+7X1h6ZhecoruTUheM2NjCZ Nsd6TWyN7zSvDHtdiaAlkqnwuUMecYET5d+naBoC8hVz4iyz X-Google-Smtp-Source: AGRyM1u39feVJMmVXdQykAP9gk0+Sn4axFDWtMo/oH1I3W6U5Uo5jJH972oB31GqLPTTVGl5/rxZUeBzPstCYklnew7dLEAj8YY2 MIME-Version: 1.0 X-Received: by 2002:a05:6638:300f:b0:335:b12d:3126 with SMTP id r15-20020a056638300f00b00335b12d3126mr1477619jak.210.1657708506885; Wed, 13 Jul 2022 03:35:06 -0700 (PDT) Date: Wed, 13 Jul 2022 03:35:06 -0700 In-Reply-To: <181f7180015.1ea4d3b3328398.7889962633178976958@siddh.me> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000b1b55a05e3ad5692@google.com> Subject: Re: [syzbot] memory leak in cfg80211_inform_single_bss_frame_data From: syzbot To: code@siddh.me, 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: linux-wireless@vger.kernel.org Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: memory leak in regulatory_init_db BUG: memory leak unreferenced object 0xffff888145137a00 (size 64): comm "swapper/0", pid 1, jiffies 4294937939 (age 68.850s) 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 include/linux/slab.h:600 [inline] [] kzalloc include/linux/slab.h:733 [inline] [] regulatory_hint_core net/wireless/reg.c:3216 [inline] [] regulatory_init_db+0x22f/0x2de net/wireless/reg.c:4277 [] do_one_initcall+0x63/0x2e0 init/main.c:1295 [] do_initcall_level init/main.c:1368 [inline] [] do_initcalls init/main.c:1384 [inline] [] do_basic_setup init/main.c:1403 [inline] [] kernel_init_freeable+0x255/0x2cf init/main.c:1610 [] kernel_init+0x1a/0x1c0 init/main.c:1499 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 BUG: memory leak unreferenced object 0xffff88810a760180 (size 96): comm "kworker/u4:2", pid 43, jiffies 4294943904 (age 9.220s) hex dump (first 32 bytes): fa fd 93 53 ad e3 05 00 00 00 00 00 00 00 00 00 ...S............ 00 00 00 00 00 00 00 00 28 00 00 00 01 00 06 10 ........(....... backtrace: [] cfg80211_inform_single_bss_frame_data+0x186/0x6a0 net/wireless/scan.c:2445 [] cfg80211_inform_bss_frame_data+0x4b/0x460 net/wireless/scan.c:2506 [] ieee80211_bss_info_update+0x196/0x440 net/mac80211/scan.c:190 [] ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] [] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline] [] ieee80211_ibss_rx_queued_mgmt+0x7d2/0x11a0 net/mac80211/ibss.c:1639 [] ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] [] ieee80211_iface_work+0x601/0x780 net/mac80211/iface.c:1581 [] process_one_work+0x2bf/0x600 kernel/workqueue.c:2289 [] worker_thread+0x59/0x5b0 kernel/workqueue.c:2436 [] kthread+0x125/0x160 kernel/kthread.c:376 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 BUG: memory leak unreferenced object 0xffff88810a760100 (size 96): comm "kworker/u4:0", pid 8, jiffies 4294943986 (age 8.400s) hex dump (first 32 bytes): 36 80 a0 53 ad e3 05 00 00 00 00 00 00 00 00 00 6..S............ 00 00 00 00 00 00 00 00 28 00 00 00 01 00 06 10 ........(....... backtrace: [] cfg80211_inform_single_bss_frame_data+0x186/0x6a0 net/wireless/scan.c:2445 [] cfg80211_inform_bss_frame_data+0x4b/0x460 net/wireless/scan.c:2506 [] ieee80211_bss_info_update+0x196/0x440 net/mac80211/scan.c:190 [] ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] [] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline] [] ieee80211_ibss_rx_queued_mgmt+0x7d2/0x11a0 net/mac80211/ibss.c:1639 [] ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] [] ieee80211_iface_work+0x601/0x780 net/mac80211/iface.c:1581 [] process_one_work+0x2bf/0x600 kernel/workqueue.c:2289 [] worker_thread+0x59/0x5b0 kernel/workqueue.c:2436 [] kthread+0x125/0x160 kernel/kthread.c:376 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 BUG: memory leak unreferenced object 0xffff888114cb9100 (size 96): comm "kworker/u4:3", pid 53, jiffies 4294944017 (age 8.090s) hex dump (first 32 bytes): 95 32 a5 53 ad e3 05 00 00 00 00 00 00 00 00 00 .2.S............ 00 00 00 00 00 00 00 00 28 00 00 00 01 00 06 10 ........(....... backtrace: [] cfg80211_inform_single_bss_frame_data+0x186/0x6a0 net/wireless/scan.c:2445 [] cfg80211_inform_bss_frame_data+0x4b/0x460 net/wireless/scan.c:2506 [] ieee80211_bss_info_update+0x196/0x440 net/mac80211/scan.c:190 [] ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] [] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline] [] ieee80211_ibss_rx_queued_mgmt+0x7d2/0x11a0 net/mac80211/ibss.c:1639 [] ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] [] ieee80211_iface_work+0x601/0x780 net/mac80211/iface.c:1581 [] process_one_work+0x2bf/0x600 kernel/workqueue.c:2289 [] worker_thread+0x59/0x5b0 kernel/workqueue.c:2436 [] kthread+0x125/0x160 kernel/kthread.c:376 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 BUG: memory leak unreferenced object 0xffff888114afa500 (size 96): comm "kworker/u4:3", pid 53, jiffies 4294944037 (age 7.890s) hex dump (first 32 bytes): 1c 46 a8 53 ad e3 05 00 00 00 00 00 00 00 00 00 .F.S............ 00 00 00 00 00 00 00 00 28 00 00 00 01 00 06 10 ........(....... backtrace: [] cfg80211_inform_single_bss_frame_data+0x186/0x6a0 net/wireless/scan.c:2445 [] cfg80211_inform_bss_frame_data+0x4b/0x460 net/wireless/scan.c:2506 [] ieee80211_bss_info_update+0x196/0x440 net/mac80211/scan.c:190 [] ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] [] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline] [] ieee80211_ibss_rx_queued_mgmt+0x7d2/0x11a0 net/mac80211/ibss.c:1639 [] ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] [] ieee80211_iface_work+0x601/0x780 net/mac80211/iface.c:1581 [] process_one_work+0x2bf/0x600 kernel/workqueue.c:2289 [] worker_thread+0x59/0x5b0 kernel/workqueue.c:2436 [] kthread+0x125/0x160 kernel/kthread.c:376 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 [ 75.59820 Tested on: commit: b047602d Merge tag 'trace-v5.19-rc5' of git://git.kern.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10cfa478080000 kernel config: https://syzkaller.appspot.com/x/.config?x=689b5fe7168a1260 dashboard link: https://syzkaller.appspot.com/bug?extid=7a942657a255a9d9b18a compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 Note: no patches were applied.