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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F07DC46467 for ; Wed, 4 Jan 2023 14:47:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235221AbjADOrb (ORCPT ); Wed, 4 Jan 2023 09:47:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjADOr3 (ORCPT ); Wed, 4 Jan 2023 09:47:29 -0500 Received: from mail.toke.dk (mail.toke.dk [45.145.95.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A7C730B; Wed, 4 Jan 2023 06:47:28 -0800 (PST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1672843646; bh=Yvt1N4qdMcKgEPhpZnAvSN+ob9zNyUULJ3ZU+8ssutY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jfgrGv6YvJKDIfleebuLMKJuOgKX5H72/VQQEqEAptK2uLmZsduynHIX+VV4E8daa Ja3I0pb3yMQiZMSoP8EncvWY/p89evzlZe4RYu5bkGOs//VD6UlJzUlVt24ofaMrSV 54VSNKjleKdXLLAYl4Hia07+o2kP5sQxV0MEe2/Z37KGXzYs+/vgyQiRkkj1b3MeDT Bm/7kGQJ4NoHL328VSWBvOHxV8oMbtweKDxclXJ3G6gOO8b1tWQaG9E5XRRx5L8nO0 NGjvQStIoShpsK1q79/73ItmhrFGh0AnBdw9Egxktk2rIzbPCGESmYcdLDXWN2QpzW ytdxu1GZT73nw== To: Fedor Pchelkin , Kalle Valo Cc: Fedor Pchelkin , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Sujith , "John W. Linville" , Vasanthakumar Thiagarajan , Senthil Balasubramanian , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alexey Khoroshilov , lvc-project@linuxtesting.org, syzbot+e008dccab31bd3647609@syzkaller.appspotmail.com, syzbot+6692c72009680f7c4eb2@syzkaller.appspotmail.com Subject: Re: [PATCH v4] wifi: ath9k: htc_hst: free skb in ath9k_htc_rx_msg() if there is no callback function In-Reply-To: <20230104123546.51427-1-pchelkin@ispras.ru> References: <20230104123546.51427-1-pchelkin@ispras.ru> Date: Wed, 04 Jan 2023 15:47:26 +0100 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87wn621hmp.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fedor Pchelkin writes: > It is stated that ath9k_htc_rx_msg() either frees the provided skb or > passes its management to another callback function. However, the skb is > not freed in case there is no another callback function, and Syzkaller was > able to cause a memory leak. Also minor comment fix. > > Found by Linux Verification Center (linuxtesting.org) with Syzkaller. > > Fixes: fb9987d0f748 ("ath9k_htc: Support for AR9271 chipset.") > Reported-by: syzbot+e008dccab31bd3647609@syzkaller.appspotmail.com > Reported-by: syzbot+6692c72009680f7c4eb2@syzkaller.appspotmail.com > Signed-off-by: Fedor Pchelkin > Signed-off-by: Alexey Khoroshilov Acked-by: Toke H=C3=B8iland-J=C3=B8rgensen