syzkaller/sys
Anton Lindqvist 85c573157d pkg/csource: add ability to annotate syscalls using comments in C reproducers
Providing additional info, especially regarding syscall arguments, in reproducers
can be helpful. An example is device numbers passed to mknod(2).

This commit introduces an optional annotate function on a per target basis.

Example for the OpenBSD target:

  $ cat prog.in
  mknod(0x0, 0x0, 0x4503)
  getpid()
  $ syz-prog2c -prog prog.in
  int main(void)
  {
    syscall(SYS_mmap, 0x20000000, 0x1000000, 3, 0x1012, -1, 0, 0);
    syscall(SYS_mknod, 0, 0, 0x4503); /* major = 69, minor = 3 */
    syscall(SYS_getpid);
    return 0;
  }
2019-05-24 22:33:56 +02:00
..
akaros .golangci.yml: add codeanalysis build tag 2019-05-15 11:39:31 +02:00
android sys/linux: add ion and ashmem devices support 2018-01-09 21:24:28 +01:00
freebsd .golangci.yml: add codeanalysis build tag 2019-05-15 11:39:31 +02:00
fuchsia sys/fuchsia: Updating Fuchsia definitions 2019-05-21 14:55:36 -07:00
linux sys/linux: improve binder descriptions 2019-05-17 11:56:54 +02:00
netbsd .golangci.yml: add codeanalysis build tag 2019-05-15 11:39:31 +02:00
openbsd pkg/csource: add ability to annotate syscalls using comments in C reproducers 2019-05-24 22:33:56 +02:00
syz-extract sys: Updating Fuchsia extraction scripts 2019-05-21 14:55:36 -07:00
syz-sysgen .golangci.yml: add codeanalysis build tag 2019-05-15 11:39:31 +02:00
targets sys/linux: switch ppc64le to little-endian 2019-05-13 10:26:57 +02:00
test pkg/compiler: add offsetof type 2019-05-16 18:05:05 +02:00
trusty .golangci.yml: add codeanalysis build tag 2019-05-15 11:39:31 +02:00
windows .golangci.yml: add codeanalysis build tag 2019-05-15 11:39:31 +02:00
sys.go dashboard/app: properly handle build failures 2019-03-25 17:00:25 +01:00