Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2348154iob; Fri, 6 May 2022 00:06:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQzrClhB38uXyi6PmKF8X34TCFrR01297xuFv2A8ppSzocsMbCqlp8q5uoSfaAdaWz+P7w X-Received: by 2002:a05:6402:51d3:b0:428:4666:b389 with SMTP id r19-20020a05640251d300b004284666b389mr2037330edd.345.1651820764765; Fri, 06 May 2022 00:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651820764; cv=none; d=google.com; s=arc-20160816; b=zDvLacWznz/dstrNxemky2uN9VVKb8LkO890qa1RveggKpOtUAMaRxfITC/AIcLSdv Zb+Du/bNkXexdpM8zo5i4QhSMQizPhZ86fAl76bUOiidhnqSWarPHYi9HC2IVo9EajeK mfX84/imDUJmXI5RzXvdt+Cl+i9PCZsZ24bjdbarmXjqAjBTEqHtqUyai8P/BPnBafrS jdIIiDgRp/3IRK2WN76IO4q+8Lb3CbWF0x12zSKkG2fxCk+RbfCrzMrxx0+qxtVIlHp/ w8+fD+zslDuRdRPrS3wmMJJ23yy6UPPGD4JuVwPy4DNQ2HMIIpFMA3h0GbXBgrZG6bY2 nP8Q== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=EonFCuqNiPLobXcI3RuEgDCpiQwRUNyq+pPr+bixa9E=; b=BML7s+B/XVMZW4DGfLp0ZevjdxpehF/Z6iwnpH9PlBdAzQtnNbHKVP9lv19feIjBtC MOUptp+EsgI5BDA5haUi6NfMqjd91AV0jvSilzgaSS3aKJ+M54eiCy+OUYS6vzkUS3ty luBfVHrqMnPSUyxJKhyLY0a8t/2ljNods385E9YOm42ZZneDooVLqeP72omUj3wACEzQ cyJnt0Bz5yC64wTmMVJIOK55LmRf4+ia6CEDjRM+M0LXfZ/d9GYx86scqeb5d/WfiLta mm7pSvIanqWjeMyWNqARtEltFfUa5qH9whfmv74Zk726tLf31uJOddb29NLQmowLtvxy FgPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a05640226cc00b00427de8106casi4429924edd.446.2022.05.06.00.05.45; Fri, 06 May 2022 00:06:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386803AbiEEXfM (ORCPT + 68 others); Thu, 5 May 2022 19:35:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386798AbiEEXfJ (ORCPT ); Thu, 5 May 2022 19:35:09 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C30245EBCE for ; Thu, 5 May 2022 16:31:28 -0700 (PDT) Received: from fsav117.sakura.ne.jp (fsav117.sakura.ne.jp [27.133.134.244]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 245NVRdq069580; Fri, 6 May 2022 08:31:27 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav117.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav117.sakura.ne.jp); Fri, 06 May 2022 08:31:27 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav117.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 245NVRRH069575 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Fri, 6 May 2022 08:31:27 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: Date: Fri, 6 May 2022 08:31:24 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v3 1/2] ath9k: fix use-after-free in ath9k_hif_usb_rx_cb Content-Language: en-US To: Pavel Skripkin , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= , ath9k-devel@qca.qualcomm.com, kvalo@kernel.org, davem@davemloft.net, kuba@kernel.org, linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+03110230a11411024147@syzkaller.appspotmail.com, syzbot+c6dde1f690b60e0b9fbe@syzkaller.appspotmail.com 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> From: Tetsuo Handa In-Reply-To: <3cb712d9-c6be-94b7-6135-10b0eabba341@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,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 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?