Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1619104rdh; Fri, 24 Nov 2023 18:54:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbgl5od4+waJUTD85L4+36Z+prXnXTorZYQqrkBGR7GyBirVLGlQ0hJ7tzC9/hfPmKJXDb X-Received: by 2002:a05:6870:3926:b0:1f9:f674:76a6 with SMTP id b38-20020a056870392600b001f9f67476a6mr5109388oap.37.1700880898836; Fri, 24 Nov 2023 18:54:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700880898; cv=none; d=google.com; s=arc-20160816; b=FvBGeF0EBvGoePBdZ16kMSdebFEDqUEIrgUtX8d1C2NDK4C4Hct7SThSV5Xw2XYPOB /8N/x/+kXc68r6I9Wd6ArCIXECL28TAxe9lNFNzOURp47DjwKn6xnIGByXAHhh2zJRi4 OTnoUmUAcBHX/Q6iF9CT2CjvVAme/gB4tF3F68UghIGGI57EKVVnw++KTKJkmyZCV3DO rOzx5PyUFeWilYbFSR8980fc4gEWOaepzCpKMe8HoekeEIR6vC3pSYtdIoipoSn6TXBK BlMhqPGM0SI5W1nJNQtHx4/9tjyKsqK/+fvr+g5g5nLs/uZJ+6aPuNJJtI3Z1byssi7w oTGQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=83tAjd3c0cNOySMl+swY7Wc/iliUtZENenIoQXddSr0=; fh=U4W/b+NtYDg6JlN/0bgoYMpMxKjUqSctgE5DXMIR5b0=; b=NJI4sNw76BWs99NrJNNA3dwKL4ah9+F/VsFxQBV2xtPl14ethnjw1HhL5E4YHFg82P b4NSLYK0Ntc8flZDG2wbmlfqAbLYFLZVe1S7fHIMjcvJP2Zdck8MvR1dPiXLs+sxvU8n bkavVKJ0iUF85kwPeADd5X/KwugMGuzCBV3VfwmSsDAH8BKuafThCRbHMINnKZWBMkpw ODNJOr5wtmQeQuO+Q7rFY52DpMecRxIaZyyMZaotfq4i8ln+KszMR1wSJSEpewCJoG9r 7gw9xfl02+rsTQDq1p3X+JknG9CGy1UGw8NeWl1S+q2YM/06xtNWL0ZULTn/h4RYP17M LYEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=V3P31Tcn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w11-20020a63fb4b000000b005c2791fedbasi5041007pgj.124.2023.11.24.18.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 18:54:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=V3P31Tcn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D71E4825549B; Fri, 24 Nov 2023 18:54:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231695AbjKYCyb (ORCPT + 99 others); Fri, 24 Nov 2023 21:54:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231640AbjKYCy1 (ORCPT ); Fri, 24 Nov 2023 21:54:27 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0705F199A; Fri, 24 Nov 2023 18:54:34 -0800 (PST) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AP1jAnk020953; Sat, 25 Nov 2023 02:54:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2023-11-20; bh=83tAjd3c0cNOySMl+swY7Wc/iliUtZENenIoQXddSr0=; b=V3P31TcnYAgfkx1IYCzf6MM/BSTPW8ReuC0H4VS+CgZXyErpl77OmQKf4bJYWtvQ1Jbj YnX5S1TBeIzkXczlqCuqImUOgNPDrJq76xuNbms0RzwmoldRpeKnGUlMBo9rluwK9tfE izRgdNvO8lV5CfuNRIXK+GEbp4vqFZeJ/6IOGFkAF3p7adnseqJlEuD/y7vB32hit771 k8FdbaTyUYUUDNbjq5dkYOVnqwkXpZNhu6C/giqLSdUhVVyXakHu54lF1puBZ9/fg+63 fnlwxHO2UP6hhVr6BJoebMLha7nxDdp/7Cgx3bgkaT3vrPvfnFjMPFxeK4eTodK0GBQ9 Kg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3uk7h2g1du-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 25 Nov 2023 02:54:30 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3AP1XxBs027101; Sat, 25 Nov 2023 02:54:29 GMT Received: from pps.reinject (localhost [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3uk7c99f61-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 25 Nov 2023 02:54:29 +0000 Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3AP2sRSt011828; Sat, 25 Nov 2023 02:54:28 GMT Received: from ca-mkp2.ca.oracle.com.com (mpeterse-ol9.allregionaliads.osdevelopmeniad.oraclevcn.com [100.100.251.135]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTP id 3uk7c99f5h-4; Sat, 25 Nov 2023 02:54:28 +0000 From: "Martin K. Petersen" To: "James E.J. Bottomley" , Justin Stitt Cc: "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] scsi: ch: replace deprecated strncpy with strscpy Date: Fri, 24 Nov 2023 21:54:16 -0500 Message-ID: <170087016625.1036733.2666443911958079380.b4-ty@oracle.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20231023-strncpy-drivers-scsi-ch-c-v1-1-dc67ba8075a3@google.com> References: <20231023-strncpy-drivers-scsi-ch-c-v1-1-dc67ba8075a3@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-25_01,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 suspectscore=0 spamscore=0 mlxlogscore=946 mlxscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311250020 X-Proofpoint-GUID: HZHnAW8uNVrr-zJyWs9_i7_60HuVzDxS X-Proofpoint-ORIG-GUID: HZHnAW8uNVrr-zJyWs9_i7_60HuVzDxS X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 24 Nov 2023 18:54:54 -0800 (PST) On Mon, 23 Oct 2023 20:20:14 +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. > > These labels get copied out to the user so lets make sure they are > NUL-terminated and NUL-padded. > > [...] Applied to 6.8/scsi-queue, thanks! [1/1] scsi: ch: replace deprecated strncpy with strscpy https://git.kernel.org/mkp/scsi/c/dc7a7f10e673 -- Martin K. Petersen Oracle Linux Engineering