All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
@ 2022-01-18 15:45 Phil Elwell
  2022-01-19  6:01 ` Kalle Valo
  2022-01-28 14:07 ` Kalle Valo
  0 siblings, 2 replies; 12+ messages in thread
From: Phil Elwell @ 2022-01-18 15:45 UTC (permalink / raw)
  To: Arend van Spriel, Chung-hsien Hsu, Kalle Valo, David S. Miller,
	Jakub Kicinski, Linus Walleij, Phil Elwell, linux-wireless,
	brcm80211-dev-list.pdl, SHA-cyfmac-dev-list

The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
by a check to the validity of the fwctx->req->board_type pointer. This
results in a crash in strlcat when, for example, the WLAN chip is found
in a USB dongle.

Prevent the crash by adding the necessary check.

See: https://github.com/raspberrypi/linux/issues/4833

Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries")
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
index 0eb13e5df5177..d99140960a820 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c
@@ -693,7 +693,7 @@ int brcmf_fw_get_firmwares(struct device *dev, struct brcmf_fw_request *req,
 {
 	struct brcmf_fw_item *first = &req->items[0];
 	struct brcmf_fw *fwctx;
-	char *alt_path;
+	char *alt_path = NULL;
 	int ret;
 
 	brcmf_dbg(TRACE, "enter: dev=%s\n", dev_name(dev));
@@ -712,7 +712,9 @@ int brcmf_fw_get_firmwares(struct device *dev, struct brcmf_fw_request *req,
 	fwctx->done = fw_cb;
 
 	/* First try alternative board-specific path if any */
-	alt_path = brcm_alt_fw_path(first->path, fwctx->req->board_type);
+	if (fwctx->req->board_type)
+		alt_path = brcm_alt_fw_path(first->path,
+					    fwctx->req->board_type);
 	if (alt_path) {
 		ret = request_firmware_nowait(THIS_MODULE, true, alt_path,
 					      fwctx->dev, GFP_KERNEL, fwctx,
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-18 15:45 [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path Phil Elwell
@ 2022-01-19  6:01 ` Kalle Valo
  2022-01-19  8:53   ` Phil Elwell
  2022-01-28 14:07 ` Kalle Valo
  1 sibling, 1 reply; 12+ messages in thread
From: Kalle Valo @ 2022-01-19  6:01 UTC (permalink / raw)
  To: Phil Elwell
  Cc: Arend van Spriel, Chung-hsien Hsu, David S. Miller,
	Jakub Kicinski, Linus Walleij, linux-wireless,
	brcm80211-dev-list.pdl, SHA-cyfmac-dev-list

Phil Elwell <phil@raspberrypi.com> writes:

> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
> by a check to the validity of the fwctx->req->board_type pointer. This
> results in a crash in strlcat when, for example, the WLAN chip is found
> in a USB dongle.
>
> Prevent the crash by adding the necessary check.
>
> See: https://github.com/raspberrypi/linux/issues/4833
>
> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries")
> Signed-off-by: Phil Elwell <phil@raspberrypi.com>

I think this should go to v5.17.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-19  6:01 ` Kalle Valo
@ 2022-01-19  8:53   ` Phil Elwell
  2022-01-19 10:00     ` Kalle Valo
  2022-01-19 15:48     ` Arend van Spriel
  0 siblings, 2 replies; 12+ messages in thread
From: Phil Elwell @ 2022-01-19  8:53 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Arend van Spriel, David S. Miller, Jakub Kicinski, Linus Walleij,
	linux-wireless, brcm80211-dev-list.pdl, SHA-cyfmac-dev-list

On 19/01/2022 06:01, Kalle Valo wrote:
> Phil Elwell <phil@raspberrypi.com> writes:
> 
>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>> by a check to the validity of the fwctx->req->board_type pointer. This
>> results in a crash in strlcat when, for example, the WLAN chip is found
>> in a USB dongle.
>>
>> Prevent the crash by adding the necessary check.
>>
>> See: https://github.com/raspberrypi/linux/issues/4833
>>
>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries")
>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
> 
> I think this should go to v5.17.

Is that an Ack? Are you asking me to submit the patch in a different way?

Phil

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-19  8:53   ` Phil Elwell
@ 2022-01-19 10:00     ` Kalle Valo
  2022-01-19 15:48     ` Arend van Spriel
  1 sibling, 0 replies; 12+ messages in thread
From: Kalle Valo @ 2022-01-19 10:00 UTC (permalink / raw)
  To: Phil Elwell
  Cc: Arend van Spriel, David S. Miller, Jakub Kicinski, Linus Walleij,
	linux-wireless, brcm80211-dev-list.pdl, SHA-cyfmac-dev-list

Phil Elwell <phil@raspberrypi.com> writes:

> On 19/01/2022 06:01, Kalle Valo wrote:
>> Phil Elwell <phil@raspberrypi.com> writes:
>>
>>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>>> by a check to the validity of the fwctx->req->board_type pointer. This
>>> results in a crash in strlcat when, for example, the WLAN chip is found
>>> in a USB dongle.
>>>
>>> Prevent the crash by adding the necessary check.
>>>
>>> See: https://github.com/raspberrypi/linux/issues/4833
>>>
>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries")
>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>
>> I think this should go to v5.17.
>
> Is that an Ack? 

It's a note to myself and other maintainers/reviewers that I'm planning
to take this to the wireless tree. At the moment I'm waiting for other
people to comment.

> Are you asking me to submit the patch in a different way?

No need, unless something is found during review.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-19  8:53   ` Phil Elwell
  2022-01-19 10:00     ` Kalle Valo
@ 2022-01-19 15:48     ` Arend van Spriel
  2022-01-27 12:08       ` Kalle Valo
  1 sibling, 1 reply; 12+ messages in thread
From: Arend van Spriel @ 2022-01-19 15:48 UTC (permalink / raw)
  To: Phil Elwell, Kalle Valo
  Cc: Arend van Spriel, David S. Miller, Jakub Kicinski, Linus Walleij,
	linux-wireless, brcm80211-dev-list.pdl, SHA-cyfmac-dev-list

[-- Attachment #1: Type: text/plain, Size: 939 bytes --]

On 1/19/2022 9:53 AM, Phil Elwell wrote:
> On 19/01/2022 06:01, Kalle Valo wrote:
>> Phil Elwell <phil@raspberrypi.com> writes:
>>
>>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>>> by a check to the validity of the fwctx->req->board_type pointer. This
>>> results in a crash in strlcat when, for example, the WLAN chip is found
>>> in a USB dongle.
>>>
>>> Prevent the crash by adding the necessary check.
>>>
>>> See: https://github.com/raspberrypi/linux/issues/4833
>>>
>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware 
>>> binaries")
>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>
>> I think this should go to v5.17.
> 
> Is that an Ack? Are you asking me to submit the patch in a different way?

Similar/same patch was submitted by Hector Martin [1].

Regards,
Arend

[1] 
https://patchwork.kernel.org/project/linux-wireless/patch/20220117142919.207370-4-marcan@marcan.st/

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-19 15:48     ` Arend van Spriel
@ 2022-01-27 12:08       ` Kalle Valo
  2022-01-27 12:59         ` Arend van Spriel
  0 siblings, 1 reply; 12+ messages in thread
From: Kalle Valo @ 2022-01-27 12:08 UTC (permalink / raw)
  To: Arend van Spriel
  Cc: Phil Elwell, Arend van Spriel, David S. Miller, Jakub Kicinski,
	Linus Walleij, linux-wireless, brcm80211-dev-list.pdl,
	SHA-cyfmac-dev-list

Arend van Spriel <arend.vanspriel@broadcom.com> writes:

> On 1/19/2022 9:53 AM, Phil Elwell wrote:
>> On 19/01/2022 06:01, Kalle Valo wrote:
>>> Phil Elwell <phil@raspberrypi.com> writes:
>>>
>>>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>>>> by a check to the validity of the fwctx->req->board_type pointer. This
>>>> results in a crash in strlcat when, for example, the WLAN chip is found
>>>> in a USB dongle.
>>>>
>>>> Prevent the crash by adding the necessary check.
>>>>
>>>> See: https://github.com/raspberrypi/linux/issues/4833
>>>>
>>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware
>>>> binaries")
>>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>>
>>> I think this should go to v5.17.
>>
>> Is that an Ack? Are you asking me to submit the patch in a different way?
>
> Similar/same patch was submitted by Hector Martin [1].
>
> Regards,
> Arend
>
> [1]
> https://patchwork.kernel.org/project/linux-wireless/patch/20220117142919.207370-4-marcan@marcan.st/

I would prefer to take this patch to wireless tree and drop Hector's
version. Is that ok?

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-27 12:08       ` Kalle Valo
@ 2022-01-27 12:59         ` Arend van Spriel
  2022-01-27 13:17           ` Kalle Valo
  0 siblings, 1 reply; 12+ messages in thread
From: Arend van Spriel @ 2022-01-27 12:59 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Phil Elwell, Arend van Spriel, David S. Miller, Jakub Kicinski,
	Linus Walleij, linux-wireless, brcm80211-dev-list.pdl,
	SHA-cyfmac-dev-list

[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]

On 1/27/2022 1:08 PM, Kalle Valo wrote:
> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
> 
>> On 1/19/2022 9:53 AM, Phil Elwell wrote:
>>> On 19/01/2022 06:01, Kalle Valo wrote:
>>>> Phil Elwell <phil@raspberrypi.com> writes:
>>>>
>>>>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>>>>> by a check to the validity of the fwctx->req->board_type pointer. This
>>>>> results in a crash in strlcat when, for example, the WLAN chip is found
>>>>> in a USB dongle.
>>>>>
>>>>> Prevent the crash by adding the necessary check.
>>>>>
>>>>> See: https://github.com/raspberrypi/linux/issues/4833
>>>>>
>>>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware
>>>>> binaries")
>>>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>>>
>>>> I think this should go to v5.17.
>>>
>>> Is that an Ack? Are you asking me to submit the patch in a different way?
>>
>> Similar/same patch was submitted by Hector Martin [1].

Fine by me. Hector's subset series (fixes) is ready to be taken as well, 
right?

Regards,
Arend

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-27 12:59         ` Arend van Spriel
@ 2022-01-27 13:17           ` Kalle Valo
  2022-01-27 14:30             ` Arend van Spriel
  0 siblings, 1 reply; 12+ messages in thread
From: Kalle Valo @ 2022-01-27 13:17 UTC (permalink / raw)
  To: Arend van Spriel
  Cc: Phil Elwell, Arend van Spriel, David S. Miller, Jakub Kicinski,
	Linus Walleij, linux-wireless, brcm80211-dev-list.pdl,
	SHA-cyfmac-dev-list

Arend van Spriel <arend.vanspriel@broadcom.com> writes:

> On 1/27/2022 1:08 PM, Kalle Valo wrote:
>> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
>>
>>> On 1/19/2022 9:53 AM, Phil Elwell wrote:
>>>> On 19/01/2022 06:01, Kalle Valo wrote:
>>>>> Phil Elwell <phil@raspberrypi.com> writes:
>>>>>
>>>>>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>>>>>> by a check to the validity of the fwctx->req->board_type pointer. This
>>>>>> results in a crash in strlcat when, for example, the WLAN chip is found
>>>>>> in a USB dongle.
>>>>>>
>>>>>> Prevent the crash by adding the necessary check.
>>>>>>
>>>>>> See: https://github.com/raspberrypi/linux/issues/4833
>>>>>>
>>>>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware
>>>>>> binaries")
>>>>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>>>>
>>>>> I think this should go to v5.17.
>>>>
>>>> Is that an Ack? Are you asking me to submit the patch in a different way?
>>>
>>> Similar/same patch was submitted by Hector Martin [1].
>
> Fine by me. Hector's subset series (fixes) is ready to be taken as
> well, right?

I have not looked at Hector's patches yet, my plan is to take them to
wireless-next.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-27 13:17           ` Kalle Valo
@ 2022-01-27 14:30             ` Arend van Spriel
  2022-01-27 15:36               ` Kalle Valo
  0 siblings, 1 reply; 12+ messages in thread
From: Arend van Spriel @ 2022-01-27 14:30 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Phil Elwell, Arend van Spriel, David S. Miller, Jakub Kicinski,
	Linus Walleij, linux-wireless, brcm80211-dev-list.pdl,
	SHA-cyfmac-dev-list

[-- Attachment #1: Type: text/plain, Size: 1437 bytes --]

On 1/27/2022 2:17 PM, Kalle Valo wrote:
> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
> 
>> On 1/27/2022 1:08 PM, Kalle Valo wrote:
>>> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
>>>
>>>> On 1/19/2022 9:53 AM, Phil Elwell wrote:
>>>>> On 19/01/2022 06:01, Kalle Valo wrote:
>>>>>> Phil Elwell <phil@raspberrypi.com> writes:
>>>>>>
>>>>>>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>>>>>>> by a check to the validity of the fwctx->req->board_type pointer. This
>>>>>>> results in a crash in strlcat when, for example, the WLAN chip is found
>>>>>>> in a USB dongle.
>>>>>>>
>>>>>>> Prevent the crash by adding the necessary check.
>>>>>>>
>>>>>>> See: https://github.com/raspberrypi/linux/issues/4833
>>>>>>>
>>>>>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware
>>>>>>> binaries")
>>>>>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>>>>>
>>>>>> I think this should go to v5.17.
>>>>>
>>>>> Is that an Ack? Are you asking me to submit the patch in a different way?
>>>>
>>>> Similar/same patch was submitted by Hector Martin [1].
>>
>> Fine by me. Hector's subset series (fixes) is ready to be taken as
>> well, right?
> 
> I have not looked at Hector's patches yet, my plan is to take them to
> wireless-next.

Some of them are improvements so wireless-next is where those belong, 
but a few (patches #1-3, and #6) are actual bug fixes.

Regards,
Arend

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-27 14:30             ` Arend van Spriel
@ 2022-01-27 15:36               ` Kalle Valo
  2022-01-27 16:22                 ` Arend van Spriel
  0 siblings, 1 reply; 12+ messages in thread
From: Kalle Valo @ 2022-01-27 15:36 UTC (permalink / raw)
  To: Arend van Spriel
  Cc: Phil Elwell, Arend van Spriel, David S. Miller, Jakub Kicinski,
	Linus Walleij, linux-wireless, brcm80211-dev-list.pdl,
	SHA-cyfmac-dev-list

Arend van Spriel <arend.vanspriel@broadcom.com> writes:

> On 1/27/2022 2:17 PM, Kalle Valo wrote:
>> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
>>
>>> On 1/27/2022 1:08 PM, Kalle Valo wrote:
>>>> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
>>>>
>>>>> On 1/19/2022 9:53 AM, Phil Elwell wrote:
>>>>>> On 19/01/2022 06:01, Kalle Valo wrote:
>>>>>>> Phil Elwell <phil@raspberrypi.com> writes:
>>>>>>>
>>>>>>>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>>>>>>>> by a check to the validity of the fwctx->req->board_type pointer. This
>>>>>>>> results in a crash in strlcat when, for example, the WLAN chip is found
>>>>>>>> in a USB dongle.
>>>>>>>>
>>>>>>>> Prevent the crash by adding the necessary check.
>>>>>>>>
>>>>>>>> See: https://github.com/raspberrypi/linux/issues/4833
>>>>>>>>
>>>>>>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware
>>>>>>>> binaries")
>>>>>>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>>>>>>
>>>>>>> I think this should go to v5.17.
>>>>>>
>>>>>> Is that an Ack? Are you asking me to submit the patch in a different way?
>>>>>
>>>>> Similar/same patch was submitted by Hector Martin [1].
>>>
>>> Fine by me. Hector's subset series (fixes) is ready to be taken as
>>> well, right?
>>
>> I have not looked at Hector's patches yet, my plan is to take them to
>> wireless-next.
>
> Some of them are improvements so wireless-next is where those belong,
> but a few (patches #1-3, and #6) are actual bug fixes.

To avoid conflicts I'm keeping the bar high for patches going to
wireless, so it's mostly regression fixes or otherwise important fixes.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-27 15:36               ` Kalle Valo
@ 2022-01-27 16:22                 ` Arend van Spriel
  0 siblings, 0 replies; 12+ messages in thread
From: Arend van Spriel @ 2022-01-27 16:22 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Phil Elwell, Arend van Spriel, David S. Miller, Jakub Kicinski,
	Linus Walleij, linux-wireless, brcm80211-dev-list.pdl,
	SHA-cyfmac-dev-list

[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]

On 1/27/2022 4:36 PM, Kalle Valo wrote:
> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
> 
>> On 1/27/2022 2:17 PM, Kalle Valo wrote:
>>> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
>>>
>>>> On 1/27/2022 1:08 PM, Kalle Valo wrote:
>>>>> Arend van Spriel <arend.vanspriel@broadcom.com> writes:
>>>>>
>>>>>> On 1/19/2022 9:53 AM, Phil Elwell wrote:
>>>>>>> On 19/01/2022 06:01, Kalle Valo wrote:
>>>>>>>> Phil Elwell <phil@raspberrypi.com> writes:
>>>>>>>>
>>>>>>>>> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
>>>>>>>>> by a check to the validity of the fwctx->req->board_type pointer. This
>>>>>>>>> results in a crash in strlcat when, for example, the WLAN chip is found
>>>>>>>>> in a USB dongle.
>>>>>>>>>
>>>>>>>>> Prevent the crash by adding the necessary check.
>>>>>>>>>
>>>>>>>>> See: https://github.com/raspberrypi/linux/issues/4833
>>>>>>>>>
>>>>>>>>> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware
>>>>>>>>> binaries")
>>>>>>>>> Signed-off-by: Phil Elwell <phil@raspberrypi.com>
>>>>>>>>
>>>>>>>> I think this should go to v5.17.
>>>>>>>
>>>>>>> Is that an Ack? Are you asking me to submit the patch in a different way?
>>>>>>
>>>>>> Similar/same patch was submitted by Hector Martin [1].
>>>>
>>>> Fine by me. Hector's subset series (fixes) is ready to be taken as
>>>> well, right?
>>>
>>> I have not looked at Hector's patches yet, my plan is to take them to
>>> wireless-next.
>>
>> Some of them are improvements so wireless-next is where those belong,
>> but a few (patches #1-3, and #6) are actual bug fixes.
> 
> To avoid conflicts I'm keeping the bar high for patches going to
> wireless, so it's mostly regression fixes or otherwise important fixes.

Understood. No problem.

Regards,
Arend

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4219 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path
  2022-01-18 15:45 [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path Phil Elwell
  2022-01-19  6:01 ` Kalle Valo
@ 2022-01-28 14:07 ` Kalle Valo
  1 sibling, 0 replies; 12+ messages in thread
From: Kalle Valo @ 2022-01-28 14:07 UTC (permalink / raw)
  To: Phil Elwell
  Cc: Arend van Spriel, Chung-hsien Hsu, David S. Miller,
	Jakub Kicinski, Linus Walleij, Phil Elwell, linux-wireless,
	brcm80211-dev-list.pdl, SHA-cyfmac-dev-list

Phil Elwell <phil@raspberrypi.com> wrote:

> The call to brcm_alt_fw_path in brcmf_fw_get_firmwares is not protected
> by a check to the validity of the fwctx->req->board_type pointer. This
> results in a crash in strlcat when, for example, the WLAN chip is found
> in a USB dongle.
> 
> Prevent the crash by adding the necessary check.
> 
> See: https://github.com/raspberrypi/linux/issues/4833
> 
> Fixes: 5ff013914c62 ("brcmfmac: firmware: Allow per-board firmware binaries")
> Signed-off-by: Phil Elwell <phil@raspberrypi.com>

Patch applied to wireless.git, thanks.

665408f4c3a5 brcmfmac: firmware: Fix crash in brcm_alt_fw_path

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20220118154514.3245524-1-phil@raspberrypi.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-01-28 14:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 15:45 [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path Phil Elwell
2022-01-19  6:01 ` Kalle Valo
2022-01-19  8:53   ` Phil Elwell
2022-01-19 10:00     ` Kalle Valo
2022-01-19 15:48     ` Arend van Spriel
2022-01-27 12:08       ` Kalle Valo
2022-01-27 12:59         ` Arend van Spriel
2022-01-27 13:17           ` Kalle Valo
2022-01-27 14:30             ` Arend van Spriel
2022-01-27 15:36               ` Kalle Valo
2022-01-27 16:22                 ` Arend van Spriel
2022-01-28 14:07 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.