Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp893752pxp; Wed, 16 Mar 2022 20:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwET6ZcXuCgDW6rBZ3FO9OUzfFrHCBNIs7blE7KH2Z15omczq+aAYOHU/RC2FTvsHE/BAHN X-Received: by 2002:a17:902:db11:b0:151:fa7a:7d5e with SMTP id m17-20020a170902db1100b00151fa7a7d5emr2594802plx.125.1647487598316; Wed, 16 Mar 2022 20:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647487598; cv=none; d=google.com; s=arc-20160816; b=iyTkvjYolJtk/maPp8aT72gnYHuQS9s9MOuuuQSI7DyyzNEx79u4gJbRK851CyKgCG AqX5h+VQJF3nlL0v8sZ80TJszCez8HWgwCBmITEpBp1goAJTZ/L/YWHbbpfsZ7y2IOlP ot5s1ERtcdliczqh/Hvv987Nu/+e3X9rwX3s0x8OWm8Px0G2MZUOQr1i9GuscwrBevVl k3pNLRlGQfood81bW9Mej9DmU3fmsqS2uJyAouH7qRxuhfQw6JJLYlv3sQWcj9gd1fbM /m+dBS5SsUzfGfs42peF4hpRxb/L4KFuG4kyNb4QpRapE2CshlNAuRUyEycT8QjwGXXh aYjg== 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:dkim-signature; bh=BvWV3OKRPLrOR+4WWPxXiUIc8WeUJWgTBPBrNnDPh7o=; b=PGo24j8G2mTWGIwtFOmOc9BX1Kc6HPm23TTCptfk6oGNZ3OZ7F0TM+XVE4a280CJaw wU7lnrQgWiinLVobY5o6I4iRfZHlQMLix0l21ii3vGTWpDMwwLJepFh4FHpwfdi/XKvD WsbMwHj6QCO2Gk34m+OXqoMi4Z0fAhrl2iUBvir3wDbUbzINtZnL5HBJ1xNNNZ7DB6s0 nSJ9zBdEtqcqyTlnVEPz9hnjxh6Y4DdDrhbn7WFFOxpjf5K7tuAjOru+X6aZQpkUGfaQ +y5I4i6iXdgghKk9MnxcwSZFgrR6fIlp9GY9t2K42LfXHCUNUCVvo6nujzqzCHSYPwAj kyPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="DYMg/VRI"; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j2-20020a170902da8200b00152070a0883si3552680plx.500.2022.03.16.20.26.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:26:38 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="DYMg/VRI"; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 303B73204E; Wed, 16 Mar 2022 20:25:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355193AbiCPKou (ORCPT + 70 others); Wed, 16 Mar 2022 06:44:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355190AbiCPKot (ORCPT ); Wed, 16 Mar 2022 06:44:49 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5A3113DEF for ; Wed, 16 Mar 2022 03:43:35 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id w4so2157383edc.7 for ; Wed, 16 Mar 2022 03:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=BvWV3OKRPLrOR+4WWPxXiUIc8WeUJWgTBPBrNnDPh7o=; b=DYMg/VRIR9RfBYXzg/VJlJNBgjBzzKkyW6kmnabz6oRQ+c4yNo4jfwgtE9g1Pb6hdj v5Z+0b3Q36IyI26NrtS1YayUxT0yAeQ61lDIiivZjhTLRwFrP1xoCgOX2Fit9eDuzHRs InjK8yo7UACSv17V27BFouussBbjztqDmIKoG1oqrXIaD/EJAiwmi5A7LfkDuAitXgpV 4ZjECtG1ZJo38hx3+gseFhIS1006jHmdEWCGW5StGcRsPjSSJNCTPJILWgGbgOxzaKg9 CGFYWrqVMTiD3Kv+DXeNYrJCIhWdPH7oyDpreeEIJ1/AXMsBjW9tps5FfZpPY2WHjs6F RG5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=BvWV3OKRPLrOR+4WWPxXiUIc8WeUJWgTBPBrNnDPh7o=; b=QZJRDfgQ5UlZoUWp9Nt+K3roMWFO1LguesQrZkVFhNV1Gv+6YFWJ+RTyPlJ8k4OD0S F6XSddPlINSRxShdQF4I4FjwqMY1oHf8pVWQ9OZedv3RWc/jc1p1+/SrRkfSqlG9f7vM IzVrDxWU35TLkYSCp5DQsjDCGY2Atg5XRUZLzIeMsya1HseGn/gI/7mpToASJa2Zruyl 78tFTZFU7g6PU3djAcgK91a3ZDcOUh8WbzUJ6FQSt5zHOUadia/Wh0a3VFSAkA3yJHkn mSczooq2YWLAPmsJvJZ/E7g0SGut0FpU0sG5Xoh0kHcVcmmAbNTyfIpVAS8LiPl54zXE 3gIw== X-Gm-Message-State: AOAM532CKl9YnuvmALoM5uH2Pgzrp0/qVr1lP+YDpHfjKUO8z4umXCH7 1Ye9kJIXn3HzeZUj6aqbB1w= X-Received: by 2002:a05:6402:386:b0:415:ead8:ced with SMTP id o6-20020a056402038600b00415ead80cedmr29576796edv.407.1647427414223; Wed, 16 Mar 2022 03:43:34 -0700 (PDT) Received: from ?IPV6:2a02:1811:cc83:eef0:f2b6:6987:9238:41ca? (ptr-dtfv0poj8u7zblqwbt6.18120a2.ip6.access.telenet.be. [2a02:1811:cc83:eef0:f2b6:6987:9238:41ca]) by smtp.gmail.com with ESMTPSA id bw26-20020a170906c1da00b006c8aeca8febsm724642ejb.47.2022.03.16.03.43.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Mar 2022 03:43:33 -0700 (PDT) Message-ID: Date: Wed, 16 Mar 2022 11:43:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] ath11k: acquire ab->base_lock in unassign when finding the peer by addr Content-Language: en-US To: Kalle Valo Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Carl Huang References: <20220314215253.92658-1-dossche.niels@gmail.com> <87o826pgqr.fsf@kernel.org> From: Niels Dossche In-Reply-To: <87o826pgqr.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 3/16/22 07:13, Kalle Valo wrote: > Niels Dossche writes: > >> ath11k_peer_find_by_addr states via lockdep that ab->base_lock must be >> held when calling that function in order to protect the list. All >> callers except ath11k_mac_op_unassign_vif_chanctx have that lock >> acquired when calling ath11k_peer_find_by_addr. That lock is also not >> transitively held by a path towards ath11k_mac_op_unassign_vif_chanctx. >> The solution is to acquire the lock when calling >> ath11k_peer_find_by_addr inside ath11k_mac_op_unassign_vif_chanctx. >> >> Fixes: 701e48a43e15 ("ath11k: add packet log support for QCA6390") >> Signed-off-by: Niels Dossche > > On what hardware and firmware version did you test this? > Hi Kalle Thanks for your reply. I am currently working on a static analyser to detect missing locks. This was a reported case. I manually verified the report by looking at the code, so that I do not send wrong information or patches. After concluding that this seems to be a true positive, I created this patch. However, as I do not in fact have this particular hardware, I was unable to test it. Thanks