From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 753A5EB64DA for ; Tue, 4 Jul 2023 18:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbjGDSu3 (ORCPT ); Tue, 4 Jul 2023 14:50:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231309AbjGDSuY (ORCPT ); Tue, 4 Jul 2023 14:50:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27DE0E76; Tue, 4 Jul 2023 11:50:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A161D61362; Tue, 4 Jul 2023 18:50:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 01CF3C433CA; Tue, 4 Jul 2023 18:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688496622; bh=10gurLQ8aEgGE0CIExcSlH/8KjmglWm/++axqieklak=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=GAwrv0TPtnKjMEgMNxjeqJ9tPkVICgI15f20rtJz+CHqN95H+a5fOLy7Oqhz8HAqf sts0uSzyyiai98d129urQyOaew9a7+SR2SqzZ/0FBjEXNaYXc5zedU/lUv5Pm+v1tn BJsWmpRKh+lZ626wYA0RpUdoP8Gt3/uYdyLjG5Xgw9mLrU+nDRKBh5lmXnzusxiVo2 bkh5Vqf3+j66ZLBDCVSXBlB1j73X+SMwQ6Dy1tspKo55UzCT8v+vvKmHrUw3RRma1H PQdVMgwa8io7YE1SVO4Xywbn9gqr+K79s1hffpF4gEOAzjlJarMLzidoyImpve7GsN pRGnmLoeFNy5w== 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 D54DCC691EF; Tue, 4 Jul 2023 18:50:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] net: Replace strlcpy with strscpy From: patchwork-bot+netdevbpf@kernel.org Message-Id: <168849662186.30545.14650541055140387280.git-patchwork-notify@kernel.org> Date: Tue, 04 Jul 2023 18:50:21 +0000 References: <20230703175840.3706231-1-azeemshaikh38@gmail.com> In-Reply-To: <20230703175840.3706231-1-azeemshaikh38@gmail.com> To: Azeem Shaikh Cc: davem@davemloft.net, linux-hardening@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, dsahern@kernel.org, rostedt@goodmis.org, keescook@chromium.org, netdev@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by David S. Miller : On Mon, 3 Jul 2023 17:58:40 +0000 you wrote: > strlcpy() reads the entire source buffer first. > This read may exceed the destination size limit. > This is both inefficient and can lead to linear read > overflows if a source string is not NUL-terminated [1]. > In an effort to remove strlcpy() completely [2], replace > strlcpy() here with strscpy(). > No return values were used, so direct replacement is safe. > > [...] Here is the summary with links: - net: Replace strlcpy with strscpy https://git.kernel.org/netdev/net/c/ba7bdec3cbec You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html