Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp546185rdb; Sat, 30 Sep 2023 15:46:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFqt4GExCbJHmAnld86IDzD6bE/EumueJnNNKiWIFPbrsNq/9QfOa1m5FSI3kTyv9LRcnwS X-Received: by 2002:a17:90a:7407:b0:273:f10c:b6d2 with SMTP id a7-20020a17090a740700b00273f10cb6d2mr12045451pjg.18.1696114019055; Sat, 30 Sep 2023 15:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696114019; cv=none; d=google.com; s=arc-20160816; b=qgSbMvjjuY6OdimYdWdzPaZoChiofHkVQJa7KkoDOxejF83k8AkzddH2+b20SxeWBd Uao2yzj2Mixt/wYOCnRUt1Td1WstLHxxrNP0NffQZcAYgwWmU6G0/UxHy30385rUg+3c IDwDZCpk7J49OFC0RGwxfMhE20nXEEPLjUNIcPupK3l2Zx8VeysNbSL2rUvEIJAqrHwQ uW2fvkVMeJe2jqgUim+ekxMQ/DTDD2+NQHM/5fdMdFnNDfNFTN25ET6cddODfxuXeKYZ qmhcv3/TXlzUISof//tDlUL1Iv76Ke4MzyGt1LAREeQGIOytkK3MeJW4OI7rFeFqIbr8 WoXQ== 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=Q8g5zh2+S3KfLdCdYm0vIOGyOHILVZHLfAlpK9xB3iQ=; fh=PblEPqzT8SEk9YksGS3qM0BkdkqpVzF7zY0IHX0JRw4=; b=BnC/c5jAWP8ewtAQxAs8GjnXx/SbbRkq9m03mI1/uLwmGElidKoCmOIIJgeD/lbL6s xRzhoT4gelJYqdwzIeUiDA9NEYh4QN0riV3wbIXGOWEe9Q/+drG8GvVqqmBTJf9w+1kT vOqHwr/WPdbLWmxYG8z/bQYxODdeGY5SirvyKupEHq16qraHxtFPeFMJDW5JQATHCG7R GoUjaye72A0E+JkLt9aYLtee6hzaWcEAaMmHbuasgAymbGGcrWg1ZiK/AzADK2WZNmQ8 ZcNqbVnE9c5ror6FeWA7PamUDOTlFTYb+/i8ITfyJJDOinLWqBe9qjnh9wm2l2gEApPY iC5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=d2nZK0kT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u8-20020a17090a1f0800b002680f00f8f3si4169229pja.17.2023.09.30.15.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 15:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=d2nZK0kT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8EC83804F618; Sat, 30 Sep 2023 09:06:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234474AbjI3QGt (ORCPT + 99 others); Sat, 30 Sep 2023 12:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbjI3QGr (ORCPT ); Sat, 30 Sep 2023 12:06:47 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D50FCF; Sat, 30 Sep 2023 09:06:45 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2773f776f49so1235200a91.1; Sat, 30 Sep 2023 09:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696090005; x=1696694805; darn=vger.kernel.org; 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=Q8g5zh2+S3KfLdCdYm0vIOGyOHILVZHLfAlpK9xB3iQ=; b=d2nZK0kT+gKf6G/FYrksM+5APZ7AyBrpdFtsqF4WPDjbSpXZySYMUucS9kZI6rD9kS Q0ZERGUPQf6oGwtmDc4Pe5ORkmdDiicEi5e7qAmgb6baWiUP/TSer8pxHhkoQZ6NOqdL sUnCr49I2Nx4d55pS0lOTdkwJWsNqDLImKapMGDh9UcPvxt6//TG0t3oi2zn358V7qQK 0osFdzZIKIZ/87B9uRhqie0o+x6qn+eunBI4lwugBRyKvw0oI5pWUbRbg8iGle1XQgTM chLx1IJl86uPi8VzGMoGGY/7zUreUPXssVC9wfPS8VZwydt/h1kSvT6nhggW25xvFHbM 2m0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696090005; x=1696694805; 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=Q8g5zh2+S3KfLdCdYm0vIOGyOHILVZHLfAlpK9xB3iQ=; b=YL6ayZjUy1fQOwcv7TGXpCEKUULxN83gQpmn7BcHeD1xj8rMaPYMqaKeqAEUaYpTJj 2/LEX8tZsvt4LJGTdA4rMO+KjtHyv6yCDI6VGf4aSvRF/1ACdsVzpVGvv5+68hlMJk+y ns8OhKYgIO3aHue2Cik3B9IHtqNbB4DdCKf9c79iwYocelYKOZ18sbkjEOqprleoyF1r iNSqltgEBtptVlWBY1K6eb5wKBj4H2sT/3uEEsmWvxAO3/DrFzpOtwVNDqF08l4dUe0F pXkGnB+rKDc5MeGLlg+1bblh/xrdr3VuVnmnu/Cp0R97SGj4//xoC7oYBA1SgeNJgE+/ dEGQ== X-Gm-Message-State: AOJu0YzV3fF36HkjzdJvaDH2u6NcrZmB7rkjS4wtxB4/fHF4/6mb05zu l+GobjZu4/f0jkDF1wNTTeq+0/BVp9hyiQ== X-Received: by 2002:a17:90b:190f:b0:279:5a3:d5f with SMTP id mp15-20020a17090b190f00b0027905a30d5fmr11974647pjb.9.1696090004913; Sat, 30 Sep 2023 09:06:44 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:a90f:2dad:30c1:d923]) by smtp.gmail.com with ESMTPSA id cl1-20020a17090af68100b00277246e857esm3346261pjb.23.2023.09.30.09.06.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 09:06:44 -0700 (PDT) Date: Sat, 30 Sep 2023 09:06:41 -0700 From: Dmitry Torokhov To: Justin Stitt Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] Input: synaptics-rmi4 - replace deprecated strncpy Message-ID: References: <20230921-strncpy-drivers-input-rmi4-rmi_f34-c-v1-1-4aef2e84b8d2@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921-strncpy-drivers-input-rmi4-rmi_f34-c-v1-1-4aef2e84b8d2@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 30 Sep 2023 09:06:55 -0700 (PDT) On Thu, Sep 21, 2023 at 09:58:11AM +0000, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1] > > Let's use memcpy() as the bounds have already been checked and this > decays into a simple byte copy from one buffer to another removing any > ambiguity that strncpy has. > > Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings [1] > Link: https://github.com/KSPP/linux/issues/90 > Cc: linux-hardening@vger.kernel.org > Signed-off-by: Justin Stitt Applied, thank you. -- Dmitry