Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1712976rdh; Tue, 26 Sep 2023 00:47:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPQ/o/cdhEOgmFVEbCmr/ZlvnDu8tN5VBjOvGd9CO93NSq/pBYhfv4eGlw9NaegyB62rEJ X-Received: by 2002:a05:6a21:613:b0:15d:42d5:6cb5 with SMTP id ll19-20020a056a21061300b0015d42d56cb5mr6267048pzb.28.1695714461291; Tue, 26 Sep 2023 00:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695714461; cv=none; d=google.com; s=arc-20160816; b=TEO0fuBjS8Ae+wrsMT2vYZZFgCJcuIF2U/DHU4fOTpkkAjE7Uwx76CMReGxQ4Rq01P sM9lKw0HRORqwa9mH9nVdOCqfv7VS3bE9Qntzx0qIzqqxK+iGrVWvtAye8EfSqZIn9MG Myi0ANcuum02TbCyW2MvRx5dQmVM33qMvf2+t9JF7nNkSTyAUz16osdsMEnS+jqMs2U3 VGxEuRWHVNoEmCqrGCNf0Y8eqZgYxguXj2uV61YbFwlothZ3/kW9a+dyMR3Qb5B95Oiu f4C8g4rfkWwVYvHBTLIFZrynmsM9aG7D1+v0vC51uqkl5bpo3WM9O32a+tRtCNjVq9On kvTg== 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=zK2AYyS5AOi31YK4qNe9+ZL3iMbHjy0qxHStfnnY9To=; fh=c8Q8IqgL7enOAuvOzXr/R/cTDOOe83QgOkWo8p6bM1U=; b=Evam9PodB7Iqyq8Kd2CHBA8W31W5b13eOCNjlyrMP6Zezsh9eCPmWUJz3w6eyyx+Uu w9YxTHKtimi6tR/eJqBs7LF62hvtsgTo7J/zYACQwyodB2D7b3uDHiSvIqFi1CON7ZDT l7Iz1eEu4SLUr9j1CH1FycSJ5vOBobwyGWYY724RrVW/8TlnQYB6ry7rGZR2/i9Zh9T/ o0Qcq1PEVvaGpQsQSY0uK12NMu6Ahd5tad3a1Zkb8x88FtNffM1RyNeZ2o8uKt0b8mGO PKCblfNqj6ky0148Ue42nagMkbmmivx+lHrC9qdI7ljfo6zYjbF6FGpZ8K8dKY0X7H9q wrIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="IpVwMo/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y6-20020a17090322c600b001c35cccca33si12450728plg.448.2023.09.26.00.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 00:47:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="IpVwMo/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B1BB8825ED89; Mon, 25 Sep 2023 14:36:51 -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 S233463AbjIYVgt (ORCPT + 99 others); Mon, 25 Sep 2023 17:36:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233401AbjIYVgs (ORCPT ); Mon, 25 Sep 2023 17:36:48 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21627194; Mon, 25 Sep 2023 14:36:39 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2ACB260007; Mon, 25 Sep 2023 21:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695677798; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zK2AYyS5AOi31YK4qNe9+ZL3iMbHjy0qxHStfnnY9To=; b=IpVwMo/jZcA6bL0LNhouiA7axhgCG84NHJcLXJZ1fg9WcoiobYjsiiUzODnbiZpggMlRRd 3Z2moSnXvdUwfpbNLhakYZXW57LpE6Zc8F9tKLDW3CF9vhVmE+2K0fErfemjE6HBPAiFgh YvoKpte6cdLIV9hs4Y4hx73PCLaAwTZnCa0Po/cHDNFROdlPKGZeERHRYJ/+544Mn6GCHS 31X642Feh7Jos4sFAGHVx1oN10p/NHq9CuHlxPDiqlaf6XsG9o99yHHwUxCeGdYW9EqXIg 9FNxToeP0Y6Gz9sIN1BrZejtN3PbNcx99Qv+PirZ/RNCy72wpIl0FwrZVLM2Uw== Date: Mon, 25 Sep 2023 23:36:36 +0200 From: Alexandre Belloni To: Justin Stitt Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] i3c: replace deprecated strncpy Message-ID: <169567773733.243402.3288813289063152469.b4-ty@bootlin.com> References: <20230921-strncpy-drivers-i3c-master-c-v1-1-9fdb8d8169e1@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921-strncpy-drivers-i3c-master-c-v1-1-9fdb8d8169e1@google.com> X-GND-Sasl: alexandre.belloni@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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, 25 Sep 2023 14:36:51 -0700 (PDT) On Thu, 21 Sep 2023 03:51:04 +0000, Justin Stitt wrote: > `strncpy` is deprecated for use on NUL-terminated destination strings [1]. > > We should prefer more robust and less ambiguous string interfaces. > > We expect adap->name to be NUL-terminated based on i2c_adapter name use: > | dev_dbg(&adap->dev, "adapter [%s] registered\n", adap->name); > > [...] Applied, thanks! [1/1] i3c: replace deprecated strncpy commit: fa7726a4d9b91e0a8fb6fbbd819cd20f116f6c21 Best regards, -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com