Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1444487pxu; Thu, 17 Dec 2020 10:04:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDTYpEvMkjX0/xFK093Pd4/FzfHJtqnNIkxkzrtcQ/h4MFpCuQuO3keJLehk1QuliR0Ai3 X-Received: by 2002:a05:6402:1386:: with SMTP id b6mr597876edv.42.1608228243257; Thu, 17 Dec 2020 10:04:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608228243; cv=none; d=google.com; s=arc-20160816; b=ahMT8OUXJg/1KLTexV901P6/OLOsDPYvNSVwYTnJdKiDSr0z30G0i+Se+CS6EAQj/D hT+cKWTF1sZtZbebplw32YKbTbjPCJvvDCJKBuZAqU+HpqaL4f3L7bgVFQ1n+j7T0lXH r078vcCrAIBr7McDBf4N5sCjW3ym0bZOF7s9vbjMncRk6x2vfS24hYSqB8T0xJjbh9GY FKGf5m1KHxe9T1TfrpUxSdCg0nJ4WcUpsAImRUDFgteT3mmdA3XfYj28qu5S+xTsN/Ly EOmlv9Vme5MPyroRKn0h5dBquaFKlBoY8k+sCcmfdKSDKFCg5ld9iH9m4ikcbwHnx9BF 59Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=Te50MoqqRMHM7fjIFunWe/+4qkBpnZytK59H2S49fM4=; b=Pc76Cy9B6tBotaNLmS8oaYp3lKr3eyGIZK0w2uNpxJmnUDxBUfcr/hrPn3xPxhJxlA SKnVlVjUaUhOBiSduUem+6mcEbCt8hSPn33xOis9zby4VeuwW0/pbgv8yYLs+p9pOuzx 5xqwTjmgOElhs9fxs8ovj5yHFQIta8ppKM8Y8unbMivjaFLlA2beO53GqXyS7dGvBpDu +WkbzE2IHEtIXrh6SxRQLN7zcCl1r8oAWl3arGoVkbvVR1TK8MT3Vnm5HegUJutPqPCl CMkx/3xOWhbrD0MraDtW/4UFxs2B3cMF+nANctI+idbPIYlp1As3yvY9aY3nS5dQITrB 0vxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilLDIMRl; 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 r3si4848598edy.595.2020.12.17.10.03.38; Thu, 17 Dec 2020 10:04:03 -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=ilLDIMRl; 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 S1729478AbgLQSAg (ORCPT + 99 others); Thu, 17 Dec 2020 13:00:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:55738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726773AbgLQSAg (ORCPT ); Thu, 17 Dec 2020 13:00:36 -0500 Date: Thu, 17 Dec 2020 18:59:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608227995; bh=Te50MoqqRMHM7fjIFunWe/+4qkBpnZytK59H2S49fM4=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=ilLDIMRlgRmsmdMzazd1qa0e6wiD7KS9YgSsra4lPbkQqTB5T1q6VtZjqh0UzggMK 8SjyDT7X3Q4XEKFZaEMUN7dMOtOFW/HywRmTivQ4woJmlMJoOqEs5w506PtNEmipmc we4z5VnekH2fXU57QFgcmAOlpYX7byYC2A8iJD3iuj7nDTfrL4xiUzVySvv8AvCsI9 2sjciXGzkzdQVkki4/Dgff8PHOba4xVqM9bBHqKzmMxPGmN3zLf3oAMmpRLPJK6dtV tribldj1pGaaKMBCTSItIALNaWLii08g8qRDDJ08dG88pWyDW1nBgS3VaKQbzGGdIo TjvJ3DxcH8wLw== From: Lorenzo Bianconi To: Kalle Valo Cc: Felix Fietkau , linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com Subject: Re: [PATCH] mt76: mt76s: fix NULL pointer dereference in mt76s_process_tx_queue Message-ID: <20201217175950.GD16606@lore-desk> References: <20201217163616.546AFC433CA@smtp.codeaurora.org> <20201217171105.GC16606@lore-desk> <58f03209-de19-0f35-fed3-d20366f933d2@nbd.name> <87r1nos4ym.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YToU2i3Vx8H2dn7O" Content-Disposition: inline In-Reply-To: <87r1nos4ym.fsf@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --YToU2i3Vx8H2dn7O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 17, Kalle Valo wrote: > Felix Fietkau writes: >=20 > > On 2020-12-17 18:11, Lorenzo Bianconi wrote: > >>> Lorenzo Bianconi wrote: > >>>=20 > >>> > Fix a possible NULL pointer dereference in mt76s_process_tx_queue t= hat > >>> > can occur if status thread runs before allocating tx queues > >>> >=20 > >>> > Fixes: 6a618acb7e62 ("mt76: sdio: convert {status/net}_work to mt76= _worker") > >>> > Signed-off-by: Lorenzo Bianconi > >>>=20 > >>> Failed to apply to wireless-drivers: > >>=20 > >> Hi Kalle, > >>=20 > >> sorry for the noise. I guess to apply this patch we need to apply even= the > >> following series: > >> https://patchwork.kernel.org/project/linux-wireless/cover/cover.160716= 4041.git.lorenzo@kernel.org/ > >>=20 > >> @Felix: do you think it is ok to apply "remove wake queue tx logic for > >> usb/sdio" series to wireless-drivers? > > > > Yes, that makes sense. >=20 > Ok, I assigned the series to me and changed this back to New state. >=20 > The commit logs in series don't really answer to "why?", though. > Lorenzo, can you reply to those patches and give more info how they > help? Or are they just cleanup? It is mostly a cleanup since after commit 90d494c99a99fa2eb858754345c4a9c851b409a0 ("mt76: improve tx queue stop/wake= "), we do not need the wake logic anymore in the status path since the queues are no longer stopped in the tx path. Regards, Lorenzo >=20 > --=20 > https://patchwork.kernel.org/project/linux-wireless/list/ >=20 > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches --YToU2i3Vx8H2dn7O Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCX9uckwAKCRA6cBh0uS2t rFkcAQDHB+L74RRN8L1UOWbM2e0+fr2zDvVAJSKxSb9gWYGznwEA56n/e2RIZuOd qNbutjZBQUrJXpwcJm1KPx5uq7Zy+AM= =4p3T -----END PGP SIGNATURE----- --YToU2i3Vx8H2dn7O--