Message ID | 20240208084512.3803250-1-lee@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-57646-ouuuleilei=gmail.com@vger.kernel.org> 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 <ouuuleilei@gmail.com> (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 <ouuuleilei@gmail.com>; 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 <lee@kernel.org> To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Adam Radford <aradford@gmail.com>, Adaptec OEM Raid Solutions <aacraid@microsemi.com>, Andre Hedrick <andre@suse.com>, de Melo <acme@conectiva.com.br>, drew@colorado.edu, Finn Thain <fthain@linux-m68k.org>, Hannes Reinecke <hare@suse.com>, "James E.J. Bottomley" <jejb@linux.ibm.com>, Joel Jacobson <linux@3ware.com>, John Garry <john.g.garry@oracle.com>, linux-scsi@vger.kernel.org, Luben Tuikov <luben_tuikov@adaptec.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Michael Schmitz <schmitzmic@gmail.com>, "PMC-Sierra, Inc" <aacraid@pmc-sierra.com>, Richard Hirst <rhirst@linuxcare.com>, support@areca.com.tw, Tnx to <Thomas_Roesch@m2.maus.de> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790319858257427597 X-GMAIL-MSGID: 1790319858257427597 |
Series |
scsi: Replace {v}snprintf() variants with safer alternatives
|
|
Message
Lee Jones
Feb. 8, 2024, 8:44 a.m. UTC
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 <aradford@gmail.com> Cc: Adaptec OEM Raid Solutions <aacraid@microsemi.com> Cc: Andre Hedrick <andre@suse.com> Cc: de Melo <acme@conectiva.com.br> Cc: drew@colorado.edu Cc: Finn Thain <fthain@linux-m68k.org> Cc: Hannes Reinecke <hare@suse.com> Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: Joel Jacobson <linux@3ware.com> Cc: John Garry <john.g.garry@oracle.com> Cc: Lee Jones <lee@kernel.org> Cc: linux-scsi@vger.kernel.org Cc: Luben Tuikov <luben_tuikov@adaptec.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: Michael Schmitz <schmitzmic@gmail.com> Cc: "PMC-Sierra, Inc" <aacraid@pmc-sierra.com> Cc: Richard Hirst <rhirst@linuxcare.com> Cc: support@areca.com.tw Cc: Tnx to <Thomas_Roesch@m2.maus.de>
Comments
On 2/8/24 00:44, Lee Jones wrote:
> Cc: Andre Hedrick <andre@suse.com>
Please take a look at https://lwn.net/Articles/508222/.
Thanks,
Bart.
On Thu, 08 Feb 2024, Bart Van Assche wrote: > On 2/8/24 00:44, Lee Jones wrote: > > Cc: Andre Hedrick <andre@suse.com> > > Please take a look at https://lwn.net/Articles/508222/. get_maintainer.pl pulled it from here: https://github.com/torvalds/linux/blob/master/drivers/scsi/3w-xxxx.c#L11 I like to involve the people who take the time to list themselves as authors. I guess these are likely to go out of date at one point or another, especially in such a long standing subsystem such as SCSI. Not as big of an issue in NFC!
On Thu, Feb 08, 2024 at 05:49:12PM +0000, Lee Jones wrote: > On Thu, 08 Feb 2024, Bart Van Assche wrote: > > > On 2/8/24 00:44, Lee Jones wrote: > > > Cc: Andre Hedrick <andre@suse.com> > > > > Please take a look at https://lwn.net/Articles/508222/. > > get_maintainer.pl pulled it from here: > > https://github.com/torvalds/linux/blob/master/drivers/scsi/3w-xxxx.c#L11 Oh. Hm. It seems "git check-mailmap" (and get_maintainers.pl) don't support a way to remove an email address -- only redirect it. It seems we may want to support "don't use this email address" for more than just the currently observed rationale. I don't have any good suggestions for what the format should look like? Perhaps: "" <address-to-remove@example.com> ?
On Fri, 2024-02-09 at 22:56 -0800, Kees Cook wrote: > On Thu, Feb 08, 2024 at 05:49:12PM +0000, Lee Jones wrote: > > On Thu, 08 Feb 2024, Bart Van Assche wrote: > > > > > On 2/8/24 00:44, Lee Jones wrote: > > > > Cc: Andre Hedrick <andre@suse.com> > > > > > > Please take a look at https://lwn.net/Articles/508222/. > > > > get_maintainer.pl pulled it from here: > > > > https://github.com/torvalds/linux/blob/master/drivers/scsi/3w-xxxx.c#L11 > > Oh. Hm. It seems "git check-mailmap" (and get_maintainers.pl) don't > support a way to remove an email address -- only redirect it. > > It seems we may want to support "don't use this email address" for more > than just the currently observed rationale. I don't have any good > suggestions for what the format should look like? Perhaps: > > "" <address-to-remove@example.com> /dev/null ?