Skip to content

Commit 700fb65

Browse files
committed
usb-fuzzer: main usb gadget fuzzer driver
1 parent 29dcea8 commit 700fb65

8 files changed

Lines changed: 1244 additions & 3 deletions

File tree

drivers/usb/gadget/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,4 +512,6 @@ source "drivers/usb/gadget/legacy/Kconfig"
512512

513513
endchoice
514514

515+
source "drivers/usb/gadget/fuzzer/Kconfig"
516+
515517
endif # USB_GADGET

drivers/usb/gadget/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ obj-$(CONFIG_USB_LIBCOMPOSITE) += libcomposite.o
1010
libcomposite-y := usbstring.o config.o epautoconf.o
1111
libcomposite-y += composite.o functions.o configfs.o u_f.o
1212

13-
obj-$(CONFIG_USB_GADGET) += udc/ function/ legacy/
13+
obj-$(CONFIG_USB_GADGET) += udc/ function/ legacy/ fuzzer/

drivers/usb/gadget/fuzzer/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
config USB_FUZZER
2+
tristate "USB Gadget Fuzzer"
3+
help
4+
USB Gadget Fuzzer

drivers/usb/gadget/fuzzer/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# USB gadget fuzzer
4+
#
5+
6+
ccflags-y := -I$(srctree)/drivers/usb/gadget/
7+
ccflags-y += -I$(srctree)/drivers/usb/gadget/udc/
8+
ccflags-y += -I$(srctree)/drivers/usb/gadget/function/
9+
10+
obj-$(CONFIG_USB_FUZZER) += fuzzer.o
11+
obj-$(CONFIG_USB_FUZZER) += gadget.o

0 commit comments

Comments
 (0)