[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e111f37a-7ed1-46f0-ad2a-7f15537f6a62@broadcom.com>
Date: Thu, 29 Feb 2024 12:36:52 +0100
From: Arend van Spriel <arend.vanspriel@...adcom.com>
To: Duoming Zhou <duoming@....edu.cn>, linux-kernel@...r.kernel.org
Cc: brcm80211-dev-list.pdl@...adcom.com, brcm80211@...ts.linux.dev,
linux-wireless@...r.kernel.org, justinstitt@...gle.com,
quic_alokad@...cinc.com, jisoo.jang@...sei.ac.kr,
petr.tesarik.ext@...wei.com, hdegoede@...hat.com, keescook@...omium.org,
johannes.berg@...el.com, kvalo@...nel.org
Subject: Re: [PATCH v3] wifi: brcm80211: handle pmk_op allocation failure
On 2/29/2024 11:31 AM, Duoming Zhou wrote:
> The kzalloc() in brcmf_pmksa_v3_op() will return null if the
> physical memory has run out. As a result, if we dereference
> the null value, the null pointer dereference bug will happen.
>
> Return -ENOMEM from brcmf_pmksa_v3_op() if kzalloc() fails
> for pmk_op.
>
> Fixes: a96202acaea4 ("wifi: brcmfmac: cfg80211: Add support for PMKID_V3 operations")
> Acked-by: Arend van Spriel <arend.vanspriel@...adcom.com>
For real this time. Thanks!!
Regards,
Arend
> Signed-off-by: Duoming Zhou <duoming@....edu.cn>
> ---
> Changes in v3:
> - Just return -ENOMEM.
>
> drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 3 +++
> 1 file changed, 3 insertions(+)
Download attachment "smime.p7s" of type "application/pkcs7-signature" (4219 bytes)
Powered by blists - more mailing lists