Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1637106rdd; Thu, 11 Jan 2024 05:17:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFTjxs9PXXaFUu4GPXgZK+FlIYRPzo/+FnornPAxPaJEyGdcm8Fa0sbCiVXwWllD3ZGW0wG X-Received: by 2002:a05:600c:490a:b0:40e:43b7:1b5f with SMTP id f10-20020a05600c490a00b0040e43b71b5fmr402218wmp.126.1704979073272; Thu, 11 Jan 2024 05:17:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704979073; cv=none; d=google.com; s=arc-20160816; b=f4n5k4XYGpIS+n8n1jBmE8qsCEtYGoE5YQODHC6DXWvSyCVMZ54T1YIErh4TMWtzZP Wtx2E+hJx0rlvUR6b8QmRULI/8/K2R2989B6QdX2+MY4DzNzLB6Q8pKNimhGblIhP5vh EiSrpPuRxiQU9S/oU1HzdDqg3wCQBCy6v9n5yzG70NDHPYPN5oxlb+th8zyVSvjDfCDp DjB6VPQqgvaHHTtbu/hk0bOcnIUyps5J3qG/G8mbcp+DW/WF7C7lSDADkNLlOdL7mLLf DbPlog98DLZ6ZJx+GqgwqsbdLeUOes/8neur/DrSMLfI/gJ1L9ee6EBf366macVM8oxa 9sDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=c2SXJ/WKFyTlngCTOujVJw5HgjPtDJLBh+VlsMW1fkw=; fh=DookrVKzbbrjjVPhl0Yl1jOrH1ujN6nGUBEUlLtzhQI=; b=0firECbE4G0IePrfYXcBh4GWQymfAegi/kE73PBrJCtVOS2TFH2+QdVrxnqWe41UD5 sqhB2WDaOvguJ6orNWm0sIrHshTk8SDbofgkIMRE/gSVmDPLRoLn9TY3iQM3grQzQEJo fRgYhRTIGIzo8T/PFro2PVI16lNYjU8Qffl1+QF8/qYlkJ8xKBmou0/eedO2AdEnlctW NwduQZcsIqzzcyLrOs04BHrURL/w3f38fkgqU0i1dYsjJGXvcMwHLdd4i8qsVNopQQ1B vNWzzAcQcwCpQnSmwniBVjWWiBIiAn3yJCKeFPz/bk0ry5q0vfGi/uWj+DMo3Niez5oP ecgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RSZjIf9E; spf=pass (google.com: domain of linux-kernel+bounces-23627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n7-20020a170906378700b00a2ac142722fsi495034ejc.167.2024.01.11.05.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:17:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RSZjIf9E; spf=pass (google.com: domain of linux-kernel+bounces-23627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id D8FF81F2407B for ; Thu, 11 Jan 2024 13:17:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 667FE16409; Thu, 11 Jan 2024 13:17:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RSZjIf9E" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9609F15E96; Thu, 11 Jan 2024 13:17:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5064C43390; Thu, 11 Jan 2024 13:17:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704979063; bh=RYqKMbpjBidzOlx6lTN2kCw5Q/l3CzHQ4m76Yj5HwPg=; h=From:To:Cc:Subject:Date:From; b=RSZjIf9E2W4q5LKDYPH3GimlYPp2ZLobrWHdSrqIzAAcPh3NJYlTXIkL8SUCbC8Ig 4NyjNGboBTdA9cFE+G7/uYzRDXePcjXS7naKXwMAewmN1fHUjrxoHkECpMqUZds6Jg cDtJDpUmR7L4ftGvoSHODdNH4q0eYrroago1EMTN8ewn+xL5Uqy1qDj6KUgVf2IA6l zR1RB1sxBRm3dJV9uNtEcM2FUrQrknVwr08I1Xpvp/4oOf3hBbEDjLHEGk2RrfIIsA tiI+HhUSntapJk1AstH5zaaQdzewQQlqwrg/IvhgxrMvIMauAXBTuC4QyVIvMyiNVb i91WlaT7J2p4A== From: Lee Jones To: lee@kernel.org, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Adam Radford , Adaptec OEM Raid Solutions , Andre Hedrick , de Melo , Joel Jacobson , "PMC-Sierra, Inc" , Richard Hirst Subject: [PATCH 0/5] scsi: Replace {v}snprintf() variants with safer alternatives Date: Thu, 11 Jan 2024 13:17:21 +0000 Message-ID: <20240111131732.1815560-1-lee@kernel.org> X-Mailer: git-send-email 2.43.0.275.g3460e3d667-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit For a far better description of the problem than I could author, see Jon's write-up on LWN [1] and/or Alex's on the Kernel Self Protection Project [1]. [0] https://lwn.net/Articles/69419/ [1] https://github.com/KSPP/linux/issues/105 Lee Jones (5): scsi: 3w-9xxx: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() scsi: 3w-sas: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() scsi: 3w-xxxx: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() scsi: 53c700: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() scsi: aacraid: aachba: Replace snprintf() with the safer scnprintf() variant drivers/scsi/3w-9xxx.c | 44 +++++++------- drivers/scsi/3w-sas.c | 36 ++++++------ drivers/scsi/3w-xxxx.c | 46 +++++++-------- drivers/scsi/53c700.c | 104 +++++++++++++++++----------------- drivers/scsi/aacraid/aachba.c | 6 +- 5 files changed, 118 insertions(+), 118 deletions(-) Cc: Adam Radford Cc: Adaptec OEM Raid Solutions Cc: Andre Hedrick Cc: de Melo Cc: Joel Jacobson Cc: "PMC-Sierra, Inc" Cc: Richard Hirst -- 2.43.0.275.g3460e3d667-goog