Dmitry Vyukov
69f24bcad6
sys/linux: move prctl to a separate file
2018-11-17 15:46:36 -08:00
Dmitry Vyukov
34c048c0d8
sys/linux: add /dev/dlm* devices
2018-11-10 10:38:38 -08:00
Dmitry Vyukov
12b38f22c1
sys/linux: fix up descriptions
...
1. Extract consts on the latest linux tree.
2. Don't manually define O_TMPFILE/O_ACCMODE/_LINUX_CAPABILITY_VERSION_N,
they are defined in kernel headers.
3. Don't use CLOCK_SGI_CYCLE as clock id, it's not implemented.
2018-10-30 11:15:50 +01:00
shankarapailoor
362ef76397
sys/linux: add additional constants for trace2syz
2018-10-30 10:58:45 +01:00
Dmitry Vyukov
9ca2afa12c
sys/linux: open /dev/media* files
...
Also remove the second syscall for opening of /dev/fd*.
2018-10-28 20:35:35 +01:00
Dmitry Vyukov
6e045ca26d
sys/syz-extract: support missing arch headers
...
The latest Linux kernel misses some arch-specific headers on some archs:
asm/a.out.h
asm/prctl.h
asm/mce.h
Support that.
2018-10-28 19:10:11 +01:00
Dmitry Vyukov
6ce17935cb
sys/linux: prohibit FAN_OPEN_PERM and FAN_ACCESS_PERM
...
FAN_OPEN_PERM and FAN_ACCESS_PERM require the program to reply to open requests.
If that does not happen, the program will hang in an unkillable state forever.
See the following bug for details:
https://groups.google.com/d/msg/syzkaller-bugs/pD-vbqJu6U0/kGH30p3lBgAJ
2018-10-15 18:53:00 +02:00
Tobias Klauser
7f7e03fda2
sys/linux: add MFD_HUGETLB
2018-09-19 13:43:38 +02:00
Tobias Klauser
fe944bbcd7
sys/linux: add MCL_ONFAULT
2018-09-19 13:21:09 +02:00
Dmitry Vyukov
61ed43a86a
sys/linux: prohibit EXT4_IOC_SHUTDOWN
...
EXT4_IOC_SHUTDOWN EXT4_IOC_SHUTDOWN on root fs effectively brings the machine down in weird ways.
2018-09-13 12:02:45 +02:00
Dmitry Vyukov
a4718693a3
sys/linux: add syz_execute_func
...
The function executes random code.
Update #310
2018-08-30 21:45:04 -07:00
Dmitry Vyukov
edb2f5f1e1
sys/linux: add ext4 ioctls and overlayfs
...
Update #533
2018-08-29 15:59:16 -07:00
Dmitry Vyukov
0be67307ca
sys/linux: add few assorted new flags/ioctls
2018-08-26 05:51:30 +02:00
Dmitry Vyukov
98b0bddc4d
sys/linux: treat cuse as fuse
...
It's mostly fuse.
Also regenerate consts on latest kernel.
2018-08-26 05:17:40 +02:00
Dmitry Vyukov
77e79ca08e
sys/linux: add userio descriptions
...
Update #533
2018-08-26 04:54:54 +02:00
Dmitry Vyukov
9ccc1d4565
sys/linux: add uinput support
2018-08-15 01:50:08 +02:00
Dmitry Vyukov
59da9e4393
sys/linux: use negative consts where useful
2018-07-09 20:54:47 +02:00
Dmitry Vyukov
664ef9a3e1
pkg/compiler: check for unused declarations
...
Error on unused structs/unions/resources/flags.
Finds tons of bugs.
2018-06-30 19:34:41 +02:00
Dmitry Vyukov
2064fc5c91
sys/linux: add 2 custom uids
...
Give fuzzer 2 custom uids to mess with.
Ideally these should be proc, we can't do this for resources.
2018-06-23 11:36:55 +02:00
Dmitry Vyukov
f199f3a27d
sys/linux: fix /dev/urandom descriptions
...
Don't use pseudo syscall without a reason.
Remove duplicate syscall.
2018-06-23 11:25:20 +02:00
Dmitry Vyukov
920b18be87
sys: mark output resources as opt
...
Mark output resources as opt in preparation for more
precise constructor calculation.
2018-06-18 19:45:47 +02:00
Dmitry Vyukov
b431b2cc4c
sys/linux: add rseq syscall
2018-06-12 18:06:44 +02:00
Dmitry Vyukov
145029013c
sys/linux: add more fs ioctls
2018-06-08 20:21:23 +02:00
Dmitry Vyukov
c5ca9ff98c
sys/linux: move aio descriptions into separate file
2018-06-08 18:55:53 +02:00
Dmitry Vyukov
667b9a6950
sys/linux: fix up midi descriptions
2018-06-07 11:10:49 +02:00
Dmitry Vyukov
d302e81641
sys/linux: add MAP_FIXED_NOREPLACE const
2018-05-18 11:14:56 +02:00
Dmitry Vyukov
9dfb5efa91
prog: simplify code
...
Now that we don't have ReturnArg and only ResultArg's refer
to other ResultArg's we can remove ArgUser/ArgUsed and
devirtualize lots of code.
2018-05-05 10:13:04 +02:00
Dmitry Vyukov
67bec9bb44
sys/linux: describe block device ioctls
...
Describe block device ioctls.
Describe sg device ioctls.
Add few more devices.
2018-04-29 18:44:32 +02:00
Dmitry Vyukov
d5a5d04517
sys/linux: a bunch of assorted improvements
2018-04-27 19:52:20 +02:00
Dmitry Vyukov
190d92e056
sys/linux: extend namespace desciptions
...
Slightly extend namespace descriptions and move
them to a separate file.
2018-04-27 18:47:58 +02:00
Dmitry Vyukov
6bd8902381
syz-fuzzer: clean up after probing coverage
...
We left mmap memory and comparison tracing enabled.
2018-04-27 14:33:01 +02:00
Dmitry Vyukov
676bd07e7e
sys/linux: test various binfmt's in execve
2018-04-02 20:10:48 +02:00
Dmitry Vyukov
7c923cf8d4
sys/linux: add support for mounting filesystem images
2018-03-30 19:51:27 +02:00
Dmitry Vyukov
0ca7878bc3
sys/linux: add IPVS descriptions
...
Update #533
2018-03-26 18:27:11 +02:00
Dmitry Vyukov
f027f1a3f7
sys/linux: use size attributes on structs
...
1. Add size attribte on sockaddr.
2. Remove sockaddr's that are larger than 16 bytes from sockaddr.
3. Add size attribute on sockaddr_storage which wasn't actually 128 bytes.
4. Add size attribute to ifreq.
5. Fix ifmap field types as uncovered by the size attributes.
6. Fix sockaddr_storage_tcp from struct to union which is should be.
7. Make sockaddr_un_file fixed size as it should be.
8. Fix some explicit paddings that were only correct for 64 bits.
2018-03-05 12:10:27 +01:00
Dmitry Vyukov
db01d57e91
sys/linux: a bunch of assorted improvements and fixes
2018-03-05 12:10:27 +01:00
Dmitry Vyukov
b370d4a70c
sys/linux: few assorted additions
2018-02-26 20:37:42 +01:00
Dmitry Vyukov
e229ac7779
sys: fix descriptions for strickter return type checks
...
Mostly remove vma as return from some mm syscalls.
This is unnecessary and we never used these.
2018-02-23 13:42:41 +01:00
Dmitry Vyukov
826b35d667
sys/linux: describe some new 4.16 features
2018-02-01 21:27:02 +01:00
Dmitry Vyukov
161c1d640a
sys/linux: resolve TODO re KCOV consts
2018-01-18 20:11:20 +01:00
Dmitry Vyukov
125dadd3c9
sys/linux: use type templates for netlink
...
-350 lines of descriptions
2018-01-13 12:52:09 +01:00
Dmitry Vyukov
93bff6656f
sys/linux: duplicate open/accept specializations with openat/accept4
...
open is not present on arm64, only openat.
accept is not present on 386, only accept4.
Duplicate all open/accept specializations with
corresponding openat/accept4 specializations
to enable testing on 386/arm64.
2018-01-09 21:24:29 +01:00
Dmitry Vyukov
f01cb93788
pkg/compiler: make signalno a type alias
...
We don't need compiler support for such things anymore,
now we simply can do:
type signalno int32[0:65]
2018-01-08 12:52:31 +01:00
Dmitry Vyukov
0cbc76dfea
sys/linux: assorted improvements
...
Mostly extensions of API in 4.15.
2017-12-29 10:09:24 +01:00
Dmitry Vyukov
6deb615310
sys/linux: fix some copy-paste errors
2017-12-28 19:16:42 +01:00
Dmitry Vyukov
7d240098d8
sys/linux: fix splice signature
...
...was wrong all that time
2017-12-27 20:26:51 +01:00
Dmitry Vyukov
afba0b55e6
sys/linux: add binder descriptions
2017-11-27 15:09:30 +01:00
Dmitry Vyukov
deb5f6aea2
sys/linux: assorted improvements to descriptions
2017-11-27 09:09:06 +01:00
Dmitry Vyukov
103a5b3fa4
sys/linux: add files from net dir to list of /proc files
2017-11-27 09:09:05 +01:00
Dmitry Vyukov
8257de047b
sys/linux: open files from /proc
2017-11-27 09:08:59 +01:00