Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp363871rwr; Tue, 25 Apr 2023 23:54:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZN2CcLPyxY8WVuqEhwlc6O1FK57M93KHpS43OGIhn2fxx0G+HTD4i/sBFqr5QIC/g7WUXc X-Received: by 2002:a05:6a21:998f:b0:ef:7d7b:433b with SMTP id ve15-20020a056a21998f00b000ef7d7b433bmr25379645pzb.41.1682492049476; Tue, 25 Apr 2023 23:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682492049; cv=none; d=google.com; s=arc-20160816; b=z88FLJyXakmDnwAAVXaA7QV4wuYoFcRgg2MJc3fLkE7DzQSuySWdx8WWXZJqe8t/BZ 0teIdwH0HJfwHg+OKC9GI+q1cuGlKak2aGFklVQadhCNckrT0DiZ1irfdT/5lB/Ydl8A 25gl/xoK8d12xGqgEMpiABkOj55TS+3Dp9pniaTg8U1DRYpeYJnPLYN3abeMoJ7dHhLY RYCWyZwqyRDPZAKcYjmIBeufYkUg9k1MedLpbc/UxiwZUBlkEGjQB6lhAKUMtAG16zuo /aPg+OqxVTRFEgWh6lY9VfS0ASM6dAiU3hyQh+GOEJJTOMnVLBdPqu19LBINjnGncoBX U+/w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Vp/HHYm7gzX+Qpus3X2Jp2X/Q8xer7S/T3RQqCYu+vc=; b=QzNTHnY+3z6Emw5z/cB2hLoOXL5LW0nc4VTSV+gyG15g6r7Oav+J/arjacMqZW9ObX Fv4AjNYpHdSWzNUCTIBzJdEZlsJdgI7NY3+IoBzH+QvvIyTB+riKVbgqCyu+CcU1lqfp RFHKAU5wQUiMC439f1vCfj2/qerbU1tXwMvBn5R851FccPyAM/VW0oFxHBrTvjkD/vGq rgP+7ZncTjLZP09//kXH5WW92eSd/kKQCfvIRVHy8yxA7c+uSnUNO1/D+9XoCQ7LASLt WTcS6BGBylmSoDela94L+6MtwY2vHsJqUxAhXHqbKEEmdG4UJEn/SiEMhjSW0lLUJraL wHxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LqW4ch8Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gd17-20020a17090b0fd100b002308ac7a1b0si15470486pjb.117.2023.04.25.23.53.58; Tue, 25 Apr 2023 23:54:09 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LqW4ch8Q; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239514AbjDZGw1 (ORCPT + 99 others); Wed, 26 Apr 2023 02:52:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239649AbjDZGwX (ORCPT ); Wed, 26 Apr 2023 02:52:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8292D7E; Tue, 25 Apr 2023 23:52:18 -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 610A163357; Wed, 26 Apr 2023 06:52:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 440DEC4339B; Wed, 26 Apr 2023 06:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682491937; bh=toSMf0jhH3B5lnQsYRYUOC8wB2CtVUisrL1JID/cGdY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LqW4ch8Q+udniHHxcnq+mwILYNLbBEB+T7CCVAZt0lVFYT8lbdGeuV+z/COkps0c7 QikcFTfEztwFiRvrTCHlBFpJ7g/fkHm3rh6R/XvrPTTTUtGlwZsr83TitGuoUikXW0 Pk48LEpHO1zd/8GxMVaK0q0Kexhi6CD02JhqAd5OxrfPUrC1/7aNQfMhhZzYNBLA7z A16NmEpqoWNgW3uqnSSqqN95fXIqchHp0ClvX9xk9GvJvGh5E2kZvJCfhyH7ftMEAT tPUBaME/69u5xVmUiF/lISzW3oedJaDCVARd7fMwHZ5EPaR04E6qfbXFhQsBFpQdqf 33yAjoljQ7oWg== Date: Wed, 26 Apr 2023 09:52:13 +0300 From: Leon Romanovsky To: Jakub Kicinski Cc: Subbaraya Sundeep Bhatta , Geethasowjanya Akula , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "richardcochran@gmail.com" , Sunil Kovvuri Goutham , Hariprasad Kelam Subject: Re: [EXT] Re: [net PATCH 5/9] octeontx2-pf: mcs: Fix NULL pointer dereferences Message-ID: <20230426065213.GJ27649@unreal> References: <20230423095454.21049-1-gakula@marvell.com> <20230423095454.21049-6-gakula@marvell.com> <20230423165133.GH4782@unreal> <20230425085140.000bbcc1@kernel.org> <20230426061654.GC27649@unreal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230426061654.GC27649@unreal> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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-kernel@vger.kernel.org On Wed, Apr 26, 2023 at 09:16:54AM +0300, Leon Romanovsky wrote: > On Tue, Apr 25, 2023 at 08:51:40AM -0700, Jakub Kicinski wrote: > > On Mon, 24 Apr 2023 10:29:02 +0000 Subbaraya Sundeep Bhatta wrote: > > > >How did you get call to .mdo_del_secy if you didn't add any secy? > > > > > > > >Thanks > > > > > > > It is because of the order of teardown in otx2_remove: > > > cn10k_mcs_free(pf); > > > unregister_netdev(netdev); > > > > > > cn10k_mcs_free free the resources and makes cfg as NULL. > > > Later unregister_netdev calls mdo_del_secy and finds cfg as NULL. > > > Thanks for the review I will change the order and submit next version. > > > > Leon, ack? Looks like the patches got "changes requested" but I see > > no other complaint. > > Honestly, I was confused and didn't know what to answer, so decided to > see next version. > > From one side Subbaraya said that it is possible (which was not > convincing to me, but ok, most time I'm wrong :)), from another > he said that he will submit next version. Jakub, v2 is perfectly fine. Thanks > > Thanks