Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp214129rdb; Thu, 30 Nov 2023 02:55:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IETta/TtKh6jmAnMQSAqCOIC8IDr1/0aXmvR3i0RSTZrezQMF0b95fPElZUDGjnZxiokQHi X-Received: by 2002:a05:6830:1251:b0:6d8:4bfb:eb4c with SMTP id s17-20020a056830125100b006d84bfbeb4cmr6169561otp.9.1701341731010; Thu, 30 Nov 2023 02:55:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701341730; cv=none; d=google.com; s=arc-20160816; b=aVH7pi/uzFlzKNGUcwCZzrHOT2D9MmAeVJ8K5Eg9cSNwJIf6+dx69ZmBFZEB78+BjS aVsPSaGEG/AJY8e+IrSm3QfISIS/9rPMX0b+9lzgIsF6MJ0Lk2gr4brx61Pot+A2f5HU RmCF0Li/S0EQQES5taVysO/gR/rRZ0+Vac6OePr2IYOYY4DCAfbYI+oKmkxU8xj2OWsM UsFSpucJUROtk8tV6cp6c/T863tWfRFENSWg5EDzgTwpZt6DNy8lMHvljgSy2BxF9IpQ 4Xrdkw/eidW20aUzS84/TSRIGQULZQYjBGtCsFUWLk+ax9Ocs8QBM8hshfYn9wKjmvM4 TuiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3ljABh1vE5K2rm2dz69PcS0dHicqpDrMwBvAw0REwEA=; fh=mG1c/vyiWXki09vFF07LrYTLy7RrJheNz5t/3+tLzmk=; b=0epY4Wzp0vldsBV7kDT7o4p4qMObaoabVP3RuZw3Va36do1Tl7GyTmTRTWvKJbbYbv Knkx6x7mVbNwr7NQVuLUFRQeuA18feG5zcaAT1nqm3cKUMsQaQPN5SyP9aeoqiEUsgZM Efo7n3VZfp9a+na2LIwlmuwbAqmLowltKdJRGFSzDfIbUA04b2W5EpdhSQBfCKcJn7K1 ZqKE1eSdOLz5xiWH45CZzmXHI6LxlbhOnhjL91pPOC+uQNM02SxWn6DFAjT1yXCjP6V/ nQTxVD3BgLvHaQNW6FgYjZNZTAX3Uet/oiU/XCaepuAeXBT72FZksVll7/fx0ndi2U+6 L5LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uIwEt2th; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bi10-20020a056a02024a00b00565db2812a0si1213226pgb.60.2023.11.30.02.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 02:55:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uIwEt2th; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 361EB802922D; Thu, 30 Nov 2023 02:55:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232034AbjK3KzH (ORCPT + 99 others); Thu, 30 Nov 2023 05:55:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235140AbjK3KzF (ORCPT ); Thu, 30 Nov 2023 05:55:05 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF14B10E3 for ; Thu, 30 Nov 2023 02:55:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8010C433C7; Thu, 30 Nov 2023 10:55:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701341711; bh=t6ZounqBO6HxEEGhrx3bS0Kz+fsk66UnnVgdvGFbMgU=; h=From:To:Cc:Subject:Date:From; b=uIwEt2thI+cpFCjgvxCmTh0I+RHe1DAlDyR7sQIyySRC3eQ7seybZ9FDEU/WyLKV4 RvvlsDbSGrStDvQrb9i10peqBWDwS/BR+Tup7t4nmlnN6kb8QLNzemtMlMXGQySyMC 1MxL2tiEio3exkEMbjFJ+AdBNhc9h6dZvhDyqyss1EEG1PomDPGoyn6XBjA7FMJUwt 6Ykoc7qr7dpEfTAs06/EaifOSK2bte/TkorWHD/Eiz1LzZkUstwBSHfItRXS92z4+T dm0uY7mGob973aulOk17zadWqJq3898Dq2J5i31TRZXu8eHfI+frDn9+YB3EydpHpU HuwawukDGhC9Q== From: Lee Jones To: lee@kernel.org Cc: linux-kernel@vger.kernel.org, Damien Bergamini , Dmitry Bogdanov , Feng-Hsin Chiang , Greg Kroah-Hartman , Linus Walleij , linux-usb@vger.kernel.org, "Martin K. Petersen" , Matthieu CASTET , Pawel Laszczak , Po-Yu Chuang , Stanislaw Gruszka , Yuan-Hsin Chen Subject: [PATCH 0/5] usb: Replace {v}snprintf() variants with safer alternatives Date: Thu, 30 Nov 2023 10:54:34 +0000 Message-ID: <20231130105459.3208986-1-lee@kernel.org> X-Mailer: git-send-email 2.43.0.rc1.413.gea7ed67945-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 02:55:26 -0800 (PST) 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 (5): usb: atm: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() usb: cdnsp: Replace snprintf() with the safer scnprintf() variant usb: fotg210-hcd: Replace snprintf() with the safer scnprintf() variant usb: gadget: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() usb: gadget: f_tcm: Remove snprintf() from sysfs call-backs and replace with sysfs_emit() drivers/usb/atm/ueagle-atm.c | 16 +- drivers/usb/cdns3/cdnsp-debug.h | 354 ++++++++++++++-------------- drivers/usb/fotg210/fotg210-hcd.c | 12 +- drivers/usb/gadget/configfs.c | 2 +- drivers/usb/gadget/function/f_tcm.c | 4 +- 5 files changed, 192 insertions(+), 196 deletions(-) Cc: Damien Bergamini Cc: Dmitry Bogdanov Cc: Feng-Hsin Chiang Cc: Greg Kroah-Hartman Cc: Linus Walleij Cc: linux-usb@vger.kernel.org Cc: "Martin K. Petersen" Cc: Matthieu CASTET Cc: Pawel Laszczak Cc: Po-Yu Chuang Cc: Stanislaw Gruszka Cc: Yuan-Hsin Chen -- 2.43.0.rc1.413.gea7ed67945-goog