Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp22748rwb; Wed, 14 Dec 2022 13:26:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5HaOv4QlAf1CQbmUkdQ7RUyoOzmcpSE/ML1guPNIRFxFZRU0dnuJDhSch/RpmYwznC7KFh X-Received: by 2002:a05:6402:2986:b0:45c:835b:7991 with SMTP id eq6-20020a056402298600b0045c835b7991mr21295902edb.18.1671053205859; Wed, 14 Dec 2022 13:26:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671053205; cv=none; d=google.com; s=arc-20160816; b=TjWk2YPpdgyyapKadsX2SYtVfeVVKMb5pYN8RGROm4q22i8ojpAo/Fu95rLE2q3x0x 65Xxr91lkXWvNzBOK/7LQz03PCEj0sMaIblatvhIooDtLM+fTOO4S3tdnmAt56ErW9JU CrOrqhmDDaWAyJSNWNYNBFRfCE0oRJ+jDgQn81pQsoN9IPYQab2vhavLaVdjOc1EbLxq UvaVd3soL+NSkXuN2N5OWpwz1YNrA2RjIUmocI+02Byze5oMzpJnlqTE9uDjFrpGcTrL NwM32p01fKA1ivo9Cij1wyw+0hJM4VJBeTtT++zx+E9CEd3C8+a+Z2aRrd+vQW28o+YY t5mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SQffJqElCiLgraCgvRrBMcDRiskmkwiQCxSgZk35UNo=; b=hNwwDQEShiYvCzKNfNn6a0jxq9xj5PI1h84kuTgUX4r9mwlDOuKQbfXCkJZLk6zES/ ZahIgp/2zNvX2rEY2IdKdYbosbZ+n+up8ZRH5WKdCMlbFomwMzoTY9YqMzqpil2H8Tn7 ABihwZ/ymlFy4InoqzhhzmoK2CRgfgZN+uC7I5S+AL+J2tLeYHM1n+wBhOJYR9AD7ffW 2p6adSWLSmtgXdUuwKrwIFeBSJoG5097JhGNL4yqv6AEDydmvK0xONX1uDXbIDQ+/qa6 0oak4rWkJuv7sHWtcsRA+oZl99ucWn5ugwI2MXbVJUwLnSJMLJ8qcrx/JQyLl+RT6vD2 Uzmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qi0+Qw2p; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a509f82000000b0046bce2261e5si4754643edf.471.2022.12.14.13.26.29; Wed, 14 Dec 2022 13:26:45 -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=@intel.com header.s=Intel header.b=Qi0+Qw2p; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229588AbiLNUqb (ORCPT + 70 others); Wed, 14 Dec 2022 15:46:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiLNUq2 (ORCPT ); Wed, 14 Dec 2022 15:46:28 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8710FAED; Wed, 14 Dec 2022 12:46:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671050787; x=1702586787; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NGKfvtdkJGB4KsBSmBtkhcCUhI8ssqLY7MUEO8rIdbQ=; b=Qi0+Qw2pnxtrQSLKtLxLA2dbEXQue28bL52D90wCOOnzNunSIckyNE1/ QkLQrKHOTD5S8RaB4ij9jpjD3z6PXy7nyP4kpso7IpF4vy/d7UQXNFnd2 VEGBdu9lmqz0Y7qv7IgCG6Wu/gaiPdBP7N1dQygLlB7UyI7f/72KfllPI IG+puCzvBLDvwwYWdAI6p/6zpwWJjt5A4WJnide3VTtATqZRRCNjInq3y GmHgqnT05d2P7hedWNq5fdBVEs9VKKuGXHMyu0GQiDkoZPJfOhrN6iz8i lUzLcimzLJsOnr5odxOgVl3HigkIZ3IfEap0oxs9wPs4pmiDSxODx6b4P g==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="345588316" X-IronPort-AV: E=Sophos;i="5.96,245,1665471600"; d="scan'208";a="345588316" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 12:46:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="642667942" X-IronPort-AV: E=Sophos;i="5.96,245,1665471600"; d="scan'208";a="642667942" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga007.jf.intel.com with ESMTP; 14 Dec 2022 12:46:25 -0800 Date: Wed, 14 Dec 2022 12:54:38 -0800 From: Ricardo Neri To: yang.yang29@zte.com.cn Cc: tony.luck@intel.com, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, xu.panda@zte.com.cn Subject: Re: [PATCH linux-next] x86/mce/dev-mcelog: use strscpy() to instead of strncpy() Message-ID: <20221214205438.GB15255@ranerica-svr.sc.intel.com> References: <202212031419324523731@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202212031419324523731@zte.com.cn> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 Sat, Dec 03, 2022 at 02:19:32PM +0800, 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. It should read "NULL-terminated strings". Thanks and BR, Ricardo