diff options
| author | m00nbsd <john.big.sandwich@gmail.com> | 2020-05-19 21:13:37 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@gmail.com> | 2020-05-19 23:07:55 +0200 |
| commit | 67fa1f59b87fed7268b465f7e9540a590a250c65 (patch) | |
| tree | d6d7f3c7975308cdef5aaf8cf4a51f7b9ae6de0c /sys | |
| parent | 8f2ad84be93443ce86dcaa7724cd6d3846b798ad (diff) | |
executor: add support for USB fuzzing on NetBSD
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netbsd/vusb.txt | 11 |
1 files changed, 11 insertions, 0 deletions
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]) |
