Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp587111rdg; Thu, 10 Aug 2023 12:20:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHCRFy7tjfXxqy2tfzdEJocOcdEDBDAhP1Ar0ElWY18WYlgDPyVW3x0EH16j8Pgv8icOTEE X-Received: by 2002:a17:902:b90a:b0:1bb:b91b:2b40 with SMTP id bf10-20020a170902b90a00b001bbb91b2b40mr3381252plb.60.1691695246135; Thu, 10 Aug 2023 12:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691695246; cv=none; d=google.com; s=arc-20160816; b=P1ggJjPVTbaoHCKbVRdwk0Ox8fr5hBRwKa5d0L95lRCfVe26r7YXw34ahP1N1/+uoC z6Eh1Z+OdIuutl/SOZr6PtiOn7KxKBDjQAUxlpYGx0DSl16ZQPNaVmZJEt7jrQjs3im3 bVZ9GMo73UGMC6EllDW42dtSDwwuvIq7DWX50nANzUc4V/EM5HMfUPKaPRhHKKy0BSP5 zir4gh1F0eblVP7BiNuXlpHZwQ4jYW//uNsAKjn7sSASF6G+e+QaG7Xpo+pA6+cgvZrg clm+45npYOZUEZ0TV+Gedsp/XlRKBdS9W8MMuullL5zlTI9FFt39+3MP9N3OJEgF7Lke vGyQ== 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=WLb3NNh70LPLnA8c7CFFp+gjLxNSXKcQBR6JVjaNvFk=; fh=C2qw+n+5hCHMJ9YdscHrjVKi4f2TCeR4dprzNHfXisg=; b=mMZ/Uc9MULbdJjKvw7IymwzAPzcAnO24Smktk7k4W2xJi87YPfbPFzuosauCZgEy9I Volhfvi6Bse9wq2ca3iJliXzToPKJN+sBwyeJVxoE5+qfD+ECqTNQaX3oSJLDNpGSnoa lbkPPdUzWLRHmB2IgBatiL7/kxTnGYGnhMR6CDlJWlbS0tpdtq+icXUz+PW8Gj0xp6Fs SE9yvMD/uWWrsdL5mBP46K+5l+W9WRld7pdfumDhg5h/B/atopo8usmCZTL/272A9C9V z2BmGK/KZyaggS6+uAuRHbRZD2zgtX5666BJAK6kUCuJA9gkNI5uN470117fhxS66+5o RiHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l3ahX9Kg; 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 lg4-20020a170902fb8400b001b89b1b9a01si1883745plb.194.2023.08.10.12.20.33; Thu, 10 Aug 2023 12:20:46 -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=l3ahX9Kg; 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 S234696AbjHJSu3 (ORCPT + 99 others); Thu, 10 Aug 2023 14:50:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236245AbjHJSuX (ORCPT ); Thu, 10 Aug 2023 14:50:23 -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 275E82724; Thu, 10 Aug 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 B1745652F8; Thu, 10 Aug 2023 18:50:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0A436C433CA; Thu, 10 Aug 2023 18:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691693422; bh=83pI7ohsf9XQ96NY9vRh0auNjVEOrdk1c9s0zdDol+M=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=l3ahX9KgKthfG7/mhbLFtUet5Thg/nytPpir8Y6ONdcI3tFlLpV8Cr7VNAzg3Kg29 FArdryOyCvw/izI8LPB9h1arKjkRZcVMY1iZX+hz/0H1B7ypayHraFUp0WLnHBLE8h IGCghtFT2ydeyVi+T7oYvxEUeeewXcZAAcpWX5hr6nzwJHtbLD8lyNDdZA+3EBVXcf BvTQi3zwpQFUuf0DDi4aW5Sxk05ZyubPGLIHnBSElZKKLVuYTCbRoqt/r5jHsjSY+L vuHVitmNRn+1Gdm48f2WM7AMq+OHpsolPiP8EKMD6OD/NAXWbYLdg7wKqOdStmGIcY 3OsrXTtzGH+hw== 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 DFF37C64459; Thu, 10 Aug 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] net: hns3: fix strscpy causing content truncation issue From: patchwork-bot+netdevbpf@kernel.org Message-Id: <169169342191.7825.8966149905125404687.git-patchwork-notify@kernel.org> Date: Thu, 10 Aug 2023 18:50:21 +0000 References: <20230809020902.1941471-1-shaojijie@huawei.com> In-Reply-To: <20230809020902.1941471-1-shaojijie@huawei.com> To: Jijie Shao Cc: yisen.zhuang@huawei.com, salil.mehta@huawei.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, shenjian15@huawei.com, wangjie125@huawei.com, liuyonglong@huawei.com, chenhao418@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org 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_BLOCKED,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 (main) by Jakub Kicinski : On Wed, 9 Aug 2023 10:09:02 +0800 you wrote: > From: Hao Chen > > hns3_dbg_fill_content()/hclge_dbg_fill_content() is aim to integrate some > items to a string for content, and we add '\n' and '\0' in the last > two bytes of content. > > strscpy() will add '\0' in the last byte of destination buffer(one of > items), it result in finishing content print ahead of schedule and some > dump content truncation. > > [...] Here is the summary with links: - [net] net: hns3: fix strscpy causing content truncation issue https://git.kernel.org/netdev/net/c/5e3d20617b05 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html