Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6649273iob; Wed, 11 May 2022 02:14:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE3ueulMtbPnOLDJyGYJft4iyw3sINwVW0iDeuhgJhHkNL6uHeOh4vtfuVwsKAZnTrIPCV X-Received: by 2002:a05:6a00:a85:b0:506:b9e:7f43 with SMTP id b5-20020a056a000a8500b005060b9e7f43mr24458534pfl.5.1652260458887; Wed, 11 May 2022 02:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652260458; cv=none; d=google.com; s=arc-20160816; b=zP7Q+FJGosY98HyAfziwNe7vSqKEX27H2fZq/AhwPGPeTfK1eFt6D2jyQUA+w2muPT s8dS/1BZ+WWAnWQPVcqiXA0PHlnqkcEIT4rH88GRdvl6pGJ5pCPMLudCuvU0v31xaDM/ QI7xXENyZvG6t1ZQZFJFgA43lb5S7hWP4vaZ7UTrATyLL0m8YFO7jMUsfSyjJKD56Xka pxqBf2T58n1DgOK6x+192mvPkeKFigQo0H6BphQ1h0wAyFppSM6X7uJac7LV5MrYJLiB c/zVnjEaIpvzGTURLisj633ML2/+td2dgzBZVkkjKsllVsGBYCHpQ8AOm+j+e5w1u0Cq xU+w== 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=XnOvglVNHVLarw+996jtcu2xbc6PcehLupQqhSAk4cA=; b=CdV6AMOv7FNl9Z8mmZisaE/cwUBOwhPADYxpo+MmtlbtHMzB9zTQZgIyw7JZR3LYEO L7K0Mf1qs0zjBxy5i90xlDpINEbRCQYsWFx9EvDlpPddRUuFAl9qgHJo2bMnacPgJDf+ 4H19WUzb8pr07KNqcRxmPWk97sOtLSkyUFYJDLpG8aKC/q0vLyMMEPulpTIoFaECdZ1L NzD8/EsXqxhaP833HBjNO27DCnm9cMTsjX6gHvhVmEahytLiXJ+WynmMtqvtoQafiTIA NoOEgQnx8SsCL7d3NT7KLRrCUqXhSSbC2UrWuwqYWFv4is/UvfNLKFkeouX9b5iRb6IP e+0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kU0waMTx; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m28-20020a634c5c000000b003c65dfad4afsi2213482pgl.367.2022.05.11.02.14.04; Wed, 11 May 2022 02:14:18 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=kU0waMTx; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232723AbiEKEvF (ORCPT + 69 others); Wed, 11 May 2022 00:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235636AbiEKEvB (ORCPT ); Wed, 11 May 2022 00:51:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 238E237A94; Tue, 10 May 2022 21:51:00 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id C4B3BB8211A; Wed, 11 May 2022 04:50:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB600C385DB; Wed, 11 May 2022 04:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652244657; bh=LpwTYJ2bTlah3a8a15V9HoQ1uA7dwyzrw3H6Zhd1XFI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kU0waMTx5CInPR+QO0yRUXu1lPiXK6kQDtSkcO4BqoRl1y1/7bg16R1yAJrAJ8zmy fZn6snHY7mrGvBtNjI5/RMeYHvYbSQN/gDhR5atJtubwWTlizd/0z4b6QnJjGITdc2 XOtPjUOkdPc0IJTthAHoOzXE3cMSD2wAd2Yw1iCqiPROGVPE2UhJ+v14kyBsX+jjuR ZgyHPYS9GaP/1JlNJyPNvZpsxmwP+j/fi4TGfZSy3Nzp9q9MZmS40TU6QQoNMyTPT+ 3OgRxwdXJFXpqBmgpMvoft1DSI/Ua6BHg5It2YWT1paynftZOvBI+bjY0F7bwZ+rd8 /HmUgDdn98GYg== From: Kalle Valo To: Pavel Skripkin Cc: Tetsuo Handa , Toke =?utf-8?Q?H?= =?utf-8?Q?=C3=B8iland-J=C3=B8rgensen?= , ath9k-devel@qca.qualcomm.com, davem@davemloft.net, kuba@kernel.org, linville@tuxdriver.com, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+03110230a11411024147@syzkaller.appspotmail.com, syzbot+c6dde1f690b60e0b9fbe@syzkaller.appspotmail.com Subject: Re: [PATCH v3 1/2] ath9k: fix use-after-free in ath9k_hif_usb_rx_cb References: <80962aae265995d1cdb724f5362c556d494c7566.1644265120.git.paskripkin@gmail.com> <87h799a007.fsf@toke.dk> <6f0615da-aa0b-df8e-589c-f5caf09d3449@gmail.com> <5fd22dda-01d6-cfae-3458-cb3fa23eb84d@I-love.SAKURA.ne.jp> <3cb712d9-c6be-94b7-6135-10b0eabba341@gmail.com> <426f6965-152c-6d59-90e0-34fe3cd208ee@gmail.com> Date: Wed, 11 May 2022 07:50:50 +0300 In-Reply-To: <426f6965-152c-6d59-90e0-34fe3cd208ee@gmail.com> (Pavel Skripkin's message of "Tue, 10 May 2022 22:26:38 +0300") Message-ID: <87ilqc7jv9.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Pavel Skripkin writes: > Hi Tetsuo, > > On 5/6/22 02:31, Tetsuo Handa wrote: >> On 2022/05/06 4:09, Pavel Skripkin wrote: >>>>> And we can meet NULL defer even if we leave drv_priv = priv initialization >>>>> on it's place. >>>> >>>> I didn't catch the location. As long as "htc_handle->drv_priv = priv;" is done >>>> before complete_all(&hif_dev->fw_done) is done, is something wrong? >>>> >>> >>> I don't really remember why I said that, but looks like I just haven't opened callbacks' code. >> >> OK. Then, why not accept Pavel's patch? > > As you might expect, I have same question. This series is under review > for like 7-8 months. > > I have no ath9 device, so I can't test it on real hw, so somebody else > should do it for me. It's requirement to get patch accepted. As Toke stepped up to be the ath9k maintainer the situation with ath9k is now much better. I recommend resubmitting any ath9k patches you might have. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches