Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2414138rwb; Fri, 9 Dec 2022 01:37:35 -0800 (PST) X-Google-Smtp-Source: AA0mqf7MDzUVs/TGlLTd2E73oKKmI9zaBREyePtUmMwmyr3GhuKwqGBphX1GaEoktvuDFDAkFnTQ X-Received: by 2002:a05:6402:883:b0:46c:a1f7:d9ac with SMTP id e3-20020a056402088300b0046ca1f7d9acmr5136984edy.8.1670578655364; Fri, 09 Dec 2022 01:37:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670578655; cv=none; d=google.com; s=arc-20160816; b=iGZDhmFUdFdZ848EuFtMmvo9KCHZXIM+doe0xSBFgDlUdUSpMXj0bApj/QQhnprA37 fbKznlLmMCSjBjBL/Qia0eCIGU/mLLjxNIKnygQJW7OOeft3+RzFFWggREm0iKNgxdez Ob2iSHlPdBRQAZo3AE+xXHH9NXADYLVpvL8idYnfvERKFQimr5sF/TGMIfGf4HQwZRV+ NITNHbyy1SBFOAO3n6u79Ma7rNJSk3Wpyb2YLyfvgVXzGJu+Gm02QefG/hJGWdXUM3JB N0XhZ//elS4AZfLwGrB9EhWCaqv991RGG/2J83LFj25mrK/kBWZJFMOebfRoDBxCDhRD KkOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VkIO4Hdy29JcOCmLWTJCzzBNA025RxZZ30RRyjorBXg=; b=F2Jsqf4OvMoZu4NpDNIO+db1MXtJ1CCmxv7vr6NBr8/ARfooHzmOsEMERTwadPwwH2 xbE6n05lyL/6oAQ+21/WattjOvDteSBx0WTlFeupVk8jwCBLncSmeN0IrUjnDLV5COg0 hUAiNh98lOjJu239zKf97oz4NiUFACsR3tRJtOLg9RCn1LrZHUfFvE1IlXgJPL2+UBKI kS3jX7EBffrnksWpiC+yRUBe1XKo8+xfOHtiAbDbhQXOe99/EdAILl3gMiz/5zxhXVkJ OWvTQVY42+a/n33l1+8sKFFKqewJZ+XPqtJ7o9WPp9mmVZHeVXiVB+KxhRW5+oxo3BEy fFpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b=1cp8zANO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u27-20020a50a41b000000b00461d02225a3si871658edb.448.2022.12.09.01.37.17; Fri, 09 Dec 2022 01:37:35 -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=@resnulli-us.20210112.gappssmtp.com header.s=20210112 header.b=1cp8zANO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbiLIJBs (ORCPT + 73 others); Fri, 9 Dec 2022 04:01:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbiLIJBn (ORCPT ); Fri, 9 Dec 2022 04:01:43 -0500 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61D6B4C26B for ; Fri, 9 Dec 2022 01:01:42 -0800 (PST) Received: by mail-ej1-x636.google.com with SMTP id bj12so9908094ejb.13 for ; Fri, 09 Dec 2022 01:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=VkIO4Hdy29JcOCmLWTJCzzBNA025RxZZ30RRyjorBXg=; b=1cp8zANOM54G3lFtlHbxBo/F2nYTbunRc2H/MOPeNtwTtyPK+OmXUrkEHW4UkSnM0h iaFoJABGeQYJBBuukUgq4vvGvfDmbJD6jtrJkfTbHNrAZT2m7F+w8E1WTI7d9T4DNHYq UIsOBrFrfzZWtqJHfolMzack+ddzwN3eB0Vx70CQ1BnkuIr452PYwUUerD4SJVPPG2Ot OuFmXv2jCGq8mm+EY53oGGxuXbaiuQoH9ULpyIwvrHNWj+X4lV9xmyzMpZtykZ7OHG5E 3zRyh8WIED3pY8OqsV/ihq/J6qFpMH3VFrjU2TNe3uRjDT2cOnq7L/hemb2iAX0mFJuN gGKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VkIO4Hdy29JcOCmLWTJCzzBNA025RxZZ30RRyjorBXg=; b=m71gSdS9oucbk0pxiQ1g/Uy9Z8EfklV1KqLgdpsjvr5LxbMDE9qimE8YUNBfU7mWWC lSrC0jRsVmZLV3IBoh7mdsw1vSrMzRnCIgTeXscWwzLYkRKUS281A8EM0fBuhrqOJj7x nKAlyeHBmFn+Lco5WDp68Wl1A9/EeMYSzOR8XyrY4MqlxlNEFeiSAK1WU0vveBRV2gZV pS2CxvlAb7cqGRe3TMrUhqLuJYjL3gtgLj510fDYvKLmvLX23M7Xr525TvDDGXR4I0AJ eiMfBbtDke2zOXvtEwnXWFOPhMHmuXxGJV/ZMDjqfwr3whisYQGRDYuX13XLWhTIIuKz 6+bw== X-Gm-Message-State: ANoB5pkP354/JeEjIzxOZqHF5LBWAIjoEVjV76Vo6UiPvdr/TRkJ8GWk U/DFS9BxebKmfpB83iL5c0cpTHgTtypFTRPZX5w= X-Received: by 2002:a17:906:3a96:b0:78d:f454:ba4a with SMTP id y22-20020a1709063a9600b0078df454ba4amr5025756ejd.73.1670576500814; Fri, 09 Dec 2022 01:01:40 -0800 (PST) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id f20-20020a170906825400b007bfc5cbaee8sm330977ejx.17.2022.12.09.01.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 01:01:40 -0800 (PST) Date: Fri, 9 Dec 2022 10:01:39 +0100 From: Jiri Pirko To: yang.yang29@zte.com.cn Cc: dchickles@marvell.com, sburla@marvell.com, fmanlunas@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, xu.panda@zte.com.cn Subject: Re: [PATCH net-next v2] liquidio: use strscpy() to instead of strncpy() Message-ID: References: <202212091534493764895@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202212091534493764895@zte.com.cn> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Fri, Dec 09, 2022 at 08:34:49AM CET, yang.yang29@zte.com.cn wrote: >From: Xu Panda > >The implementation of strscpy() is more robust and safer. >That's now the recommended way to copy NUL terminated strings. > >Signed-off-by: Xu Panda >Signed-off-by: Yang Yang Reviewed-by: Jiri Pirko