From patchwork Thu Feb 8 08:44:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 20092 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp29246dyd; Thu, 8 Feb 2024 00:47:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWfPsnWQ59euhewI6Gzx6zaSduvBwUvyT3+r5RwFOTFYpHMkICt7Oc8jHBXOFkDSYhSQqD00FDDnDfAyX4PxYDyc2ObyA== X-Google-Smtp-Source: AGHT+IHcLhfFR0YQuycB2JgZeCYqK2Rw3Rrnvc/8pjnp9HuLIlRZVmqSHKmpEZzcYpktZPmpNYcm X-Received: by 2002:a17:906:895:b0:a37:9bae:ee09 with SMTP id n21-20020a170906089500b00a379baeee09mr5917505eje.11.1707382066716; Thu, 08 Feb 2024 00:47:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707382066; cv=pass; d=google.com; s=arc-20160816; b=CcIepNLQ31H9CcxNinwSNjEhIvDoU9ZFWNVF3pK/pUTgvyT/lGNRmrxp+QZEK4dDCl xDwVTYUefi3rlNizbzo9ivWLd6Smfc3gQ27cjLnaPuxuHKU/k+oAQR/LzxJ27IRIm08G qCiotYrtzZqUtTRgAtiPtycCzkyfjQbwXCg1MxFop+d+yG2I+iWFiXqbCDc3RFwH56aP mlvhcN3kkT6zq72CVuRa82oQfgPSrhik6gmXbgAvRYy659/NjhH2KD8UWW2EQDzFa+rO TEMtGxN+SOweASaeFW2mpOnncPy05x3E7LaWqJpFUOlFPNhWRcABhZkbdQl1DgU7JoIu 8hMA== ARC-Message-Signature: i=2; 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=1SfZNRhhYmmqlObQ4oiJhfux9LjuM/pMKAUNLEtpcmI=; fh=zQPGbO+R+zzmoBMsVU+azloYc/zMcJ78/LAJ/fmkaPI=; b=IwdsQ6QhWMIFF6jJJ0v3s4ZWEZa9yAV/POpjccP1p6IoX/cN4Ur/Q27IIMvqTMvL2X X9+N6sgVge6IxEG8fAQmg6D8yciX3NbC47GguNeCnIcHPs8Ofx4/D+Z3iQ19p1pn1T5d 1XKwE0ehBBQGyNyYfcYCN5qNajhcNm91KhkS4jrahfzFsJbe4Y8PRK7o0DUDw6cQeBdC sqd6EpdpsmT8wfff2cTh0bK1pl5/qx38yXCDsrLpTOaIG29fk+1pAjL5Xhb5UAsgoDUP 0fAfF4zuWw+Qcr1hkKhJQ5aE+V1AhiakgwZFL71WeE6JHzKUeIm5NyetImLoo2WSg0Fv HmtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lLAK48lT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57646-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57646-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXgUtaOpUEbxDOD7hNCGuLTxGeT8zSaHrvYIDd8279lNvIzSn6TrgeIY2EFjiyCBr7eYtSYpS6YIqe9CXH8p5a0Yvw8ZA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g2-20020a170906394200b00a31914f552esi1958818eje.710.2024.02.08.00.47.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 00:47:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57646-ouuuleilei=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=@kernel.org header.s=k20201202 header.b=lLAK48lT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57646-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57646-ouuuleilei=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 559191F2507B for ; Thu, 8 Feb 2024 08:47:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BEEE6BFBE; Thu, 8 Feb 2024 08:45:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lLAK48lT" 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 C11A66BB5B; Thu, 8 Feb 2024 08:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707381922; cv=none; b=hyUPz4GvfA/XWrP6CSnu6+oBzJVPHg4LiKV8jHfk8h2midHG0lmAD94hME7+QVgm4E/eHPxej21gWy8mMujFG0xpMOtre/Eabj8taCI3TiH4o9ciIaZhtZoKmtjQWodOurSR5pxWOEpypukTDDzv7E/5frZmKabhuJJXHv7dszM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707381922; c=relaxed/simple; bh=hlDlwkcxeivGM241tQtpGe1Fz1cUI3T9CvMucHwZtrU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Euxiz5jFniBomMI9mc4iWyqTfPavmiZ8fri/gktCR9brFYgHwPHb5S5WeA92BNyFIBfQlYq4hV7NjpNBjCTcQDCYsc0q2bvhvA/2IVbFWPEcQIcWl7o+dddyGhsudA6hCY1/DxgZ3qpgAyy79UUB5R9PzlORqQWw7BTogI/hsDk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lLAK48lT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1173AC433C7; Thu, 8 Feb 2024 08:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707381922; bh=hlDlwkcxeivGM241tQtpGe1Fz1cUI3T9CvMucHwZtrU=; h=From:To:Cc:Subject:Date:From; b=lLAK48lTn9HBU7EKLqxBBkVilxBGT8aUPXY7Lp9U2eQRFF16qffg+Kqu9a16n4lGH jv896prmv57q+H/JcowzvDAkY1QgBS7Y7wCQGrO0QidbqWtzlZ5KmnOxMfUCYbLbVS yWqpv6MEVRiU/FUwynJLA8G6k8hYkTibW3ptJyex2WRxHGj7E1plEu724a4q6LCeNo enXZD26uqRH1Y4VbpuG3OtRTWzn/OPHXHlbz6Qhe/d5Az31Qj+q8pB7i68YpqJ6jmr j75FCxj3/rNpl2eGLEZTvAqZ8cfxyYMOMty0X2HPws4Ed1DVIQn1RfZ2ZOpA+blgbj 1GOD1si6YMj6A== From: Lee Jones To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Adam Radford , Adaptec OEM Raid Solutions , Andre Hedrick , de Melo , drew@colorado.edu, Finn Thain , Hannes Reinecke , "James E.J. Bottomley" , Joel Jacobson , John Garry , linux-scsi@vger.kernel.org, Luben Tuikov , "Martin K. Petersen" , Michael Schmitz , "PMC-Sierra, Inc" , Richard Hirst , support@areca.com.tw, Tnx to Subject: [PATCH 00/10] scsi: Replace {v}snprintf() variants with safer alternatives Date: Thu, 8 Feb 2024 08:44:12 +0000 Message-ID: <20240208084512.3803250-1-lee@kernel.org> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790319858257427597 X-GMAIL-MSGID: 1790319858257427597 Note: We're also taking the time to obay our new .editorconfig overlord! 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 (10): scsi: 3w-xxxx: Trivial: Remove trailing whitespace scsi: 53c700: Trivial: Remove trailing whitespace scsi: NCR5380: Replace snprintf() with the safer scnprintf() variant scsi: aacraid: linit: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() scsi: aacraid: linit: Replace snprintf() with the safer scnprintf() variant scsi: aha1542: Replace snprintf() with the safer scnprintf() variant scsi: aic7xxx: aicasm: Trivial: Remove trailing whitespace scsi: aic7xxx: aicasm: Replace snprintf() with the safer scnprintf() variant scsi: aic94xx: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() scsi: arcmsr: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() drivers/scsi/3w-xxxx.c | 2 +- drivers/scsi/53c700.c | 102 +++++++++++++-------------- drivers/scsi/NCR5380.c | 16 ++--- drivers/scsi/aacraid/linit.c | 40 +++++------ drivers/scsi/aha1542.c | 2 +- drivers/scsi/aic7xxx/aicasm/aicasm.c | 16 ++--- drivers/scsi/aic94xx/aic94xx_init.c | 11 ++- drivers/scsi/arcmsr/arcmsr_attr.c | 40 +++-------- 8 files changed, 101 insertions(+), 128 deletions(-) Cc: Adam Radford Cc: Adaptec OEM Raid Solutions Cc: Andre Hedrick Cc: de Melo Cc: drew@colorado.edu Cc: Finn Thain Cc: Hannes Reinecke Cc: "James E.J. Bottomley" Cc: Joel Jacobson Cc: John Garry Cc: Lee Jones Cc: linux-scsi@vger.kernel.org Cc: Luben Tuikov Cc: "Martin K. Petersen" Cc: Michael Schmitz Cc: "PMC-Sierra, Inc" Cc: Richard Hirst Cc: support@areca.com.tw Cc: Tnx to