Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1245236rda; Mon, 23 Oct 2023 07:03:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEknXlW99Aiu5DYHyMzx3DzNUmlw8BJqFHLQ5phkN4LJAKqsIrrU/mUAIYiieZxwMMIZrEE X-Received: by 2002:a05:6a00:9a9:b0:6be:2803:9c92 with SMTP id u41-20020a056a0009a900b006be28039c92mr11822403pfg.32.1698069818555; Mon, 23 Oct 2023 07:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698069818; cv=none; d=google.com; s=arc-20160816; b=em3WLzqSuSJ9BH4cs6AFMFsvd/CKruTGNLwq1hm8RFTihaYfxpQpvGAyWkU8rkNS9E gYNaTqvQGuQIRP4O5aK2g8gX3Dj2fSzNZKAeIOagoqtrKlcFbfkpiGB0tedEFWY5vi9/ Vxk3sisVi9y1BQGb4L/IK37zByfXOefaLFhChLJ/ZM3adV+VkT/dPsleB1AZxpVXr3I7 Bi0r5ggMYUNTs7u+uCsVVcKoDBqRui8t9t/VFmlgWbTDciGWSfl77r53y4RLMZNuV5Ac Tr97AVEtHMRCaSx15cbFiyVALeFI77d0Feb3YDznRQn6+kSoiphWPfgPDF0LaHS5BcJg 14bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=uhtTnihDXoTiUqnr2WM65ieZ20s8ApMb4//bid1Zk84=; fh=ciSH42mnW4b2Gqg9N0we839c4wIJDOr6uXedFi5+OM8=; b=fQLTOnNWO2jlCgrriETgbL0v0BJ9m07sbG3YHSFbEz2BbyhbbI2VyCjbbhAg2KeCBZ eTsuHGhQ067Wlt5TJWsjJs8kVALREcXDG/2gj93SeAR5ZfJ2eTrSIVj1+rPgRLYCgz/7 nOfwTnQTpUgyabg1Rk1z7A0TmpfmQ/qAZYd24WvpadUvp3ITX4uSiU9VYVc+4/MJpM9B 0Rtk0b0l1LPktuYTNJ6ut0sEA1/mpR/w5l5jmZTJg3y7Tv/WKDv4IIR5wz6S94I0dUwt SemxgQZC5dNAFp2aHEVKHrPuK+1CNxmpV9QtiPsDeLyhubgzEwIgV+ZTTufvD2jjhlp/ Qn3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bk+3Po7D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id t15-20020a63dd0f000000b00577d99bd045si6449834pgg.843.2023.10.23.07.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:03:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bk+3Po7D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2F0DA8080E28; Mon, 23 Oct 2023 07:03:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229491AbjJWODD (ORCPT + 99 others); Mon, 23 Oct 2023 10:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbjJWODA (ORCPT ); Mon, 23 Oct 2023 10:03:00 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA56BD7E; Mon, 23 Oct 2023 07:02:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698069779; x=1729605779; h=from:to:cc:in-reply-to:references:subject:message-id: date:mime-version:content-transfer-encoding; bh=mco6F5pM3N+y18qY9xYdMZMN9NeQCPYRSl/IX3kb2Ao=; b=Bk+3Po7Di5GinIZIPQwzeomEVwpa/EFY00TJCZ6izpQuObOfmitdndhe Bq/KZR6yzt2wfCJe2OZUq3CMfqHe5Nu0WsFOTBPRbEVqXklY9Z+JyAtUU HS6WydezU8sqBA9k48wCInGPzhYy1YtSWAk9zRJzrAPas5TBW9Oe1bLgY IoENuRja0qjWf/ur4sgySMpWtv5W+6fZtQ2VqeRyUfgE9h5p2atm0SjHz 1eq6TUwquyWRDmAF17P6knB1/Tru3oFRGiIqIudOCdizgFmOaywOGGShI 1msTKm5ZRQUAkd4ncTyWlRHPJJI0KUJY68JgZ2GOgentQj2IUrR5ufraw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="384042936" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="384042936" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 07:02:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10872"; a="793143088" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="793143088" Received: from spididi-mobl3.gar.corp.intel.com (HELO localhost) ([10.249.40.91]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 07:02:33 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Kees Cook , Henrique de Moraes Holschuh , Hans de Goede , Mark Gross , Justin Stitt Cc: ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20231020-strncpy-drivers-platform-x86-thinkpad_acpi-c-v1-1-312f2e33034f@google.com> References: <20231020-strncpy-drivers-platform-x86-thinkpad_acpi-c-v1-1-312f2e33034f@google.com> Subject: Re: [PATCH] platform/x86: thinkpad_acpi: replace deprecated strncpy with memcpy Message-Id: <169806974784.2853.7847788147335527279.b4-ty@linux.intel.com> Date: Mon, 23 Oct 2023 17:02:27 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 07:03:21 -0700 (PDT) On Fri, 20 Oct 2023 17:52:43 +0000, Justin Stitt wrote: > strncpy() is deprecated for use on NUL-terminated destination strings > [1] and as such we should prefer more robust and less ambiguous > interfaces. > > We expect ec_fw_string to be NUL-terminated based on its use with format > strings in thinkpad_acpi.c: > 11241 | pr_notice("ThinkPad firmware release %s doesn't match the known patterns\n", > 11242 | ec_fw_string); > > [...] Thank you for your contribution, it has been applied to my local review-ilpo branch. Note it will show up in the public platform-drivers-x86/review-ilpo branch only once I've pushed my local branch there, which might take a while. Once I've run some tests on the review-ilpo branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. The list of commits applied: [1/1] platform/x86: thinkpad_acpi: replace deprecated strncpy with memcpy commit: 942a4a61b64e182d756a1a5776aa500d3b3d862f -- i.