Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7590281rwl; Tue, 10 Jan 2023 02:54:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXsS1Ktoqn1mcesgdDJe6/8BRhvFBm0e7WaonXKm9eMCONOv5KFMft6qYnvQbc+GWDo3zmGN X-Received: by 2002:a17:907:8c0c:b0:7fd:f1b5:7fd5 with SMTP id ta12-20020a1709078c0c00b007fdf1b57fd5mr61394436ejc.19.1673348051194; Tue, 10 Jan 2023 02:54:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673348051; cv=none; d=google.com; s=arc-20160816; b=O+shw3GZRyRowQX0RGPgCH43TZzqRXeH8/qOVgHITKDph1rpjJJ2QE3YRxK4leMcek 6eq7wMb5NBIn/NipEi/H781S7a9/5fSxDVQKdbSbWZne5BHLdJ7kHeNc+Udk9auwSBy0 wRhI8dCvL4RbODX4K4SLXCKs0jrlUOLQnny5t5YwyyaandBMjSMmUqguQVQOOFG8XoPy 9+Vs0/qKJPyDW0/bqH3CQLoxm4c7X80oqik6bdN3VQeR8X+/DrzMmbir/6tACrlAJQdl BlNYxOwyC3c+ZCNA5aWcz/2aBHex1GmE11KfvlxfNc7nXyJDET1GbxSsE9rvILo/IQwl YUyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=fZBKvQMceZgcl0dsKrtIvBjnZJTQHen6mKpSsPs1Jyw=; b=b3X81Y5C8rHRDuekiKNLozOM694C14kA9obeiPu87finu5Py7RNEy/b/y/mnTspE50 uz2f8H/WDsvI2uGZBi+zzUtoOQw/p+K+4hVxRwHCw80VRhFmYElfjxxtf+NyMy1o5SgN kyDAGHMv8JOYYVtIpC76ZSes9Yb5YR/Zw7aSEiIqLySfOfQ7KDzDhxrWqPLfuzfZliLK 5eeVPQXaorspoSNvHRCvge3r2hjqGCmTV1PKluIneDwUksxNWqFANiAS76z4P3Ul79TO K5fkMnrDiNPQZVZD09I/7+Pk8oBGP+XCNhcNSGLtCUby9VcQeHmi2GVTxmoVen3p9zlg 2nrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MrWM3dKc; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wl14-20020a170907310e00b0084d34979430si6591995ejb.333.2023.01.10.02.53.58; Tue, 10 Jan 2023 02:54:11 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=MrWM3dKc; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237664AbjAJKoX (ORCPT + 53 others); Tue, 10 Jan 2023 05:44:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbjAJKoU (ORCPT ); Tue, 10 Jan 2023 05:44:20 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17403C778 for ; Tue, 10 Jan 2023 02:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673347414; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fZBKvQMceZgcl0dsKrtIvBjnZJTQHen6mKpSsPs1Jyw=; b=MrWM3dKcpWnyqRgrIytCBON7tT6whM6I0CbVtOpkSzVYXdU8m7HZ2KhHuQ8aAeRyJ57h7E 17XpfcD1AsEdxhjhheugKJP9de4LjhCNXDR+/MoL/YhyzTx1XqzT8lUv5FlhHUYvX91fUk SrtTlbM8LlS9uGE2kW9XViUPwKqGDrQ= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-327-Hf6YCI0xP6q5E1_ljPViBA-1; Tue, 10 Jan 2023 05:43:33 -0500 X-MC-Unique: Hf6YCI0xP6q5E1_ljPViBA-1 Received: by mail-qk1-f198.google.com with SMTP id br6-20020a05620a460600b007021e1a5c48so8414445qkb.6 for ; Tue, 10 Jan 2023 02:43:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=fZBKvQMceZgcl0dsKrtIvBjnZJTQHen6mKpSsPs1Jyw=; b=Wb7m7MnlgEhbdajT3l/saakhAOlBZ5yS+UtWls8+ju4jSsTNxJ9B2YrwLCoOgGyew2 KdzegMw1Pi16cNC4ku3Yip7tsE4EMV8c4jwqt2/ogLIUSpSet3TBRlMnwokokqe68C7u UKZeVlFRjKGLcuGZ6fA4LOPOQ7ghtO1SCPatJ45ZnhQBqQkNFC3IFkG1XTntxtKYyxEs ghPCHoTdMQ7DMFDBWYZe+twZUewV+kLmSyQtucwqdOo1B52H8rVXjcOfpmHJnJ3eddhb ShV9x+G0ub1yvaaCjSjb+1NInVxxX7Yx38GodioK1VmZu9/YI7lheK5ZxQmKik3BS03g AiEQ== X-Gm-Message-State: AFqh2kqqO/TdRO6penMUykMmHkH/EA98e1ufsjaZaLUDN3NTHUmQj/Ia Rboxr7RLxuXl3D3n2I48PcC2/vjBpykWkjh3D1Mtf0fETbUyYfin1NJOh/T+uawl/Lt2CYd6yPS j9UisdvlGtBEEViTKo2vek+Nq X-Received: by 2002:ac8:1249:0:b0:3a8:270:c0b8 with SMTP id g9-20020ac81249000000b003a80270c0b8mr2982702qtj.15.1673347412589; Tue, 10 Jan 2023 02:43:32 -0800 (PST) X-Received: by 2002:ac8:1249:0:b0:3a8:270:c0b8 with SMTP id g9-20020ac81249000000b003a80270c0b8mr2982690qtj.15.1673347412360; Tue, 10 Jan 2023 02:43:32 -0800 (PST) Received: from gerbillo.redhat.com (146-241-120-128.dyn.eolo.it. [146.241.120.128]) by smtp.gmail.com with ESMTPSA id o5-20020a05620a2a0500b006fcc437c2e8sm7011883qkp.44.2023.01.10.02.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 02:43:31 -0800 (PST) Message-ID: <79108835e679706d138afc33a19a96ed4a1f71ea.camel@redhat.com> Subject: Re: [net PATCH] octeontx2-pf: Fix resource leakage in VF driver unbind From: Paolo Abeni To: Leon Romanovsky Cc: Hariprasad Kelam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com Date: Tue, 10 Jan 2023 11:43:28 +0100 In-Reply-To: References: <20230109061325.21395-1-hkelam@marvell.com> <167334601536.23804.3249818012090319433.git-patchwork-notify@kernel.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 Hello, On Tue, 2023-01-10 at 12:29 +0200, Leon Romanovsky wrote: > On Tue, Jan 10, 2023 at 10:20:15AM +0000, patchwork-bot+netdevbpf@kernel.org wrote: > > Hello: > > > > This patch was applied to netdev/net.git (master) > > by Paolo Abeni : > > > > On Mon, 9 Jan 2023 11:43:25 +0530 you wrote: > > > resources allocated like mcam entries to support the Ntuple feature > > > and hash tables for the tc feature are not getting freed in driver > > > unbind. This patch fixes the issue. > > > > > > Fixes: 2da489432747 ("octeontx2-pf: devlink params support to set mcam entry count") > > > Signed-off-by: Hariprasad Kelam > > > Signed-off-by: Sunil Kovvuri Goutham > > > > > > [...] > > > > Here is the summary with links: > > - [net] octeontx2-pf: Fix resource leakage in VF driver unbind > > https://git.kernel.org/netdev/net/c/53da7aec3298 > > I don't think that this patch should be applied. > > It looks like wrong Fixes to me and I don't see clearly how structures > were allocated on VF which were cleared in this patch. My understanding is that the resource allocation happens via: otx2_dl_mcam_count_set() which is registered as the devlink parameter write operation on the vf by the fixes commit - the patch looks legit to me. Did I miss something? Thanks! Paolo