Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6269769rwl; Mon, 9 Jan 2023 06:24:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXtPFrRc3JaE7jp8Np2Wn7ttPClNYNRL740Vt1KX2hbL6N/34del76WCJ5+sXaNfijJ7+ynK X-Received: by 2002:a17:907:8dcb:b0:840:c37d:b5e4 with SMTP id tg11-20020a1709078dcb00b00840c37db5e4mr78734611ejc.16.1673274276265; Mon, 09 Jan 2023 06:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673274276; cv=none; d=google.com; s=arc-20160816; b=btqKTcpeb7b8jHWUda+a/mlmU2PV5MG7OdWx6LbFS7lpmRcwUe1DajiiJYSMA/Dzwv o9+HPjdJJvRo6bnTffbppS6036sOeakbu9gXqAaJluyoLYxdt5Q44xpnuQllDvutzUWg l3Z5WMcjwO6uTBbMObuFWgZGulOJkNLY3+N+LOpx8V8AaGctJeAji9IwJgoCKPIAL99B 7aqrNC2XKMR9Gqiv1Dq/JrTkda9NMzzyRinqcNoOWi4Y1FB9//SKA4NR645F7sRA94Ih 1+1bKmJ+bxeRWfwf2YVCw1FVBzdqM52aK5tLqxOyhg55BmO6LQPiPjnCJreSgOE7XTP9 5lyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :dkim-signature:message-id; bh=g1TPC4OD4go6KaIeDr8UMf4S7ukmIMuqakYtJSS4w4Q=; b=HtT1TLWBfYfZ6+jrhRAyvu8TIQrySu6SbuP8kQs7MFMnLG+eio3p6rHyBI2ZDyNpgZ 3YtFUa8HOekDt8Sm/ObSEPgZnXTu0EqZYqucaL1IFNnJ0Qky+AqbQ5wd8evatX/9cGvQ kKFrKBivrnrA8IS7C4wEW/iKRXzFdTlU+CLRfIBv6JdiUbrQRm6b5GU4q6DVBReGN5EB bDLYEoahqPUi81XAr7rNwidUvikvaZbw91MB1qlNmqJAZzh5ZJBkagOJCi5UThKGlpKX u7cuGJupkiwOdlaDPxwY80qvwgoBJyBBPL4L/zgCQKIbYlDWDcCmRWYAdNnbDPv6GHB+ 6iBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b="nBglt9/J"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc37-20020a17090716a500b007808f3f4cbcsi9969573ejc.239.2023.01.09.06.24.19; Mon, 09 Jan 2023 06:24:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b="nBglt9/J"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231224AbjAIOW0 (ORCPT + 65 others); Mon, 9 Jan 2023 09:22:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbjAIOWZ (ORCPT ); Mon, 9 Jan 2023 09:22:25 -0500 X-Greylist: delayed 992 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 09 Jan 2023 06:22:24 PST Received: from ns2.wdyn.eu (ns2.wdyn.eu [IPv6:2a03:4000:40:5b2::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6405265F6 for ; Mon, 9 Jan 2023 06:22:24 -0800 (PST) Message-ID: <3372b42f-b9bf-20e8-35f9-5370571a9e35@wetzel-home.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wetzel-home.de; s=wetzel-home; t=1673274143; bh=bwNb7nOomg5nRnP4yNloacF+RTZCjPvfmUfkMsxtiGc=; h=Date:Subject:From:To:Cc:References:In-Reply-To; b=nBglt9/JsSg8JFVO+h3aaMepjYeqbtULg9i0O7VXy9Ppj9A6cDsD5ASEgcLBbTO6x DWOqi4Q09M30klD3ynIO9RzV/Bxjgi9InzzKgicQekjDnAE+4bKv02dqBGbCyfV1VI gmeZ+9CMtifYC4pQWlbkAhwX9YaA/UE9G7NrXqv0= Date: Mon, 9 Jan 2023 15:22:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] wifi: mac80211: change initialize for sk_buff in ieee80211_tx_dequeue() Content-Language: en-US From: Alexander Wetzel To: Guenter Roeck , Wen Gong Cc: johannes@sipsolutions.net, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org References: <20221212083607.21536-1-quic_wgong@quicinc.com> <20230105052647.GA2477583@roeck-us.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 09.01.23 15:05, Alexander Wetzel wrote: > On 05.01.23 06:26, Guenter Roeck wrote: >> On Mon, Dec 12, 2022 at 03:36:07AM -0500, Wen Gong wrote: >>> The sk_buff is only set to NULL when initialize, sometimes it will goto >>> label "begin" after ieee80211_free_txskb(), then it points to a sk_buff >>> which is already freed. If it run into the "goto out" after arrived to >>> label "begin", then it will return a sk_buff which is freed, it is a >>> risk for use-after-free. >>> >>> Fixes: ded4698b58cb ("mac80211: run late dequeue late tx handlers >>> without holding fq->lock") >>> Signed-off-by: Wen Gong >> >> I don't see any progress on this patch. Is there a problem with it ? >> Did it get lost ? >> > > Looks ok for me. But I just noticed that my patch > https://patchwork.kernel.org/project/linux-wireless/patch/20221230121850.218810-1-alexander@wetzel-home.de/ > > should also fix the issue as an unintended side effect. Sorry that statement was incomplete: It's only fixed when https://patchwork.kernel.org/project/linux-wireless/patch/20221230121850.218810-1-alexander@wetzel-home.de/ and https://patchwork.kernel.org/project/linux-wireless/patch/20230106223141.98696-1-alexander@wetzel-home.de/ are applied.