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=-13.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 EAEEFC4338F for ; Sat, 31 Jul 2021 08:03:11 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8253A60F00 for ; Sat, 31 Jul 2021 08:03:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8253A60F00 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5041A404C8; Sat, 31 Jul 2021 08:03:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uv4Y8DH2hW9i; Sat, 31 Jul 2021 08:03:10 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 59B0A404B5; Sat, 31 Jul 2021 08:03:10 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 237D3C001B; Sat, 31 Jul 2021 08:03:10 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 47513C0010 for ; Sat, 31 Jul 2021 08:03:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 247746FBBC for ; Sat, 31 Jul 2021 08:03:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=kroah.com header.b="ip8Zjpp4"; dkim=pass (2048-bit key) header.d=messagingengine.com header.b="cOXjQgJ+" Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q0xTkPusldsM for ; Sat, 31 Jul 2021 08:03:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from wnew1-smtp.messagingengine.com (wnew1-smtp.messagingengine.com [64.147.123.26]) by smtp3.osuosl.org (Postfix) with ESMTPS id 446956FBBB for ; Sat, 31 Jul 2021 08:03:07 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id AD67E2B01381; Sat, 31 Jul 2021 04:03:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 31 Jul 2021 04:03:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=HaF70jJIwVgzmQByN2MvzfEuB4C s9uu4puwwbbsEWXw=; b=ip8Zjpp4kk00bDvde12tpXFrWj0X4lVgrydAqKkTAjT h9URjOHRfTjL7DIAr5cpe5JplyV5UAnC+glL2m3hPIbchgsw2UfoSyNacOjNxRWP M49SkMwrPdH0UadqcSyOivFkkB0H6gt27b2yLVg9oVNMA366LiWU/1/sXA/dYW1q wvzNncf8r9AyVTknFRVp4LUI3/DSaD6PYAPmc/7lJ8thVNbHlEcIyZFjfrj6/SM0 zmYIND8ED8YFuDcbTCrCfC4Sn2rfJfRubuYDWOgz1Exm5I+eLpKRVFd8PL4Uao+n Ia0KMjckOHCt5oEJyXLWBBxJoa4Ut+mqvzvnQd6HZTA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=HaF70j JIwVgzmQByN2MvzfEuB4Cs9uu4puwwbbsEWXw=; b=cOXjQgJ+LZFOUBUQ64WiZ9 6d3lpXS1wQrsTMQupnbwQY9A/BJ441TxcmjURvDcCZdNhnoVUw++5Gzut/rKGwe6 G/g6S3k6/OVHhEp1xW9XkGds1nkzVzp93R4hgJELe6nrLTpL2eOW8gR6h4UzM8sK p08x4X46dyt5iZ+GMtZGFBdFSK3FLTlOR7d9dnnOtrclh/A9onoOoKJhRWlVD9+I qptKNmVhYceSwzFN02NvtZ3E7M8NEnlM/6zlSlYUZaLJ1EtQ/6Unql45wgmsee4y O6ezVGKreStnjVf8KtirC881XTl2m1ETMSieJBJVFKpszx7Axz1+jI1/65i0Vq4w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrheeigdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdortddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpedutdeivd ejgedufffgvdfhtdejuefghfehvdejhefggfeludeugfefkeegvdelhfenucffohhmrghi nhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 31 Jul 2021 04:03:01 -0400 (EDT) Date: Sat, 31 Jul 2021 10:02:58 +0200 From: Greg KH To: Kalle Valo Subject: Re: [PATCH V2] cfg80211: Fix possible memory leak in function cfg80211_bss_update Message-ID: References: <20210628132334.851095-1-phind.uet@gmail.com> <877dh6dimf.fsf@tynnyri.adurom.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <877dh6dimf.fsf@tynnyri.adurom.net> Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, johannes@sipsolutions.net, linux-kernel-mentees@lists.linuxfoundation.org, davem@davemloft.net X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" On Sat, Jul 31, 2021 at 10:53:28AM +0300, Kalle Valo wrote: > Greg KH writes: > > > On Mon, Jun 28, 2021 at 09:23:34PM +0800, Nguyen Dinh Phi wrote: > >> When we exceed the limit of BSS entries, this function will free the > >> new entry, however, at this time, it is the last door to access the > >> inputed ies, so these ies will be unreferenced objects and cause memory > >> leak. > >> Therefore we should free its ies before deallocating the new entry, beside > >> of dropping it from hidden_list. > >> > >> Signed-off-by: Nguyen Dinh Phi > > [...] > > > Did this change get lost somewhere? > > Johannes applied it to the macc80211 tree: > > https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211.git/commit/?id=f9a5c358c8d26fed0cc45f2afc64633d4ba21dff > > Ah, and it's already in Linus' tree as well. Ah, thanks, I had missed that it just landed there. greg k-h _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees