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 22DA6C433EF for ; Mon, 23 May 2022 19:27:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230422AbiEWT1Z (ORCPT ); Mon, 23 May 2022 15:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230435AbiEWT05 (ORCPT ); Mon, 23 May 2022 15:26:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E1E839176; Mon, 23 May 2022 12:06:44 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 9F23F612AC; Mon, 23 May 2022 19:06:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5411C385A9; Mon, 23 May 2022 19:06:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653332803; bh=AumV0nZ46LzfW6RXeTCbFojukMPLFQlCkqhJHUS2YwU=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=GLJxwzi9LxJhx45hJBXTRHgfOZVf/HA3FeAK4t+rf+pSo58j1gvuNgjCX/pxLTJ1q LOT/S28vgbFIiXPvpWfc0rTLET+gNuvk6iC/mOFLCtqCbvNIu1ZSO3FryOLeu/lvYr 46vEtDK9eOULBQdJjJrp2yk4rFhfF8eSNRWsLF22orHlVqZAP/58dLEw9XMW1kQOhE o6/CFcQp+BOyn6oQnCg/lahg60zUi1ioc6vYhn6DRNCYVCH6Ft4UKoKHKB46jdNTL5 2TM+q9C4IGBtBHx66hfo2u2KwMYOU2GTKY+FiMwQKJYaOUvGNLijdQ/00e0BSTZPI3 miC8EwPOquALA== From: Kalle Valo To: Johan Hovold Cc: Johan Hovold , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] ath11k: fix netdev open race References: <20220517103436.15867-1-johan+linaro@kernel.org> Date: Mon, 23 May 2022 22:06:37 +0300 In-Reply-To: (Johan Hovold's message of "Mon, 23 May 2022 16:48:44 +0200") Message-ID: <875ylwysoy.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Johan Hovold writes: > On Tue, May 17, 2022 at 12:34:36PM +0200, Johan Hovold wrote: >> Make sure to allocate resources needed before registering the device. >> >> This specifically avoids having a racing open() trigger a BUG_ON() in >> mod_timer() when ath11k_mac_op_start() is called before the >> mon_reap_timer as been set up. >> >> Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") >> Fixes: 840c36fa727a ("ath11k: dp: stop rx pktlog before suspend") >> Signed-off-by: Johan Hovold >> --- > > For completeness: > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 Thanks, added in the pending branch. You submitted this as RFC but do you mind if I apply this anyway? The patch looks good and passes my tests. But I do wonder why I haven't seen the crash... -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches