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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C368BC4320A for ; Fri, 27 Aug 2021 19:08:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9BAE860F39 for ; Fri, 27 Aug 2021 19:08:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230325AbhH0TJX (ORCPT ); Fri, 27 Aug 2021 15:09:23 -0400 Received: from smtprelay0032.hostedemail.com ([216.40.44.32]:35074 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230221AbhH0TJW (ORCPT ); Fri, 27 Aug 2021 15:09:22 -0400 Received: from omf09.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 551C7181370A0; Fri, 27 Aug 2021 19:08:32 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA id A022D1E04D5; Fri, 27 Aug 2021 19:08:30 +0000 (UTC) Message-ID: Subject: Re: [PATCH v4] EDAC/mc: Prefer strscpy over strcpy From: Joe Perches To: Borislav Petkov , Len Baker Cc: Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , David Laight , Kees Cook , linux-hardening@vger.kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 27 Aug 2021 12:08:28 -0700 In-Reply-To: References: <20210814075527.5999-1-len.baker@gmx.com> <20210824090338.GB7999@titan> <20210827173633.GA3040@titan> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Stat-Signature: rnq8dik9jk6dm8eigjyka9wd7ha9tycw X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: A022D1E04D5 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX199FhWeVlOO1aX/0GGpp0KsHw50NmpmSZk= X-HE-Tag: 1630091310-308896 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org On Fri, 2021-08-27 at 19:54 +0200, Borislav Petkov wrote: > So it would be a lot more robust if something would catch that change, > albeit seemingly redundant now. I still think scnprintf is _way_ more common and intelligible as a construct than this odd strscpy with required error checking.