From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08205C4332F for ; Wed, 13 Dec 2023 16:43:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XyrJ7/u6DKtgbUMCoGe1O1v9RY9SE5CBr9RrrQIa2OI=; b=tYIKN3/1APpffS UP9sUG1dVi1saGjmXAdGatl3AqvyaB2H1p2Z0VyBnhIwUAGGQ89TABf0NHnKmiXLgtt7A80B/vLLj WSE6yJlaCaD42dysEZ73CGwajz1/LxQ4WRIEEF5Z0ypb8lSheRUFGfZybO7OVolwrhERKJmbWwz9j mTLxLhpseCVua8LBAWIhLiTn0RR2ItVCoaWWl36YM7RnOJVFJZsv42UX2QtyFO8sxs8W+Rv7zsHS0 nrscCRbtyZIKM/d/YGzztXVBlUdLQafgt4RGWb8pEtJwNE96fNz++xq1DZYtAA/4vAjmGHNLBNJo8 9CoFkqJi9wNIX1S0QJRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDSK7-00FUSV-1B; Wed, 13 Dec 2023 16:43:03 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDSK3-00FURG-39 for linux-arm-kernel@lists.infradead.org; Wed, 13 Dec 2023 16:43:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 2C905CE1F06; Wed, 13 Dec 2023 16:42:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C55BC433C8; Wed, 13 Dec 2023 16:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702485777; bh=i70rLgrJWZQl/7kOucCjrKxAdNgKJPgfg9aAZjgbDEY=; h=From:To:Cc:Subject:Date:From; b=VZjzpZkN9AHtW5Qg9tPr0eCc9IaNCr+lxmqqyVO0HpiEQoRlxov9ubT8hR72EPvmL IZc3GLOR2oAhwjw+PkbJcbi2nIaZLk3p/egeRcv1FxFIrahsh4zVHBuiqNV0np7/D7 ab2SWhfCglAWrTD3joFq/sjVNmrEUKeNcnMB2QshtD4csK1mZI1StvxBXSsJlWqyTS ky4jt3rPORytlBDD2T+c+FqCznvh4W2D4TNOPUaZeSYnLpDflsh8Pxsq3GCSKKW2AG bpSNJ3Jhq63QMeNoDSyMu+riQr8CHPCGf+O7rS1QlLpLQZOQxOBCxcS5+1EPIoqsU3 HPh+qJ9DbDMgA== From: Lee Jones To: lee@kernel.org, gregkh@linuxfoundation.org Subject: [PATCH 00/12] usb: Replace {v}snprintf() variants with safer alternatives Date: Wed, 13 Dec 2023 16:42:29 +0000 Message-ID: <20231213164246.1021885-1-lee@kernel.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231213_084300_354356_DBEB1FC6 X-CRM114-Status: UNSURE ( 8.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julian Scheel , Hema HK , Bryan Wu , Pawel Laszczak , linux-arm-kernel@lists.infradead.org, usb-storage@lists.one-eyed-alien.net, Yadwinder Singh , linux-usb@vger.kernel.org, Alexandre Belloni , linux-kernel@vger.kernel.org, Jaswinder Singh , Ruslan Bilovol , Alan Stern , Laurent Pinchart , Claudiu Beznea , Daniel Scally , James Gruber , Tomoki Sekiyama , Cristian Birsan , Andrzej Pietrasiewicz Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series is part of an effort to rid {v}snprintf() where possible. 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 (12): usb: gadget: configfs: Replace snprintf() with the safer scnprintf() variant usb: gadget: f_uac1: Replace snprintf() with the safer scnprintf() variant usb: gadget: f_uac2: Replace snprintf() with the safer scnprintf() variant usb: gadget: uvc: Replace snprintf() with the safer scnprintf() variant usb: gadget: udc: atmel: Replace snprintf() with the safer scnprintf() variant usb: cdns2: Replace snprintf() with the safer scnprintf() variant usb: host: max3421-hcd: Replace snprintf() with the safer scnprintf() variant usb: yurex: Replace snprintf() with the safer scnprintf() variant usb: mon_stat: Replace snprintf() with the safer scnprintf() variant usb: mon_text: Replace snprintf() with the safer scnprintf() variant usb: phy: twl6030: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() usb: storage: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() drivers/usb/gadget/configfs.c | 11 +- drivers/usb/gadget/function/f_uac1.c | 6 +- drivers/usb/gadget/function/f_uac2.c | 6 +- drivers/usb/gadget/function/uvc_configfs.c | 2 +- drivers/usb/gadget/udc/atmel_usba_udc.c | 3 +- drivers/usb/gadget/udc/cdns2/cdns2-debug.h | 138 ++++++++++----------- drivers/usb/host/max3421-hcd.c | 18 +-- drivers/usb/misc/yurex.c | 12 +- drivers/usb/mon/mon_stat.c | 6 +- drivers/usb/mon/mon_text.c | 28 +---- drivers/usb/phy/phy-twl6030-usb.c | 8 +- drivers/usb/storage/sierra_ms.c | 16 +-- 12 files changed, 120 insertions(+), 134 deletions(-) Cc: Alan Stern Cc: Alexandre Belloni Cc: Andrzej Pietrasiewicz Cc: Bryan Wu Cc: Claudiu Beznea Cc: Cristian Birsan Cc: Daniel Scally Cc: Hema HK Cc: James Gruber Cc: Jaswinder Singh Cc: Julian Scheel Cc: Laurent Pinchart Cc: linux-arm-kernel@lists.infradead.org Cc: Nicolas Ferre Cc: Pawel Laszczak Cc: Ruslan Bilovol Cc: Tomoki Sekiyama Cc: usb-storage@lists.one-eyed-alien.net Cc: Yadwinder Singh -- 2.43.0.472.g3155946c3a-goog _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel