Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2874196rwb; Mon, 3 Oct 2022 06:48:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6SeYqKmtQtQjBQiiCdZrA1nhE8/3yFM6bnlqv7UQSRwBUHFweJyeVATLHOzM/HldTMqjWt X-Received: by 2002:a17:907:3e88:b0:78b:ea66:a1e4 with SMTP id hs8-20020a1709073e8800b0078bea66a1e4mr2581417ejc.91.1664804885995; Mon, 03 Oct 2022 06:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664804885; cv=none; d=google.com; s=arc-20160816; b=e0ihtds6FzYBsTc3GEIAIuqU+TtpYtdAYkXolGytmFxGQc4n8bCfeGPtRHlab6O9cE sFC4nJwymxxA1RUv0o60ui2CXbzq6L9z8ySlUTyLulVAQfgfahiNWGZZLVlVCf5d7Slj lrZWfJYPdxkEbzW6fT7yDDfD2g/k2qfPA59Fb2q6kX6BciM4Q+DcYwPjk6xAjsBp7mBZ pgdbUQ1Jieq9EoESV/zOmZSBN/BDuQhWRIbMnMBe6Hdcxp3cz33ZsLCOUqXK3LbAE4V9 MOxVJMxG3+1crt20SRYi+a0KeEYpguBbiDcSsqD7nDt0fhRvUSqm5aZhes7MqUu4UZCa 8ZVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XWT1hunNTTZ1kXQWDm4p4cO00h/ZvRurlxSwdCMEw68=; b=Z0nm2SgPGHEvWLzbZvXyq4hRst9S+gQT4ChV1dUBjALQnj1zFmyLU1CPFBryKQu5rE BtbwKCxLCh6xNBbNNwBvcwhQuQxr96Lymhyun2Zgv+9Tn83K7O2j0cavJS4JEv7LYS9C DMirL/bbx4npCgkWgCmluffTWCUyjkrRx4tsuZirvTnmzlt3Of/2OfLHNhsbpyARR3qT dLVgzNSN2H+DUauLhBIWB0275UekF8CrxEOutGLhhGswe88TYFya5zEn0n/Sidt7EUz2 yIB10dbzNv3bhMZMB9fBroPz3bbl891TkrYsMZ1an9Al+OFPuV6nj5BBHBn5S2HIsZko qVBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gz1-20020a170906f2c100b007835e4733cbsi7239104ejb.201.2022.10.03.06.47.21; Mon, 03 Oct 2022 06:48:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229952AbiJCNWi (ORCPT + 99 others); Mon, 3 Oct 2022 09:22:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbiJCNWh (ORCPT ); Mon, 3 Oct 2022 09:22:37 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1944140542 for ; Mon, 3 Oct 2022 06:22:35 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 34C3816F8; Mon, 3 Oct 2022 06:22:42 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 80B403F73B; Mon, 3 Oct 2022 06:22:34 -0700 (PDT) Date: Mon, 3 Oct 2022 14:22:32 +0100 From: Cristian Marussi To: Shivnandan Kumar Cc: sudeep.holla@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, quic_rgottimu@quicinc.com, quic_avajid@quicinc.com Subject: Re: Query regarding "firmware: arm_scmi: Free mailbox channels if probe fails" Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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-kernel@vger.kernel.org On Fri, Sep 30, 2022 at 06:29:02PM +0530, Shivnandan Kumar wrote: > hi Cristian, Hi Shivnandan, > > Thanks for your support in providing the patch to try. > > I found one race condition in our downstream mbox controller driver while > accessing con_priv, when I serialized access to this, issue is not seen on 3 > days of testing. Good to hear that you find the issue. > > As you rightly mentioned that your provided patch will impact all the other > users. > > Also if? we take your provided patch, same race still exists while accessing > con_priv in our downstream mbox controller so this issue will still be > there. > Yes indeed, even though I think that race in the mailbox core between RX path and chan_free could still be theoretically possible it does not seem to me appropriate to try to fix it now that you cannot reproduce it anymore and no other mailbox user has ever raised this concern (even though, as said, the proper solution to that race wont probably be directly in the mailbox-core as in my experimental two liners..) > So, we are planning to merge the patch( serialized access to con_priv) in > our downstream mbox controller now. > Ok, just out of curiosity, once done, can you point me at your downstream public sources so I can see the issue and the fix that you are applying to your trees ? Thanks, Cristian