Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2132101rwb; Wed, 30 Nov 2022 02:48:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KcESkf+5KIdbS9dLu8HXyE/7mOYAivamTM4cbyKlz/96NtoOoGnB2/7jSHP99dQe2Zh+Q X-Received: by 2002:a17:906:3ac1:b0:78d:36d8:1814 with SMTP id z1-20020a1709063ac100b0078d36d81814mr49988312ejd.99.1669805317988; Wed, 30 Nov 2022 02:48:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669805317; cv=none; d=google.com; s=arc-20160816; b=d2rM9YHn2pH+3QgPHk+FYSyz0zBMl9CsM/+HctmLo+IqR0kf+cZkMec8QDZYXlbQY1 KfdYEzqSaTOk5vAm7YKJeQ4UjAbd0czW2tmkxGTZ4Zsny/MFwmJ0p+4+xpgCBT5UvQrR HL97xraJ143wv4d0x4OJj6oDHESuO8uPVTpIdsF0m7QNGqprPFVfwmyynnXH0zXzihCh VtoQ5jJUCVu9H61YUBEISsCDapWqbukkHmPTp70yjIXbT1/p3KWKpnV/1CE80lCnXWna gBZ7UCi31kY/s2ZjDsXs+3NvH2dQ0K8fexED+2wXSH1Yukp1PUsWOdvKYSN2Q1KTx08a IbRg== 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=BD5P4rqKVSHXwvphyh0ZQGrrZfEH7pCmfr1WY4JfkKQ=; b=ub4UKLxor2hxKIdKFw2aWSJpzhi3LhZppUiDUShShFiKCezExBJOblrxpA4QZjQTjW g5IqPGJOPiqNSL4aBPt9oJWRVo+KT8PsxxLE6ur3a8JEWUSrYJm6LfNTcpWSYUK7u9Tq PtpQ2uUCnE/TZmwq2TOy5tv1o3SnvJRjl3kwU/BF71iiPl/TInVwia2ySPMEdsFSYSGj btZURAQOwmiftilk++4XocyKiQUFDNuJTiOXDz+59Uwnf4sEgcPUkcK30hIcpOFtmTLZ HZJZ91O4jYqWX9BTlumqEgZAUMHfFyma9E3JiUrMsmxwObtm/l2ozZh6SLCCBXbXDS6a h8Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=QtE5mhbh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd16-20020a170907969000b007836ec6999dsi784691ejc.904.2022.11.30.02.48.17; Wed, 30 Nov 2022 02:48:37 -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=@suse.com header.s=susede1 header.b=QtE5mhbh; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236079AbiK3Kjd (ORCPT + 85 others); Wed, 30 Nov 2022 05:39:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbiK3Kja (ORCPT ); Wed, 30 Nov 2022 05:39:30 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3199C25C7E for ; Wed, 30 Nov 2022 02:39:24 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 735E91FD76; Wed, 30 Nov 2022 10:39:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1669804763; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BD5P4rqKVSHXwvphyh0ZQGrrZfEH7pCmfr1WY4JfkKQ=; b=QtE5mhbhBSMvV88KKHxqcFqFGuVgBPlyuoD1LKQe56OiXlWKyXK/8e5c3Tv/bcKMECs33O FU0tHxTIvsVus4m59IwBkiEIjhscNnh8PjQ/qsvqrlUr5eNXrYsf2gK0fYJQb+NMoXTE3a a78ZXaWa5JF4zhTdGLxDpM2bm/ftwUU= Received: from suse.cz (unknown [10.100.208.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 444692C149; Wed, 30 Nov 2022 10:39:23 +0000 (UTC) Date: Wed, 30 Nov 2022 11:39:22 +0100 From: Petr Mladek To: yang.yang29@zte.com.cn Cc: senozhatsky@chromium.org, rostedt@goodmis.org, john.ogness@linutronix.de, linux-kernel@vger.kernel.org, xu.panda@zte.com.cn Subject: Re: [PATCH linux-next] printk: use strscpy() to instead of strlcpy() Message-ID: References: <202211301601416229001@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202211301601416229001@zte.com.cn> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Wed 2022-11-30 16:01:41, 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: Petr Mladek Best Regards, Petr