aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_usb_linux.h
Commit message (Collapse)AuthorAgeFilesLines
* executor: warn about C89-style var declarationsDmitry Vyukov2020-08-141-10/+4
| | | | | | | | | | | | | | | | | We generally use the newer C99 var declarations combined with initialization because: - declarations are more local, reduced scope - fewer lines of code - less potential for using uninit vars and other bugs However, we have some relic code from times when we did not understand if we need to stick with C89 or not. Also some external contributions that don't follow style around. Add a static check for C89-style declarations and fix existing precedents. Akaros toolchain uses -std=gnu89 (or something) and does not allow variable declarations inside of for init statement. And we can't switch it to -std=c99 because Akaros headers are C89 themselves. So in common.h we need to declare loop counters outside of for.
* executor: remove NONFAILING from pseudo-syscallsDmitry Vyukov2020-07-151-9/+5
| | | | | | This is not needed anymore afer the previous commit. Fixes #1918
* executor: add support for USB fuzzing on NetBSDm00nbsd2020-05-191-0/+2
|
* executor, sys/linux: syz_usb_ep_read/write accept endpoint addressAndrey Konovalov2020-05-151-10/+47
| | | | | This patch changes syz_usb_ep_read/write pseudo-syscalls to accept endpoint address as specified in its endpoint descriptor, instead of endpoint index.
* executor: stall unknown usb requestsAndrey Konovalov2020-05-151-5/+48
| | | | Also don't fail(), leave that to USB_DEBUG and analyze_control_request().
* executor: split out Linux specific USB codeAndrey Konovalov2020-03-281-0/+523