Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2100545ybl; Sun, 19 Jan 2020 19:05:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzdsgtW4G9WKoUqkEUGsN9BwS452gnz76qlQqr9arlkm0Nh5l3ceMDoxJWbRlyyXPPgalgS X-Received: by 2002:a9d:5c10:: with SMTP id o16mr15093260otk.286.1579489552736; Sun, 19 Jan 2020 19:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579489552; cv=none; d=google.com; s=arc-20160816; b=vL62Nd9Qq3Uy5xCyG68iEozfqn/PIxRsOdmOcwW5Anrvgrh1rQMRoLn0QIi+E/XKkq tD5JDkatIbadOA94JUjZwFoKkYMQ2KWGOcXEGD90w4MQJ6nKrYBX8Y3dK/YY3C7F0II/ FUu6ZwyrxJeVmAIM+y79WcbUIzslj91tKcwHT9t0oDs3TmWv5AvDy8etDYuFLumdLOAh 4eMroaGwiCL2yAk3dFEAgIQBBapC/XDSB9CH2R4h9IiBjCnPATFsECeEh7Yuz0Yfqhii 1n4V/45cT0cCoxDi+h6yzmPA3Yc3MqEYoQY6z02ikBpJt10GCKBG1GUQq6omI98WJ0rl muWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=pDKlWN1fmSHr5fcj3YZdXdbjNkmSj+SU5juSWWTVnxc=; b=tUwgJSAkXcI1/DNShZCfWtOV1yiGARB4FrpFcj7bp/QqA/4og8g/BDoKnTqN0WOywY TKV9jy31sJ0eTsF7Axfw3nmD31oL2/7O8C7C9D26gPFNCDcpaPRCsTEfBEcp5kMu5H/S UZvHE6ICtd1B88TxfzAskD4boQiLvrdnX7k6RWCG6Obo570Zw3ODII2WHg827/lxBiIY YAfipOgVDrHDhiPHd6jj20iuxhqoR9jf0tMnPNxBprJdO6pl0mEuaHUeyitMkpYOEsSB fGUk0Vz5CucssCI0gxapuwMlFX5TG0R1E/eRs3JzvHYDnlixtqGpTo72ywMQIpd6w1II ACWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=NmWpj6KZ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si17678835oih.154.2020.01.19.19.05.40; Sun, 19 Jan 2020 19:05:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=NmWpj6KZ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729008AbgATDFj (ORCPT + 99 others); Sun, 19 Jan 2020 22:05:39 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:51015 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728949AbgATDFj (ORCPT ); Sun, 19 Jan 2020 22:05:39 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1579489538; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=pDKlWN1fmSHr5fcj3YZdXdbjNkmSj+SU5juSWWTVnxc=; b=NmWpj6KZR6oaeoFRqmf3SZGmZXbiwZUqtS+FW9ilGic2Vz8DJsuBcgyyE+IVrzUjaSu7XzXV eWaYluiVdlRPYP6PQbRajclQpjbSpN64/HRxYJHfM7cFggx/6aFXvzygb3DZD01zG7H3lH52 BEd2kTC8aKyYC9EsFi03xiEHn44= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e251900.7efb292b5ca8-smtp-out-n02; Mon, 20 Jan 2020 03:05:36 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C45D0C4479C; Mon, 20 Jan 2020 03:05:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7B90EC43383; Mon, 20 Jan 2020 03:05:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 19 Jan 2020 19:05:36 -0800 From: Wen Gong To: Justin Capella Cc: ath10k , linux-wireless@vger.kernel.org Subject: Re: [PATCH] ath10k: add retry mechanism for ath10k_start In-Reply-To: References: <20200117083605.392-1-wgong@codeaurora.org> Message-ID: X-Sender: wgong@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-01-19 17:17, Justin Capella wrote: > Is the same address always used for "struct ath10k *ar = hw->priv" -- > even when driver is stopped / bus errors are encountered? If not this > could potentially be use after free scenario? "struct ath10k *ar = hw->priv" will changed only if rmmod ath10k_sdio/ath10k_pci/ath10k_ahb... it will not changed for "ifconfig wlan0 down" > > Most code tries to protect the ->state with the config mutex, might > need to do that here too yes, I added conf_mutex to protected the ar->state change in v2:https://patchwork.kernel.org/patch/11340881/