Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp204597rbb; Fri, 23 Feb 2024 18:25:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWDWW5+OGcMAEl+PxFH4Gyl6scHPAS4exGTK1x7pGKIY0fnLD3W9KXJfM0UtuRPDyhShM61e1AZjrf3dH+1aH+emm+gOknmmLyBf143Ow== X-Google-Smtp-Source: AGHT+IF+pjJqOOwHqVmO4ixCWnR0uZs7TaUbfWbk0B7Vd6nTqY8sguySmChMelXxwuGtPcaVqVSV X-Received: by 2002:a17:902:8494:b0:1dc:4a88:e0e7 with SMTP id c20-20020a170902849400b001dc4a88e0e7mr1606158plo.60.1708741517274; Fri, 23 Feb 2024 18:25:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708741517; cv=pass; d=google.com; s=arc-20160816; b=O6FSXOoh6Vdi+wabFuAuY+e4XUuPzyUUM1TKWM9UBK4lt5uxjRc+DutXqmf6gXcGRK Al/fPMInX+YjP7gRPyrWafL2g+2OEPWPHmqjmLqaUT+DX4lbGnfMYmpCwQIePtXmdLPg hwRjCZQpL2JSJAM7vOEerfoGBroIiVMmjmFwKUURkHAqX7IQWXVlDJs8l/EI2alP7kHr NmZUZgICx9/fwTbGKVxX46hFoXrm/WJnrScpI/CEJU3GiFmUvTCUWOvpQD32D5XvTNoo 26KkONuq7p5bWLHae5u9QVm8Pu9yCv3DAjNfQwgikdLS8EszXsj+ne5wqGTsDW9giYNj OpuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :feedback-id:dkim-signature; bh=Vk5kCKlCgJ1haPDDrVmCMA1V3PovTZFbWmjHD81lc5g=; fh=nDfF22SV6+NQz1/p0VSbURMvGHBowlupDG97IrM6FWs=; b=jqyW0JjrzKSa0hCSn9wFZYLi89a9x/RU5AceZWM0dyDY3/AznVHyLe+vC1O3vUuWcM /sau+mf+D4vFI3oo+9V6PvbHSB7fk62HXtnYwRdhcV2HJecxGUxa5EWBWR3k8uHzTuPn m7jrPsFptcciBKNpuxT3bmfHN7y2Z6TXeIkPVYcjdXHgDG0bFuwn/z7hBsISIpj5taaP uTm+2cvOgOvGbU0MUYz9TkRddF882To2oiMyn4a+RSsNUBMsIEHCWpwvR60oxUhNg+SA yxgnE99U8mrqTokcMjUvWyEPf+Y1n+6adqmDXKKrTKNQ5jw/vYcnXVZJhkbQpxZCSg9f 4pXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=jglTGBrB; arc=pass (i=1 dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-79329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79329-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id me4-20020a170902fc4400b001dc679303a6si164150plb.71.2024.02.23.18.25.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 18:25:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1 header.b=jglTGBrB; arc=pass (i=1 dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-79329-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79329-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 662BC287948 for ; Fri, 23 Feb 2024 23:57:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B67B914DFFE; Fri, 23 Feb 2024 23:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="jglTGBrB" Received: from flow7-smtp.messagingengine.com (flow7-smtp.messagingengine.com [103.168.172.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1ABDD14CAD0; Fri, 23 Feb 2024 23:57:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708732651; cv=none; b=RjrzTcrArL4g7s5MUJ5h4pkbn6vMSIs09t7IMOa4P9/izsL/X32TU/uO33rlppe+WSV/zP3Fc5pJPu/jv4edqIDR4+d+usSQgqdCok6KHkzKYqQjy1mM93myIIBJKt1zY7blwokQt2OeZWsmDbIQ7td26dBGfXTXsa6FrVIe9KM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708732651; c=relaxed/simple; bh=Mx11YUHiPniIQ7XaRG9QZQ+TYZuZMGMF5iEeDvUY/ng=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=K6ZYSb6JaQR5wiPs8wccLn6YOuXeXgKGaAiNR8NOprG7dV7GtAkToCMyyrnDioVv0LnneeqBUtS/5DGoN8txAsAA5i1T9MK17Zk5wg3SrMh/6R+T3dN6xAHNFNppFRg2lHql+2mIsgncZtboeuB+GTf1FOTn9KEZMHTod0Dq0hM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=none smtp.mailfrom=linux-m68k.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=jglTGBrB; arc=none smtp.client-ip=103.168.172.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailflow.nyi.internal (Postfix) with ESMTP id 0C30C200087; Fri, 23 Feb 2024 18:57:29 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 23 Feb 2024 18:57:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708732649; x=1708739849; bh=Vk5kCKlCgJ1haPDDrVmCMA1V3Pov TZFbWmjHD81lc5g=; b=jglTGBrBnIN7wWXQoHPP6k1vKcyDNRH8UzlfaP9t7hMP XKPoldxdahZ/Wtg+u3+NyHyS5yvuziNR9tHtADbelg5NIZFJOAC64SeTMiJD/5H1 ZOWRfyCKTiCbGR1XWuBIovu0qZHGj+3jr/oShYXkmLDJaQQgeclyz1I9rfrXxpf1 J6renLhWmUUDWU+eFENoHS5QuoUaJsr8OYCZndbLtVpZBXGlHsnEZWCxkIdBXTbo YWiLy3TT/6xAzHGyqiPz2dog6axt0g9tx/sI+TFmeDM292uE0bUarWH8oYNu5FIg t3OYMtYrXbcHBFI2CMxopehqBpTPA/FENmoDwlY98w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeejgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefujgfkfhggtgesthdtredttddtvdenucfhrhhomhephfhinhhnucfv hhgrihhnuceofhhthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgheqnecuggftrfgrth htvghrnhepleeuheelheekgfeuvedtveetjeekhfffkeeffffftdfgjeevkeegfedvueeh ueelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepfh hthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgh X-ME-Proxy: Feedback-ID: i58a146ae:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 23 Feb 2024 18:57:25 -0500 (EST) Date: Sat, 24 Feb 2024 10:58:07 +1100 (AEDT) From: Finn Thain To: Justin Stitt 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, Kees Cook , MPT-FusionLinux.pdl@broadcom.com, netdev@vger.kernel.org, storagedev@microchip.com Subject: Re: [PATCH 1/7] scsi: mpi3mr: replace deprecated strncpy with strscpy In-Reply-To: <20240223-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v1-1-9cd3882f0700@google.com> Message-ID: <512c1700-b333-8aea-f19b-707523ac3a6e@linux-m68k.org> References: <20240223-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v1-0-9cd3882f0700@google.com> <20240223-strncpy-drivers-scsi-mpi3mr-mpi3mr_fw-c-v1-1-9cd3882f0700@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Fri, 23 Feb 2024, Justin Stitt wrote: > Really, there's no bug with the current code. If (hypothetically) you needed to reduce stack size, just copy the char pointer instead of copying the chars onto the stack. If (hypothetically) strncpy() was banned altogether (rather than merely deprecated) I would do the same -- but I'm not the maintainer.