Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1159854pxb; Fri, 21 Jan 2022 11:07:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPY0v/fHB4qDd8Wp0cCjzPIPl6gjYNZJOn/4Se7MfuOxS9YIKF+8dwMH4VfdaffmxqwATC X-Received: by 2002:a17:902:9682:b0:149:15d2:55ae with SMTP id n2-20020a170902968200b0014915d255aemr5309837plp.59.1642792041433; Fri, 21 Jan 2022 11:07:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792041; cv=none; d=google.com; s=arc-20160816; b=fuHuqOc7aSZ0/rfiR7mT/2Cuda7Ja2/QDOerwONmv1R2DFL4Uo+eh23Ab8Mu9rNBQw eK7TxinzD7hTyevkecZsn/4PftKzVrVZDJk2+JSdK2hE4WkVRS1RgT1qhzEEoe1DcZTq 1jQdnivmMvTeG6xECE3cwXHRxxknRIdt59IK9SsG5OdLUWpU11mlZLKroMsh4iKxUAQU oyrDzRI09v3TJ/+yHcwJAbCbJ5W6qh7/8wlNQWJLncBzGlC6E8ji9SnObRHWXtzo0iMD ku4uqaWkcFOir5lbAB0KGUSAXquoqg3PM4eYZP9Z3wjkJgGuRPB3MhYk//hOv6gTzHQF sgMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=aywVSoBcH6qQy43oh9RZwjOFNBsYJihJYvMmD2hS1Xc=; b=hHjetXuniPiXtZ2nYcgxBOiLRkTCQ3qWw5xqtdw78ctjq2vaYuVTQ5U5kujecJlu6B dP+6bl8VzZF0EgMmokEZZLY1e5WcK5yPFX3DR4H9evsaiRMSlICjkqdc3uGF/B2t1YI3 QDSMzoLZY2wsvxwh108gqCR384G/ifTR3oa9lfV8+sXF+ZYk+FVbZ10hgWtdTfZRWtf1 7DoT63WJJQWh43U8BvKYwE44c4Zde0S0NBaxmkTpmFYbvfn9DImWzFPLyy+FVwcbvCXM SKLbqpd5QmepGsDLtQBE1oZxBzXryIxFRqX7njk8Mw+fcGpIcz9yHpq+XzWv9bMgduAI EC/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bDieBct2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si7163836pga.691.2022.01.21.11.07.10; Fri, 21 Jan 2022 11:07:21 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bDieBct2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345824AbiASKAR (ORCPT + 70 others); Wed, 19 Jan 2022 05:00:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233471AbiASKAQ (ORCPT ); Wed, 19 Jan 2022 05:00:16 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96232C061574 for ; Wed, 19 Jan 2022 02:00:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 339B761535 for ; Wed, 19 Jan 2022 10:00:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAFEAC004E1; Wed, 19 Jan 2022 10:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642586415; bh=MN6e0XnGDJ3IHgXQgi3zjN2BIx62Wsfwxq8ZtCGuGM4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bDieBct2B1PvYxsHwB5RYhnqxJEzlwd+epqBxaSE1m6pGk7+F/MHUN/ZDGXpd0Znq Ob/j+r45hJdC2lkGFhiMd63A2GpZU9RimMdGKvuEb5gg+VQ1Mq0cFu6h8X8n810MhI kfLzWTUSwryAYEX9TTTCYgRzSD8cYyZCMcNU664V5axit+jPBFVeS2Y5saGxv5Dax7 n2JOxvAZBv8Jz6A/aaXww0h6xfwm7PujyfFPf4GG5ZZzQ6j38pwYXCH4SEZ1zDF/U0 Z/SbFZicZrtc4Ba+8UJw0QO85i7gB3fhYJAvXy1cKbRLW6PEi1dzV1y1l2M6tNJygn FpbcofSFUdqwA== From: Kalle Valo To: Phil Elwell Cc: Arend van Spriel , "David S. Miller" , Jakub Kicinski , Linus Walleij , linux-wireless@vger.kernel.org, brcm80211-dev-list.pdl@broadcom.com, SHA-cyfmac-dev-list@infineon.com Subject: Re: [PATCH] brcmfmac: firmware: Fix crash in brcm_alt_fw_path References: <20220118154514.3245524-1-phil@raspberrypi.com> <87h7a0gt7f.fsf@kernel.org> <07dbaff1-bc12-d782-ed14-ef3f33d3c041@raspberrypi.com> Date: Wed, 19 Jan 2022 12:00:08 +0200 In-Reply-To: <07dbaff1-bc12-d782-ed14-ef3f33d3c041@raspberrypi.com> (Phil Elwell's message of "Wed, 19 Jan 2022 08:53:46 +0000") Message-ID: <878rvcgi53.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Phil Elwell writes: > On 19/01/2022 06:01, Kalle Valo wrote: >> Phil Elwell 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 >> >> 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