Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp525436rwb; Wed, 14 Dec 2022 21:52:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf7rrtH7XWqa7rfZmr4nJ3k/1Ieimc0j3k4v5rGTAeM7AxBaDGllwJb4ea9tY1Flz/7AayK7 X-Received: by 2002:a17:906:3a93:b0:7c0:b124:fa05 with SMTP id y19-20020a1709063a9300b007c0b124fa05mr24219652ejd.53.1671083533717; Wed, 14 Dec 2022 21:52:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671083533; cv=none; d=google.com; s=arc-20160816; b=zVOkVWUTo4mBURyr6C0rYu/eKI5cj+0exvOF1hcizWJx9vD5mmRzgMFkrrNbAOEJ1P XpDO1nQ9BA7LAG151h/7Nb2zpdLdUW6Q+wM9Kv1rpbeCIL0f+9BbqDLFz6W6hDHPCrAD j/8cNCnrGl4H65OAS/FTjp3C5i+IOx0zhkaaMtq+4CQwP5s191BoVnVpNMD2pD5e3NPO ozxbDMAS+Dc06E0RxUKWJHEd8BbctDC5Zs0cd89k3uy8W4cjlDVIzm2KyeB+Fh6LDJZc Js9iGQXeS4ZIo3F6cddk1sEJlYlX8CRAqy4P4jI3uwhl93xVjrg8mWOyQu/jPkV/l/dg XGeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=0iN/e0769QUf7jE3oWp2Be0aVhjG/coc12+OR6e0xvg=; b=SR6+g69B8mcCCD8b/rdLod8x9K7aFRwVBrfZciXQuiLZJFqTtxFordZY/pKll5rwte KeHX7oXK9r2ZIoxW3kjCf+VWQn7rAMaumyUBknYZYoPuXfq0VqorrT7HWcm9E3FssbQU UxSOA3IXW+XCkDJAbhEwVuoh2kBKsXdmMo53BiURlxLnbkGr2cOH3XlQAK3tgVl16bWh p02lbtbkmE+a6ZGF4BmRTq3uhuvwdt63e1aNi/9gDejczuwmd3+HVJvmgLbnmU0SFiPp QPdEbVsXquzv+cmldcV3ZswUIOUtZly8DI/gCzTttdQDXbg76Do/UE+/QoQ6ATysof99 glqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZOmAT562; 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 gt37-20020a1709072da500b007adf16570c3si14988605ejc.17.2022.12.14.21.51.53; Wed, 14 Dec 2022 21:52:13 -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=@kernel.org header.s=k20201202 header.b=ZOmAT562; 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 S229680AbiLOEkU (ORCPT + 69 others); Wed, 14 Dec 2022 23:40:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiLOEkS (ORCPT ); Wed, 14 Dec 2022 23:40:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D2F546665; Wed, 14 Dec 2022 20:40:17 -0800 (PST) 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 0985361CDE; Thu, 15 Dec 2022 04:40:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 50794C433F1; Thu, 15 Dec 2022 04:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671079216; bh=fk91BOR0hlyREPynU0HBDYs/f8OQIa3Fmo8nBRBcbBU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=ZOmAT562USicfomRWAqxpOOyklKCPmxsZTFOCoO33wWZuGkUEjgrL0QGQFM7lto0D WhglD24ldG+fw6yiry6GB81Gov1/azUTNeBnMOZ42NZr7yOkmKGj0ICEA3naL7ObxV do53FlpCl0Tl0OO2GiJvLqM3nOZGTi5GkkLHFwc75xGWyLO7hn2cwrDzYSA1V6RuQI JWNVvQCB8+QnkavTwCZJUakbwcTwSXBNGBORxxLi6RVTa1l4dzZffBHnr/exxvLtpS e0ACHg4m37gI5hMrvLU33kX7hAf7GU+rWMprtLfVcBKxBAOJecSKRTMXPgBP+8cmJW YYYvhseRdLFNA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 36C83E4D00F; Thu, 15 Dec 2022 04:40:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net: enetc: avoid buffer leaks on xdp_do_redirect() failure From: patchwork-bot+netdevbpf@kernel.org Message-Id: <167107921622.17884.12888619554957211520.git-patchwork-notify@kernel.org> Date: Thu, 15 Dec 2022 04:40:16 +0000 References: <20221213001908.2347046-1-vladimir.oltean@nxp.com> In-Reply-To: <20221213001908.2347046-1-vladimir.oltean@nxp.com> To: Vladimir Oltean Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, claudiu.manoil@nxp.com, linux-kernel@vger.kernel.org, lorenzo.bianconi@redhat.com X-Spam-Status: No, score=-7.1 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 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: This patch was applied to netdev/net.git (master) by Jakub Kicinski : On Tue, 13 Dec 2022 02:19:08 +0200 you wrote: > Before enetc_clean_rx_ring_xdp() calls xdp_do_redirect(), each software > BD in the RX ring between index orig_i and i can have one of 2 refcount > values on its page. > > We are the owner of the current buffer that is being processed, so the > refcount will be at least 1. > > [...] Here is the summary with links: - [net] net: enetc: avoid buffer leaks on xdp_do_redirect() failure https://git.kernel.org/netdev/net/c/628050ec952d You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html