From 67fa1f59b87fed7268b465f7e9540a590a250c65 Mon Sep 17 00:00:00 2001 From: m00nbsd Date: Tue, 19 May 2020 21:13:37 +0200 Subject: executor: add support for USB fuzzing on NetBSD --- sys/netbsd/vusb.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sys/netbsd/vusb.txt (limited to 'sys/netbsd') diff --git a/sys/netbsd/vusb.txt b/sys/netbsd/vusb.txt new file mode 100644 index 000000000..866b8ceeb --- /dev/null +++ b/sys/netbsd/vusb.txt @@ -0,0 +1,11 @@ +# Copyright 2020 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +# This is a special fd for USB fuzzing and should only be used with syz_usb_* pseudo-syscalls. +# We don't inherit it from the fd resource, to discourage syzkaller calling raw ioctls on it. +resource fd_usb[int32]: -1 + +# These are generic pseudo-syscalls for emulating arbitrary USB devices. +# They are mostly targeted to cover the enumeration process. +syz_usb_connect(speed intptr, dev_len len[dev], dev buffer[in], conn_descs buffer[in]) fd_usb (timeout[3000], prog_timeout[3000]) +syz_usb_disconnect(fd fd_usb) (timeout[300]) -- cgit mrf-deployment