Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp128995rdb; Thu, 8 Feb 2024 00:47:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVqneCifTdUcs4TgQpHIJjpAcVMmnBmJ4nYTGyhgfzFpLGoCa8ZF9hrW2FIIQYGPsonw2M64BijeIpr7V9FUqVFhpGjJPPZz61G5aKpCw== X-Google-Smtp-Source: AGHT+IGxgROMF3fpTuSZdYF0ubTSfOniFQhSQOXur/F7cCAexLQviJSZu2UrNO2OVGA//w1AJf+7 X-Received: by 2002:a05:620a:244b:b0:783:ca94:59d7 with SMTP id h11-20020a05620a244b00b00783ca9459d7mr3380471qkn.30.1707382048123; Thu, 08 Feb 2024 00:47:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707382048; cv=pass; d=google.com; s=arc-20160816; b=r32uPoHZkUOwqCeQQPf3zXzqNklXgmbNvmeRY2w5b44xTCV19kSzdjnGr719sq3jkW JcnRMM6Um9VNxLs1+r7mDXPflXLLafoAYpeXWK12Twqc5gIN8xewfZB1IlNRDsOsTEgi d0D/mcchluEib/Cx3KF3aDFDJScWiJcG2F9uJdfc5vU+svrbiGZrAUMyTL5X9O4YgA5s voBNP0Pc5xGSp3c/KG7chvS9+l+vmQ+XY97d/YB7J71g5dDRbkZlA0KtftswOnDrSWKV 9dzUwHbZU97tIHEzKJEx8MyNjFqY0hZ9ixUR2E/AXCSRUjc3EkjTxmRmX6V+DaFmYj7l G9tQ== 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=Tn3VC8uQoa0UXRkgk10SBzBRvefKQ8ppjFGQH+cGb2I=; b=uDq0dCalcGHp/esxQK5nabo5+Y5kADFDAT3YRMpTd7qz3JjZHjCVzNDYFZEjB7naFS AKZ/ZXtAl0OxRyJdCgLFXbi3hcCqYSSfeuXLzCR74XZUA6TxHpcVWS4jFX6i7X2UQLHV oZS/nHX98y34NBOeOueUxIBjvzXCjwznfl9Xr5QkBquYLWT3LvkQeesnS6jzjwfU5T9U oOfwvomRw1jvdSHcmdfWGCzLAzBhOxqJPu2I0WkklsZagqAspB3ggEJuRCKm4YQkVYIK WhlKd+BRS8evfAcKWAuxypNd4xM3lNJlx3J0NXec5j4Rqs7HZ95G/ZPu1iqqQtzPuTuD 2ktw==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57646-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVm5g45nMZRKbSRHTmn2tkEAygtEP2xsRRKy3cJBxPlS7gmGt2GXJ1zK5CXt/L5qeYKuPdFr+W5w5p/5rkJ/PE17tHlGTrdQ/OaxXkUqQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n17-20020ac85a11000000b0042c3a23144esi2897030qta.626.2024.02.08.00.47.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 00:47:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57646-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57646-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BA0CD1C24CB5 for ; Thu, 8 Feb 2024 08:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC7026BB53; Thu, 8 Feb 2024 08:45:23 +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 Content-Transfer-Encoding: 8bit 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 -- 2.43.0.594.gd9cf4e227d-goog