Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp788328pxb; Mon, 25 Oct 2021 19:01:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyuz0K+vdzn4TsqjzrPtN5nOV8ZbojUW171nz0O/hVF3e4yDnvy63Fpegw/CPs0HzZlunJ X-Received: by 2002:aa7:d2d7:: with SMTP id k23mr15409742edr.50.1635213714054; Mon, 25 Oct 2021 19:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635213714; cv=none; d=google.com; s=arc-20160816; b=CZsFLCYI2k2j1FW6hwbtNjWkbcZzO1qQETBK2L2rQ95mHW4CcuPUBMkteRvKd1haQV Gal/kDy4xbWoudvmNwztF+EGeIdUFOrQ5ludAYZvFKDUOuHmJfY65iG9DlEq22jBHCRc jNpDg95tqWAl5j7wggbA2ApxFXZU2mdwNwmVkn2Ct+DdjaSBiQy8muGXq1CI32QaDTTk jRpKmsP8GnXN22smfiWNSgc7ZDAYJUVy+gYipEEpvmy3/46QpdXrd+wnngNZI5KxXQJz PfIx+3ooPMagwUTC69V2ZY67UhGPvJbsnJJQzNrI0h35za6JymPizxSgylO4a/yYA9bU kb3Q== 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=vyhnJoZIovOdZyzH8Y8MrbUmNDPLYUWR/YD6MJ+0O5M=; b=sEP0B/6nfchJr5Y/hHXoSdSqpGBeSKKHSwJW/7/6ll32bzOKIr/fYeQd03rQlNpKwI xpnizIUzLx/Nx3OP0Jn7tgJoA23WHrugZ3w+E6MRyZXUtrGtKaWaIRKtJbUktroiS+qk xM3sL/SizbCdogNXBS3N+613zPFxeoamKGaqT/DdaTS1a5edTXrSAt5gWbvdH5ZztyRR YhMOVKGlrqZahX8boiZywaSUgyWJjkkVaV0esuhxHsDykXjqduulUcpl5jacAKPK29Tj KuiYrJZFfWyToj/r8s2kzv1R72eDpSTMGtQWAhTGahk/hL+rk/vH7QDCMd6/oEVwpWR/ ivSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sg37si33819980ejc.519.2021.10.25.19.01.22; Mon, 25 Oct 2021 19:01:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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 S234052AbhJYWfr (ORCPT + 67 others); Mon, 25 Oct 2021 18:35:47 -0400 Received: from mail-io1-f70.google.com ([209.85.166.70]:41553 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233563AbhJYWfq (ORCPT ); Mon, 25 Oct 2021 18:35:46 -0400 Received: by mail-io1-f70.google.com with SMTP id f13-20020a5ec60d000000b005ddbc52304dso9864680iok.8 for ; Mon, 25 Oct 2021 15:33:23 -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=vyhnJoZIovOdZyzH8Y8MrbUmNDPLYUWR/YD6MJ+0O5M=; b=B7TzFYb40tS/1HwnNm6o2OGgKU4uQwxi5E/EUcszU4TtgpjP4Gs8M5N73h2M5Yo6na 3HaVBHqyaezkBzz0I/ZDiD4vsQ4Usb3YubSHoyTAQIbLG+2wZeL+CU7oZlGjyjwzEoZB 00KQsk3FP9m/OLQra+Lo5aFo7y9XM91SFcL0BUr0eQxPPqaqDjSAf7jvauGVks433I93 9aW13SXYJFNIrMcBVV/SgYDTwKfZTP9LKrnvXviUVvkCv7CcybhQEuBeEQZfnLCWKGlk IvA2hnHTGCfPOJPncu3papmY8xaBZP1B3h46QdK60tlj5thiab2y1GycS9lR1X/ifCQB BF+A== X-Gm-Message-State: AOAM531LOuAyBQJWz4dUveDxsVh7uoHiI6Irfq4OWRlqShHFhEStMI8+ Zu+5izueEqmi00TyqQ7qiqfm6f1QGLMTkpghkkfk0Te/mDsC MIME-Version: 1.0 X-Received: by 2002:a6b:8d8a:: with SMTP id p132mr12406022iod.96.1635201203634; Mon, 25 Oct 2021 15:33:23 -0700 (PDT) Date: Mon, 25 Oct 2021 15:33:23 -0700 In-Reply-To: <000000000000f632ba05c3cb12c2@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000e1063f05cf34f2a8@google.com> Subject: Re: [syzbot] memory leak in cfg80211_inform_single_bss_frame_data From: syzbot To: davem@davemloft.net, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, mudongliangabcd@gmail.com, netdev@vger.kernel.org, phind.uet@gmail.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 87066fdd2e30 Revert "mm/secretmem: use refcount_t instead .. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16b55554b00000 kernel config: https://syzkaller.appspot.com/x/.config?x=d25eeb482b0f99b 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 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=171cf464b00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1396b19f300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+7a942657a255a9d9b18a@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff88810f3c7980 (size 96): comm "kworker/u4:0", pid 8, jiffies 4294948721 (age 17.180s) hex dump (first 32 bytes): e5 90 aa e8 34 cf 05 00 00 00 00 00 00 00 00 00 ....4........... 00 00 00 00 00 00 00 00 28 00 00 00 01 00 06 10 ........(....... backtrace: [] cfg80211_inform_single_bss_frame_data+0x139/0x640 net/wireless/scan.c:2383 [] cfg80211_inform_bss_frame_data+0x4b/0x470 net/wireless/scan.c:2444 [] ieee80211_bss_info_update+0x16e/0x460 net/mac80211/scan.c:190 [] ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] [] ieee80211_rx_mgmt_probe_beacon+0x61a/0x970 net/mac80211/ibss.c:1608 [] ieee80211_ibss_rx_queued_mgmt+0x23c/0x6e0 net/mac80211/ibss.c:1635 [] ieee80211_iface_process_skb net/mac80211/iface.c:1439 [inline] [] ieee80211_iface_work+0x5f7/0x770 net/mac80211/iface.c:1493 [] process_one_work+0x2cf/0x620 kernel/workqueue.c:2297 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2444 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff88810f3c7b00 (size 96): comm "kworker/u4:0", pid 8, jiffies 4294948721 (age 17.180s) hex dump (first 32 bytes): f5 90 aa e8 34 cf 05 00 00 00 00 00 00 00 00 00 ....4........... 00 00 00 00 00 00 00 00 28 00 00 00 01 00 06 10 ........(....... backtrace: [] cfg80211_inform_single_bss_frame_data+0x139/0x640 net/wireless/scan.c:2383 [] cfg80211_inform_bss_frame_data+0x4b/0x470 net/wireless/scan.c:2444 [] ieee80211_bss_info_update+0x16e/0x460 net/mac80211/scan.c:190 [] ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] [] ieee80211_rx_mgmt_probe_beacon+0x61a/0x970 net/mac80211/ibss.c:1608 [] ieee80211_ibss_rx_queued_mgmt+0x23c/0x6e0 net/mac80211/ibss.c:1635 [] ieee80211_iface_process_skb net/mac80211/iface.c:1439 [inline] [] ieee80211_iface_work+0x5f7/0x770 net/mac80211/iface.c:1493 [] process_one_work+0x2cf/0x620 kernel/workqueue.c:2297 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2444 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff88810f3c7680 (size 96): comm "kworker/u4:1", pid 146, jiffies 4294948731 (age 17.080s) hex dump (first 32 bytes): e9 20 ac e8 34 cf 05 00 00 00 00 00 00 00 00 00 . ..4........... 00 00 00 00 00 00 00 00 28 00 00 00 01 00 06 10 ........(....... backtrace: [] cfg80211_inform_single_bss_frame_data+0x139/0x640 net/wireless/scan.c:2383 [] cfg80211_inform_bss_frame_data+0x4b/0x470 net/wireless/scan.c:2444 [] ieee80211_bss_info_update+0x16e/0x460 net/mac80211/scan.c:190 [] ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] [] ieee80211_rx_mgmt_probe_beacon+0x61a/0x970 net/mac80211/ibss.c:1608 [] ieee80211_ibss_rx_queued_mgmt+0x23c/0x6e0 net/mac80211/ibss.c:1635 [] ieee80211_iface_process_skb net/mac80211/iface.c:1439 [inline] [] ieee80211_iface_work+0x5f7/0x770 net/mac80211/iface.c:1493 [] process_one_work+0x2cf/0x620 kernel/workqueue.c:2297 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2444 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: memory leak unreferenced object 0xffff888111520f80 (size 96): comm "kworker/u4:1", pid 146, jiffies 4294948731 (age 17.080s) hex dump (first 32 bytes): fb 20 ac e8 34 cf 05 00 00 00 00 00 00 00 00 00 . ..4........... 00 00 00 00 00 00 00 00 28 00 00 00 01 00 06 10 ........(....... backtrace: [] cfg80211_inform_single_bss_frame_data+0x139/0x640 net/wireless/scan.c:2383 [] cfg80211_inform_bss_frame_data+0x4b/0x470 net/wireless/scan.c:2444 [] ieee80211_bss_info_update+0x16e/0x460 net/mac80211/scan.c:190 [] ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] [] ieee80211_rx_mgmt_probe_beacon+0x61a/0x970 net/mac80211/ibss.c:1608 [] ieee80211_ibss_rx_queued_mgmt+0x23c/0x6e0 net/mac80211/ibss.c:1635 [] ieee80211_iface_process_skb net/mac80211/iface.c:1439 [inline] [] ieee80211_iface_work+0x5f7/0x770 net/mac80211/iface.c:1493 [] process_one_work+0x2cf/0x620 kernel/workqueue.c:2297 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2444 [] kthread+0x188/0x1d0 kernel/kthread.c:319 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295