Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp377947rdb; Thu, 5 Oct 2023 08:28:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfz2MYZ9UQC3WEzY4rhinCRPSobAouA+nFSMbl6ZaEhVhGB/RSrjdoX12BcU4S4b4vJgWR X-Received: by 2002:a17:90a:b017:b0:26b:4ce1:9705 with SMTP id x23-20020a17090ab01700b0026b4ce19705mr5498864pjq.38.1696519711476; Thu, 05 Oct 2023 08:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696519711; cv=none; d=google.com; s=arc-20160816; b=k4o04084hYQacUZw66QG7kkx0X8eXWHf6JB/pqwxF7S+zv58vpPHsjtXt2dTuS9+bG yPOXHZQOqkzZWTw4MBorg4XweRnflwh4TPlM4mNCLIVTBcvLqOBrcY5I6zLbjD36zvxE Fmgqh693+r3qgDfLuFb9E753IfyxvEkBoVkF5u1xQH10UlVAqrsDaRuBZFawyI2+qsL4 qCoQBfzmyoR+yh/PiZg7M5OLHMqT1lwE6rUVCGwnekVC9MWYTE2OiKP50xWfDezsrmz/ 8SRsrXO/Pi8rSl6bj4U3gw5VS8SuYGF3l9G49HICGn6Esd0pSIkLMO3g0HSEW5qljiLn 0s6g== 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=fUtLwtllPp99jeXX6mRFVenJIZK1QqO6/+sZz99KZtI=; fh=sDnmFSdL6HVDkxlQ2K9jyTdeM/9jx9puulJ5oH7hDbo=; b=OKyiM2qf+H5NzGooMDiNo0myyelveW3Og/mx2MTPHWPgbIPOmro6aCaI3pZUVJMGKQ BqMUE/gjybvYFmYOzRh+T0ZdnZKk8AIqdwGs3DRv5VzlZqGBdz4wkikAbwtb8JNJuXN9 mi9B2uHo4MtkhICN3+IhagFdv3RZXmEAtDtt8D20WAeSZrarLC+jQDgIoQ6h8YNYpMB9 l+/2bfxq7Xq7Kl2T21AjdhnUiCpL0V8NekFeraII+bJEcTU/3LYgGzWIi5pgcVYCjLoV UeWcgvecm2PNPJzITQoqka7j9NaDYWsRTx5PpqFmMNScdOylxcuanAvhTQ8QyYzGO8ei eR7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mO3Qatlo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ds12-20020a17090b08cc00b0026f3395cd7fsi3851997pjb.184.2023.10.05.08.28.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 08:28:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mO3Qatlo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4FF6A8371387; Thu, 5 Oct 2023 08:28:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232672AbjJEP2L (ORCPT + 99 others); Thu, 5 Oct 2023 11:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233088AbjJEP1k (ORCPT ); Thu, 5 Oct 2023 11:27:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DB488E97 for ; Thu, 5 Oct 2023 07:48:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E0F9C32788; Thu, 5 Oct 2023 11:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696504154; bh=pMx5pqQeQDjrMnqS2Ak24EVeDg8+F9nrpir675DqlrA=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=mO3QatlovJ1Y2buxaCKbEVfM0NU7/nT9U+XbwOch583bi3zBhSU0sMEvXip87qE2M y+owKp3cAfSU3ExAdWhd6r93T5SjFHugE5uIMRJ0fbG4Y8mLJbaSC1UxnMjoybiJFy E37VRRvtwnalMCHyVgwUlH4Z7XqUuskXWiY8ZtUr3V6lVOLZcl9Z5KMQOBrTnjEd3E feB0Snrbi/J1AmoMi5ryqmN3CcOfx9AGItI2CDTB9kiS086av0YVnN0obHwZRK1PP+ zBLAWY7NSk76SCnYCf1SToTSDoz6NYQphvK9BxElH7qpFOKPR7JKUxLVZNX0/9BVAC 2NrTbCPOqD8CQ== From: Lee Jones To: Linus Walleij , Lee Jones , Justin Stitt Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org In-Reply-To: <20230927-strncpy-drivers-mfd-db8500-prcmu-c-v1-1-db9693f92a68@google.com> References: <20230927-strncpy-drivers-mfd-db8500-prcmu-c-v1-1-db9693f92a68@google.com> Subject: Re: (subset) [PATCH] mfd: db8500-prcmu: replace deprecated strncpy with strscpy Message-Id: <169650415311.686763.14245532826620345084.b4-ty@kernel.org> Date: Thu, 05 Oct 2023 12:09:13 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIMWL_WL_HIGH,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 08:28:30 -0700 (PDT) On Wed, 27 Sep 2023 05:10:54 +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 string > interfaces. > > We expect project_name to be NUL-terminated based on its use with > pr_info: > | pr_info("PRCMU firmware: %s(%d), version %d.%d.%d\n", > | fw_info.version.project_name, > | fw_info.version.project, > | fw_info.version.api_version, > | fw_info.version.func_version, > | fw_info.version.errata); > > [...] Applied, thanks! [1/1] mfd: db8500-prcmu: replace deprecated strncpy with strscpy commit: 5f0c4e32e8da434a83dd74a08e477c11e7efc6f7 -- Lee Jones [李琼斯]