Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5247659rwd; Mon, 12 Jun 2023 02:07:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5S1+7nizNJErJK3MIZESdBGAU9YbPb3uUyiIkT8zdbvFnNbKaQ+VvaBdZDozLjRtX5exHs X-Received: by 2002:a17:906:dc93:b0:978:acec:36b2 with SMTP id cs19-20020a170906dc9300b00978acec36b2mr9558071ejc.41.1686560822413; Mon, 12 Jun 2023 02:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686560822; cv=none; d=google.com; s=arc-20160816; b=kJN7Cqd6Av6O7Ql1q/ahlp7Fqp+oPiNDOluh0OJK0c9o47LEeiKyLPmNkMfH4CD1jN sjUmNUqX4ItcLtr8UYD+VqVSCoXUlB0ZnLthuGQHVSmrGy3u7GMVkhKL6SPXsfxBhwVP JMOVXAAZ5avUwQpbHQP3mtPScJYKBO53a4eysPG2VFg8ZKhz9e/VlB10oT3Ao4zJASAA +mKtQZJmLV0pkgoba/oSVddpzRO2g5275H21Wq8lUt9AppRK6lNZ9MZourIpvIW4sFUl V1cIcJHM4Vtd8nE+wENHiZPl9c66RpApsjozbTDks/gkidQNSdfqOu1fE8KOhlqFFIif S1Xw== 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=v8YZA864ZbXxPhV75y+hgfhAcVRcVeu077xgAihC5Rs=; b=Uby+8lPInbx9E9+UJ6Nz5YQrLGzuJGDBOFtVC72Trp4nNeBHAjleGlUt4UDDa4f/Jy CPialbzzF4qfBpsI1ap6OhO6zaLGrSTv3eqx3ZKDHO9MDUIJON8ZIXGRd/tNn/TEJw4P 68C26SoHMZ7paTyoKDYQe5YJfcOZDArOtMIUXjDj7GzK50EmhShtP+3W3BFuPnmTKLA1 NPnyXpMUsqz1brIZLTKAXV/J+EOVd5sUGgTsBiSXTfi54gJ3xVIIN6RWmixDn7jpHogw 4PKJpfzW0wa5D2f8tynPnRbWD/g/JGWe/A+1odJOUM5c6PdLnBzPrzDsmjFzAhya4C1U mmNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9I4Os80; 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 a11-20020a1709065f8b00b009596e2086a0si5050523eju.83.2023.06.12.02.06.37; Mon, 12 Jun 2023 02:07:02 -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=S9I4Os80; 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 S233311AbjFLIki (ORCPT + 99 others); Mon, 12 Jun 2023 04:40:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233676AbjFLIkY (ORCPT ); Mon, 12 Jun 2023 04:40:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DB17A8 for ; Mon, 12 Jun 2023 01:40:23 -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 26A2A62179 for ; Mon, 12 Jun 2023 08:40:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 7E3DFC433EF; Mon, 12 Jun 2023 08:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686559222; bh=6q6K/ZSldiMBwb306CxjURo/TgUUC6WeXGv1VOPDG7w=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=S9I4Os80qmax19hiJFQ9KqmzhmPnoAyBNVDAGFfPxKTBCh6HQ7c8XP9YymuAC8K8t 0DIEgNK7OeQzjo9xnTrMEeZTZrEQxDj2boQLDnP6yIYUWIQHFL9acTwBQTzIATwrCw x+sJIKmcMhAxgtKAK7z/fKPj1A8sdIrkQbh153CLEp5sd6d+MnKIxqiaxQA6zeKFvb ItIiKmfpu4QPhLHPEHL97WQGo0xLDa8MQIJV9IvOdtNCspj3dBkBqA/ixbm3+rFD7x 7o5M7RZ2Bh+5j3zGxWeS7zGj2nUq56HmPdvUjI+IgDenFOQya1x4LgQfPYKg6wc0Qg dz0xNciFNf/VA== 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 6478CE21EC0; Mon, 12 Jun 2023 08:40:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] net/sched: act_pedit: Use kmemdup() to replace kmalloc + memcpy From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168655922240.2912.6853929575701794720.git-patchwork-notify@kernel.org> Date: Mon, 12 Jun 2023 08:40:22 +0000 References: <20230609070117.100507-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20230609070117.100507-1-jiapeng.chong@linux.alibaba.com> To: Jiapeng Chong Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, abaci@linux.alibaba.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,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 Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller : On Fri, 9 Jun 2023 15:01:17 +0800 you wrote: > ./net/sched/act_pedit.c:245:21-28: WARNING opportunity for kmemdup. > > Reported-by: Abaci Robot > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5478 > Signed-off-by: Jiapeng Chong > --- > net/sched/act_pedit.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Here is the summary with links: - net/sched: act_pedit: Use kmemdup() to replace kmalloc + memcpy https://git.kernel.org/netdev/net-next/c/26e35370b976 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html