Anton Lindqvist
912c93d745
executor: fix typo in comment
2018-07-23 11:11:32 +02:00
Anton Lindqvist
54bb6b9222
prog: add missing Default() implementation for ConstType
2018-07-23 11:11:32 +02:00
Anton Lindqvist
e3c4ac00ee
executor: ensure RLIMIT_NOFILE is greater than kInPipeFd
2018-07-23 11:11:32 +02:00
Anton Lindqvist
3f17ab418a
executor: add missing cover_size_ptr field
2018-07-23 11:11:32 +02:00
Jiangen Jiao
f69c5fcd76
syz-manager: Support kernelSrc and vmlinux from different tree
...
If vmlinux built from different tree from kernelSrc, cover page will failed to
show. So match only the path without prefix.
2018-07-23 09:52:04 +02:00
Dmitry Vyukov
8cc079c3f6
syz-ci: fix poll of fixing commits
2018-07-20 20:48:34 +02:00
Dmitry Vyukov
af255b09a7
pkg/vcs: poll fixing commits on akaros and fuchsia
2018-07-20 20:26:59 +02:00
Dmitry Vyukov
49f3583951
pkg/report: add another akaros backtrace message
2018-07-18 17:34:19 +02:00
Dmitry Vyukov
809256c36c
dashboard/config: add fs.mount-max = 100 sysctl
...
See "mnt: Add a per mount namespace limit on the number of mounts"
commit for details.
2018-07-18 11:14:00 +02:00
Dmitry Vyukov
6d5bd5b5eb
syz-ci: fix arch passed to build.Clean
2018-07-17 17:55:52 +02:00
Hangbin Liu
570df9b277
sys/linux/socket_netlink_route: add specific policies for IFLA_LINKINFO
...
Add interface specified policies for IFLA_LINKINFO. I only added the
interfaces we create in initial setup. Remain other types of interfaces
in the TODO list.
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
2018-07-17 10:08:31 +02:00
Dmitry Vyukov
1376136672
sys/akaros: add a bunch of global files for akaros
2018-07-16 20:30:09 +02:00
Dmitry Vyukov
40cb0c9aa6
sys/akaros: fix signatures of file syscalls
...
Most of them differ and accept path length and/or pid.
2018-07-16 17:39:58 +02:00
Dmitry Vyukov
bad4246bf2
pkg/report: improve akaros reporter and implement symbolization
2018-07-16 17:03:14 +02:00
Dmitry Vyukov
df5ae5f537
sys/akaros: don't call provision(-1)
...
It causes kernel debug splat,
which has high chances of corrupting kernel crashes.
2018-07-16 17:02:02 +02:00
Dmitry Vyukov
474681b37b
executor: add timeout for akaros
2018-07-16 17:01:07 +02:00
Dmitry Vyukov
7cfcfa6a73
sys/akaros: disable init_arsc syscall
...
It unconditionally crashes kernel now.
2018-07-16 16:57:35 +02:00
Dmitry Vyukov
58293c9eb3
pkg/report: fix kmalloc bug in krealloc
2018-07-16 10:16:21 +02:00
Dmitry Vyukov
92a4950507
pkg/host: add "network devices" feature
...
Linux executor sets up some network devices for testing,
detect when that's supported on the machine and don't
do it if it's not supported.
2018-07-13 12:46:32 +02:00
Dmitry Vyukov
fcdb43e97d
sys/linux: regenerate files
2018-07-13 12:44:14 +02:00
Dmitry Vyukov
d1dc5f516d
pkg/compiler: fix error format string
2018-07-13 12:35:16 +02:00
Dmitry Vyukov
3d741171f2
pkg/report: add "lock held when returning to user space" format for older kernels
2018-07-13 10:31:26 +02:00
Dmitry Vyukov
06c33b3af0
prog: sanitize calls after hints mutation
...
Hints mutation could produce unsanitized calls.
Sanitize calls after hints mutation.
Also sanitize on load (in validate), because bad programs
can already be in corpuses. And it's just the right thing
to do because sanitization rules can change over time.
2018-07-12 12:40:30 +02:00
Dmitry Vyukov
3986ce95fd
pkg/report: add report format for "lock held when returning to user space"
...
This report does not have stack trace, so we always detected it as corrupted.
2018-07-12 12:38:52 +02:00
Dmitry Vyukov
3855819991
dashboard/config: enable CONFIG_DEBUG_AID_FOR_SYZBOT
2018-07-12 12:38:36 +02:00
Dmitry Vyukov
f642b4185a
sys/linux: improve fuse descriptions
2018-07-12 12:36:38 +02:00
Dmitry Vyukov
95e7a88b97
sys/linux: implement fuse as normal syscalls
...
Remove syz_fuse* and implement them as normal syscalls.
We not have enough expressive power to form mount options.
2018-07-10 16:18:45 +02:00
Dmitry Vyukov
01e3571841
pkg/host: check that we can open files rather than that they exist
...
See issue #640 where /dev/net/tun is present, but open fails with ENODEV.
Check that we can actually open all these files.
Fixes #640
2018-07-10 13:44:59 +02:00
Dmitry Vyukov
2e0e3130f9
pkg/build: update initrd name
...
Seems to have been renamed.
2018-07-10 11:14:36 +02:00
Dmitry Vyukov
7c31f7a78d
pkg/build: always do clean build for fuchsia
...
We frequently see boot errors like:
[00010.201] 02991.03067> pkgsvr: 2018/06/30 23:39:41 system: failed to set system root from blob "ccbadb3901372b1e0fc5275f627f708bf3e5f3acfb0d4268638db0ff75fc7fd4": file does not exist
or:
[00003.691] 01126.01153> devmgr: launchpad /fs/blob/e66739acdd3d8efa3b7c9021e2107cf8431765c0b8eb0a1ec7f7dc7fd305f2f7 (pkgfs) failed: launchpad_vmo_from_file failure: -40
Presumably clean build may help.
2018-07-10 11:05:04 +02:00
Dmitry Vyukov
9fa03fa5c9
syz-ci: don't put dynamic data into boot/test errors
...
We append underlying error to the title of boot/test errors.
The error can come from anywhere and can contain dynamic data,
which can cause duplication of bugs.
Put the underlying error into report body instead.
2018-07-10 10:19:48 +02:00
Dmitry Vyukov
40ed7e838a
sys/linux: use fmt in filesystem options
...
We currently generate poor formatted intergers,
generate proper integers using the new fmt type.
2018-07-09 21:42:43 +02:00
Dmitry Vyukov
59da9e4393
sys/linux: use negative consts where useful
2018-07-09 20:54:47 +02:00
Dmitry Vyukov
710eefe85a
pkg/compiler: support negative integers
...
Currently we have to use 0xffffffffffffffff to represent -1,
and we can't express e.g. -20:20 int range.
Support negative consts to fix both problems.
2018-07-09 20:47:07 +02:00
Dmitry Vyukov
f25e577041
sys/linux: refine 9p descriptions
...
RVERSION needs to use 0xffff tag, otherwise parsing fails.
Use only tags 1 and 2. They are densely allocated,
so most of the time it's 1. And it needs to be correct in
multiple replies for mount to succeed. So limit tag space.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
7004c9c8a8
executor: tweaks for better 9p testing
...
See the added comments.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
fb2fc0f4dc
prog: fix pointer validation
...
Query size after validating the object itself,
otherwise size can panic on corrupted object.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
4bf3b336eb
sys/linux: modernize cgroup descriptions
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
e63a51b4b3
sys/linux: modernize selinux descriptions
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
eb5690a56d
sys/linux: extend 9p descriptions
...
Add actual protocol messages.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
1c667063a8
prog: don't generate filenames that escape sandbox
...
All files that fuzzer works with must be in the working dir.
Using "/" is known to cause problems when fuzzer
removes files there or mounts something.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
306ca0571c
prog, pkg/compiler: support fmt type
...
fmt type allows to convert intergers and resources
to string representation.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
93213ec0d3
syz-manager/mgrconfig: default kernel_src to kernel_obj
...
... which in turn defaults to vmlinux.
This makes it possible to only specify vmlinux or only kernel_obj.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
e9da9436ad
vm: fix "no output" detection
...
We obviously need ticker instead of timer in MonitorExecution.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
ef387e080a
syz-manager: don't print loop state on info requests
...
Printing loop state on info requests (e.g. due to http requests)
is somewhat confusing as no state change actually happens.
2018-07-08 22:52:24 +02:00
Dmitry Vyukov
c9a7a4dccd
executor: executor fix fuchsia build
2018-07-07 19:08:38 +02:00
Dmitry Vyukov
4b2ad42d41
sys/linux: refine vfat/msdos options
2018-07-07 16:25:40 +02:00
Julia Hansbrough
ab89aea98e
sys/fuchsia: Update Fuchsia syscalls.
...
Updates cover
* zx_vmo_create
* zx_clock_get_monotonic
* hypervisor- and vCPU-related syscalls
* system_get_features
* some DDK syscalls
2018-07-07 13:56:36 +02:00
Dmitry Vyukov
6c0c0099a0
sys/linux: add 9p descriptions
...
Only mount for now.
2018-07-06 21:31:31 +02:00
Dmitry Vyukov
3abb98207d
pkg/report: detect partial result errors
2018-07-06 20:25:02 +02:00