Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp546504imw; Wed, 13 Jul 2022 03:37:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tUSBVAmeqUeaXYC4UMNIoe/TVNLH0v+w/93Eit2W4fVG0A7eB4yT6pPlmq4qyVBOZpCMRl X-Received: by 2002:aa7:cd86:0:b0:43a:26e3:d333 with SMTP id x6-20020aa7cd86000000b0043a26e3d333mr4028235edv.178.1657708651849; Wed, 13 Jul 2022 03:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657708651; cv=none; d=google.com; s=arc-20160816; b=TL8EjNwEt+VIgrhpnIXxoEqiknrZEnMAu+mFwk+jnpEi1KepHMjjDKK0h6FcoGqjaA LLPTqSljKzDIxsXtu3o61xJFhCOux54nDWdUOyJO5auwG+3VDrG/qtHjZV0OxwRABDzq cxKt8o8cCkzcKDgXyAIlKOFF7cH2dTpJITYoiANwd6A+EO2bOXp/59WGCM2wutsKYQev +Khm5UIkvORlO7IMZBpYuxCbuIRVGf7n5l1XerSxxjm9Sf4DNK2FBaVyaRtBKqpLr6HB lOqu6LpZod37wP9JnHm7VfNKTWwoXHozeEBB8LZNhcSXcJwbX1BeKCHxR2Lox/L6qiWd 5DXQ== 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:in-reply-to:date :mime-version; bh=/gNbNii7yMVWS8fxbVS9LZCYRdyRODnecdP2k3C4uIE=; b=sgp0qlGDT2/YJ99z/e+7TbhS2MgJiw1b0SqY832Qa/ui1/dHfxFz+qjNlUVbUWgxd2 yeLXtYMxgWWgxgFrufe2UVkG9NeScR1k6Za0TcRyyLSG0LmXATWOJYHTAOvjErBfeclk /guLzil8vZYUwJaVXAiO+dXfYaTmD3ocUvs8j10pczhZ5IRA503dGYgGXB7GptJvpR3V WYWAernQJHvd/pgV8UNLVPPlZ1iCjfvOT4zsusFjsG7kDWy2Jv4v78dUWzxEGgNQGTWM JIPOKp5giHDAT9z9eoEx5uWedflcnC+oV/pXLPGN1Jmkxcwgv7BPX6fZvyZ9KK6vq/oz P5KQ== 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 gs15-20020a1709072d0f00b0072af7d4a334si3190748ejc.646.2022.07.13.03.37.12; Wed, 13 Jul 2022 03:37:31 -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 S236034AbiGMKfK (ORCPT + 65 others); 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 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" X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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.