Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2610594rdb; Fri, 22 Sep 2023 03:59:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IECTNS1zeri0csKP3UnSefhd8+pUcHc+mufBEKKU7kk7wUGxiVToUABt093z5eeR8q25kmc X-Received: by 2002:a05:6a20:4293:b0:125:3445:8af0 with SMTP id o19-20020a056a20429300b0012534458af0mr3343750pzj.7.1695380344639; Fri, 22 Sep 2023 03:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695380344; cv=none; d=google.com; s=arc-20160816; b=REEOgxyQWazGVip0wOAHiP9jHAJ58YzT9rVFcf6a9xxvjifUkCHDK3zRQIR7SSvsU4 0+kgfBJrLg0QKSvuXtEGgVONe4Q1y78nubCatd7PfA5yfYJYngcG/p12PEIS942q65wv ZNeKgu+A5GVeV6XMbKMxiGx303nWdn79CFQhPANCqAVW5Oa1UIBYQ01Tesbk+0sykGrM 9WJh/YAEqKni0U6GGZXM7r/oDTTxJ1nfWnDz/dVgk4MBuhu6qDMckGSJOzyjK2wIS2OD /19Rc+OUGEszz3eZ3X95PnG8PMtVVdj3sk9OCncZe9sTucjZ4Kid8Pm7AwcQM21Ht1Lx pgMA== 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=Kg+iCKAfPRuVOBXsLIj9dKcBFhe5MaqD1zfO30+mFag=; fh=8mb0VEkrCkeN7HfuHh7Bo6SoR9/zpKVVyLXkcjbmBjs=; b=Yk5dpj1ldDrMVSMyZLwxixiLNldNI5sM25MKQgoZHrwYKqIyxjZBoUFB9PTA8vbT9X 6P5j6iZsKRnUhZne4G2hzrw5sOoajlMQJvFegw3eHnt7RC6i0lq7IK/vk4OKujjQIB1b Y30a4V8YLzB3waZ5u1MVXP7fPFuDQ0jukvwvs93LAUmp2t14mxLW5H1/6HpA+GLlJROj R2wYBtAYTlJkTj4/rNeNfvBFKnKpStGD0Ita+DNLpmzjc7AApQJfFcTQRWG9knW9LKQf +eRG5gKpODiJKe9X0HAvlIoWScjR+aISzgqtdqD8sFoJJCC+Uxswb8MyQluqGNG1UIWj jaTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QCaGTzum; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cu2-20020a056a00448200b0068e256c6366si3484059pfb.352.2023.09.22.03.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 03:59:04 -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=@kernel.org header.s=k20201202 header.b=QCaGTzum; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C285E802B15E; Fri, 22 Sep 2023 03:30:02 -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 S232655AbjIVK3z (ORCPT + 99 others); Fri, 22 Sep 2023 06:29:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbjIVK3x (ORCPT ); Fri, 22 Sep 2023 06:29:53 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 147AA192; Fri, 22 Sep 2023 03:29:47 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2354AC433C8; Fri, 22 Sep 2023 10:29:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695378586; bh=yCG8IrY/FuMkm2ycosgLTn3iZcJWMJut0cHXk4vlD18=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=QCaGTzumTtxgWS+3CspI74lb4Jg+NBi/AMbcMSurCW/MFab8No3HgZRcBFAJj8i4r +mCxJ8KQ9nEZo5EjiHqkFSrzWDuSM8PNn/z0peVt7XUn1MhgubcUuTcPvHDKU2EzoQ byP34bIYM9bgEXYMbgfryHyvLv1OREjcU6TJommYnox7oNPFgBzeC3MgIARtCgLFe3 1yQVhThkAlrNI4o+Y2E7fUtjtcYs9fzsqFOETDDJFiXftNprEoFzF7YFaHHEwRg0bF 3fFjYqxMj6sucPiSHmwp6UoQbypHXAswYIj2OaYhEVPtyjXdSIKnuK+f+17iVx1VNj xanmOFVHvgNVQ== From: Leon Romanovsky To: Mustafa Ismail , Shiraz Saleem , Jason Gunthorpe , Justin Stitt Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org In-Reply-To: =?utf-8?q?=3C20230921-strncpy-drivers-infiniband-hw-irdma-i40iw?= =?utf-8?q?=5Fif-c-v1-1-22d87aef7186=40google=2Ecom=3E?= References: =?utf-8?q?=3C20230921-strncpy-drivers-infiniband-hw-irdma-i40iw?= =?utf-8?q?=5Fif-c-v1-1-22d87aef7186=40google=2Ecom=3E?= Subject: Re: [PATCH] RDMA/irdma: replace deprecated strncpy Message-Id: <169537858200.3339131.1210100374034113927.b4-ty@kernel.org> Date: Fri, 22 Sep 2023 13:29:42 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12-dev-a055d X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Fri, 22 Sep 2023 03:30:03 -0700 (PDT) On Thu, 21 Sep 2023 07:36:26 +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. > > A suitable replacement is `strscpy_pad` due to the fact that it > guarantees NUL-termination on the destination buffer. > > [...] Applied, thanks! [1/1] RDMA/irdma: replace deprecated strncpy https://git.kernel.org/rdma/rdma/c/f0cc82ca116f5b Best regards, -- Leon Romanovsky