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: 13549436 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lLAK48lT" 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-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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