Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp746380lqs; Tue, 5 Mar 2024 15:38:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUCsg8ziFqyjOwfpXTNUNon8l32o8PWCIUFkW5lsjBFzjhzHPuBHQvHabRK/IudvSgSFwLt5EkRJpIU6QE2mugNI/ay+KfaR6k+1qLKeQ== X-Google-Smtp-Source: AGHT+IHcKhbUnrIlF7mLTWF93wzSgF5N89vLg5Veg7kuXyuv5MSVhlSO7O40YIVJZSTCaNJKuUnr X-Received: by 2002:a17:906:6d09:b0:a45:5853:6740 with SMTP id m9-20020a1709066d0900b00a4558536740mr4794580ejr.64.1709681896439; Tue, 05 Mar 2024 15:38:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709681896; cv=pass; d=google.com; s=arc-20160816; b=E0m7mql8sgGXYi1eUKk+h2clfprBGDwO1MnECLCLKXVpYXrpPd3JknfRuO5E7419eu YHgo6ncdkHoFVU85uSOQ2q4k1h/3dpeDPquJD75zLskpWpADBu87/ANKxQ6ROw0EghmO jCPUUubrKdQnw4X3JZEKDTbCuspzwB+pP186a1AtL3Av5+o+wBwhB0siQWU94ZXi+c/S oNjX6UsurGTDOsD5xmElSJutqkA4iqMqMQCGt49HI+/mrXwIzwfmB21P06VwXDp1FjO3 GX85xCU3Z2UHPOFtx6RpItRg29TzIl3ApvvyB2BZICkq/s0sNypZLWimxYB5PUKJdx6D Ag0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=PG9dPNyzq6JVaBBw+HFrzAHEWMQl1R7aRqbEgTh3gMc=; fh=9vKi8Ey5sexVtw0Zp+OolyyTOZkXdZAQqpgArIwWU54=; b=cYcVLqon1fEXCWiyigCVB9F75IAGBQ3OnsLrRyizCRRb/ZlXrF0rWGOEq3bCI5jt0Y m9ZV8CJD4D57GyJFyW8wnJN9WUv4JS4xDrZOc0N6lgwSmSMLanfAuyL/1hLPHNb2Y5fb rJFJ/X+jVmCpkB0IpZTQmaVyQOTPJbt7/L8IJ8Xp4VjQkcIoh4+VtuuUJzRS9JxzawzF wPppiVanUBF+3auDO8DU7BTr+BybGEa0wQL9nrZdAZvLHwlSGsFSFMU0FUnSy56DRVPu 9KLE4PY7GDRA95yBljnBnLDyWJvkZKhj8+TD84NPPDkbVjswbQHLlzOSs/2+fR5Qiz9P QJCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=KskmwLjO; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-93114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q23-20020a17090622d700b00a3ea43430aasi5418037eja.631.2024.03.05.15.38.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 15:38:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=KskmwLjO; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-93114-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2705A1F2277A for ; Tue, 5 Mar 2024 23:38:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C13E12E1D4; Tue, 5 Mar 2024 23:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="KskmwLjO" Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDDEF12DD93 for ; Tue, 5 Mar 2024 23:36:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709681767; cv=none; b=jPz86mjlCxFK4FVHLGfpYnODcmiYkUZiDrpE0mGgLa9Erg4bMLwRKu6a87HWTbqyuiN0f4gaxwpmGo+HjOqbL8MPLLLOsJNyx0lBSSGhDT/S6C0+yC/lKFdMUm7+4WhIu+mqJda19aRuRqPA4Mo21UIFJQuN4ZTnSCa0Mfboe/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709681767; c=relaxed/simple; bh=PG9dPNyzq6JVaBBw+HFrzAHEWMQl1R7aRqbEgTh3gMc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LwNUNM0qiSz9fr1d+uLP67VCvfYQ/SRQGn9dW5/MbqKNjlY9TSMvMe6g2omhCGuDH6AJDKRKdi38NzUqi3ahc31/0XcRVJ5bfbxIHZpS4W1FobZp8XPfz575tM7XqweXO5gbi+Xv6Ufs1+3DtkPK4SaYJ6cnEOYjSG93dM4OeBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=KskmwLjO; arc=none smtp.client-ip=209.85.208.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2d27fef509eso4338951fa.3 for ; Tue, 05 Mar 2024 15:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709681764; x=1710286564; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PG9dPNyzq6JVaBBw+HFrzAHEWMQl1R7aRqbEgTh3gMc=; b=KskmwLjOg4zuOKK+qISkV70xL6R+FwjTDVbalus6AUf4n2qZMXLZ2pIge3J+TR/OPH gb5O0zjq7v4tCNeURLCTpfvBmk0h2A706fyova/gF+eSIOW5YeXtimSqJ2pKiGD/kvwV kgn9SWutLbo8v4aLFGdfvp/8+c30KjeVyeRQ4Bbrp75+HktNLF4X7ViJf5q6bp8atVf5 bKuI3B3ADYozWffO9/TdTxDl5NWIxfYOS5slABWfwSdg+soM8M2IQAO7GWin6CKtRAp9 HNQwkHBuSQfcjySLMJBVmZrhHTAwNuoUUXrZsSGkYNPshHDkIlOqkQildHro11pClUA3 1f/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709681764; x=1710286564; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PG9dPNyzq6JVaBBw+HFrzAHEWMQl1R7aRqbEgTh3gMc=; b=H2rxUBsQnLcn/u3252jWNH20wiF66MY0jSL+vRwRzyTMyKudN8GGZftoKOicOokOOw beNIjh27/qlpIzQFJMLJCncIJ2VPTsr9x1LZiEGQ1Lq8twPue8vmmpeULEmadvX+AG99 fAlOdc19DiywJOeGxnJshdrcmiiLAJpZNBKDst4j5+TyIEFlma+ciXaFu440BUuB3I2w eBklqSrwen27gCb8i+X2Bwy0XneZ4z1Xz9tw0zI1krIW5n5qllMk6AfJ7/c/JfNIDmCi AwE5fRNkmoiSYDJfaHmCubguTHAABAViZDP3xtU3YH/MWrZI5VZM9RrNEGGBqt1CKDg7 Bh7w== X-Forwarded-Encrypted: i=1; AJvYcCV/6BpDv5O+RXUTMsUWgFv3zUrtBD8JqAdWkDVX2XNf2SK9RM2JfDlxKYVFU0AQmS3hRQ2hLNNodXcNJ7WWJe/+VmUU5NSgJnFlVfF2 X-Gm-Message-State: AOJu0Yw+ECPgpn6QBL2iO+rF9ONoWcsPLPRc1ySJI/XZNm9/xZNHWZKd Y7/tWfhaS0aBH/WzWbhAKr4V0+Q2senljyVdLtYKdARpY25V0XEhb7ml2Pe07XCQ104UaPVYy8j ILTPsl+69IR2m4kRJhA+2iC+3+5mrCFhgw/Yh X-Received: by 2002:a2e:7a18:0:b0:2d2:a443:9c64 with SMTP id v24-20020a2e7a18000000b002d2a4439c64mr2110734ljc.45.1709681763937; Tue, 05 Mar 2024 15:36:03 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240228-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v2-0-dacebd3fcfa0@google.com> <202402281617.807B1B7@keescook> In-Reply-To: <202402281617.807B1B7@keescook> From: Justin Stitt Date: Tue, 5 Mar 2024 15:35:51 -0800 Message-ID: Subject: Re: [PATCH v2 0/7] scsi: replace deprecated strncpy To: Kees Cook Cc: Sathya Prakash Veerichetty , Kashyap Desai , Sumit Saxena , Sreekanth Reddy , "James E.J. Bottomley" , "Martin K. Petersen" , Suganath Prabu Subramani , Ariel Elior , Manish Chopra , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Saurav Kashyap , Javed Hasan , GR-QLogic-Storage-Upstream@marvell.com, Nilesh Javali , Manish Rangankar , Don Brace , mpi3mr-linuxdrv.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, MPT-FusionLinux.pdl@broadcom.com, netdev@vger.kernel.org, storagedev@microchip.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2024 at 4:18=E2=80=AFPM Kees Cook w= rote: > > On Wed, Feb 28, 2024 at 10:59:00PM +0000, Justin Stitt wrote: > > This series contains multiple replacements of strncpy throughout the > > scsi subsystem. > > > > strncpy() is deprecated for use on NUL-terminated destination strings > > [1] and as such we should prefer more robust and less ambiguous string > > interfaces. The details of each replacement will be in their respective > > patch. > > > > --- > > Changes in v2: > > - for (1/7): change strscpy to simple const char* assignments > > - Link to v1: https://lore.kernel.org/r/20240223-strncpy-drivers-scsi-m= pi3mr-mpi3mr_fw-c-v1-0-9cd3882f0700@google.com > > I think you lost my tags for the later patches. I re-reviewed a few and > then remembered I'd already reviewed these and they were unchanged. :) > > Please run: > > b4 trailers -u 20240223-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v1-0-9cd3= 882f0700@google.com Gotcha, I've resent [1] I've also added this into my scripting so I shouldn't miss any future trailers from vN to vN+1. :) > > :) > > -Kees > > -- > Kees Cook [1]: https://lore.kernel.org/r/20240305-strncpy-drivers-scsi-mpi3mr-mpi3mr_= fw-c-v3-0-5b78a13ff984@google.com