Commit Graph

2246 Commits

Author SHA1 Message Date
Dmitry Vyukov
33424b08c3 pkg/report: more corrupted report detection 2018-04-24 13:23:01 +02:00
Dmitry Vyukov
02bbd80e7c prog: fix gometalinter warnings 2018-04-24 13:23:01 +02:00
Dmitry Vyukov
e7e85d3609 pkg/kernel: fix gometalinter warning 2018-04-23 16:50:25 +02:00
Dmitry Vyukov
0d8e591c31 syz-ci: reduce git poll period 2018-04-23 16:28:24 +02:00
Dmitry Vyukov
8b5dcf17b0 syz-ci: clean kernel dir before patch test build
This leads to false errors when we are switching between gcc and clang:

kernel build failed: failed to run /usr/bin/make [make bzImage -j 32 CC=/syzkaller/clang-kmsan/bin/clang]: exit status 2
arch/x86/Makefile:184: *** Compiler lacks asm-goto support..  Stop.

Fixes #568
2018-04-23 16:26:26 +02:00
Dmitry Vyukov
ff12bea91c pkg/ipc: fix data race on config.Timeout 2018-04-23 16:26:26 +02:00
Dmitry Vyukov
c7b0bb14c0
Update found_bugs.md 2018-04-23 15:38:28 +02:00
Dmitry Vyukov
5be8929822
Update README.md 2018-04-23 15:36:58 +02:00
Dmitry Vyukov
20941ab3cb
Update found_bugs.md 2018-04-23 11:19:36 +02:00
Hyeongchan Kim
d23fcf6cfb syz-upgrade: fix typo in usage message 2018-04-21 10:41:19 +02:00
Dmitry Vyukov
ca03d6881a vm/qemu: don't be too clever with cpu configuration
Some machine configurations have strict limits on number of CPUs
and don't support NUMA (e.g. arm vexpress-a15).
maxcpu and numa options make qemu fail.
Don't be too clever. If necessary maxcpu and numa options
can be added in qemu_args.
2018-04-20 20:14:10 +02:00
Dmitry Vyukov
8b9a3f2c76 pkg/report: add some example arm crashes 2018-04-20 20:14:10 +02:00
Dmitry Vyukov
9b895661a9 syz-manager: fix coverage report for archs other than amd64 2018-04-20 20:14:10 +02:00
Dmitry Vyukov
bf2018dd07 executor: don't fail when ipv6 is not enabled
Check in checkpoint_iptables is not enough as
reset_iptables will fail even if no tables enabled.
Add similar check to reset_iptables.
2018-04-20 20:14:10 +02:00
Dmitry Vyukov
cc402841ba
Update kernel_configs.md 2018-04-20 09:28:52 +02:00
Dmitry Vyukov
eae05cb05e syz-manager: make misconfig errors more comprehensible 2018-04-19 20:16:21 +02:00
Dmitry Vyukov
074c0dd9b9 syz-manager: make error about "no syscalls enabled" more useful
Exit only after we print why syscalls were disabled.
2018-04-19 20:13:50 +02:00
Dmitry Vyukov
bcc3786b30 syz-manager: make error messages about inconsistent binaries more comprehensible 2018-04-19 20:12:03 +02:00
Dmitry Vyukov
a6714e43a9 syz-manager: make error about changed files more comprehensible 2018-04-19 20:01:42 +02:00
Dmitry Vyukov
500489e312 sys/syz-extract: provide readable error on missing input file
Currently syz-extract crashes with nil deref panic if
it is executed manually and is gives an absent file name.
Output a readable error.
2018-04-19 19:43:27 +02:00
Dmitry Vyukov
e5453dd396 executor: increase max image size to 128MB
Images of some filesystems need to be that large (xfs, btrfs, f2fs).
2018-04-19 16:59:49 +02:00
Dmitry Vyukov
81daaca980 pkg/host: fix kallsyms names again
Some x86 syscalls now seem to be __x64_ and __ia32_ instead of sys_ or ksys_.
2018-04-19 16:58:24 +02:00
Dmitry Vyukov
3642839c10 sys/linux: add f2fs support 2018-04-19 14:15:31 +02:00
Dmitry Vyukov
19af2a1b35 pkg/report: coarsen "unregister_netdevice" title
This leads to unbounded number of bug reports as syzkaller
can generate new device names dynamically.
Exclude actual device name from title.
2018-04-19 13:58:34 +02:00
Dmitry Vyukov
0a81695ed1
Update kernel_configs.md 2018-04-19 11:58:25 +02:00
Denis Efremov
4f18337d89 sys/linux: add i2c generic description
Basic description of i2c from SIL2LinuxMP workshop.
2018-04-19 11:34:29 +02:00
Hangbin Liu
d1b2ef6921 sys/linux/socket_netlink_route: update RTM_GETSTATS PAYLOAD format
Update RTM_GETSTATS PAYLOAD format.

Also fix ipv4_getroute and ipmr_getroute PAYLOAD format.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
2018-04-19 09:21:00 +02:00
Dmitry Vyukov
829f023456 pkg/host: fix kallsyms check
Recent kernel changes to not call syscalls directly from kernel code
renamed syscall symbols from sys_foo to ksys_foo.
Support both formats.
2018-04-18 16:30:13 +02:00
Jean-Baptiste Théou
52643b4414 adb: add debug level to ALERT for UART detector
The UART output may filter lower level messages.
This ensure proper detection of the unique ID

Signed-off-by: Jean-Baptiste Théou <jb@essential.com>
2018-04-18 09:26:01 +02:00
Dmitry Vyukov
2199644490 pkg/report: reformat code 2018-04-18 09:23:00 +02:00
Dmitry Vyukov
b80fd3b5d4 executor: support 32-bit kernels
There is no autodetection yet, but at least bitness
is encapsulated in cover_t type.
2018-04-16 21:52:40 +02:00
Dmitry Vyukov
5e6a2eea61 vm/qemu: add image_device config parameter
For some configurations device is "sd" instead of "hda".
2018-04-16 21:44:30 +02:00
Dmitry Vyukov
1bf59f0525 vm: make sshkey argument optional
An image can well be setup without a key.
Just password-less root login.
2018-04-16 21:33:13 +02:00
Dmitry Vyukov
f032e929b9 vm/qemu: don't enable usb/sound by default
Such options can be enabled in qemu_args if necessary.
2018-04-16 21:25:38 +02:00
Dmitry Vyukov
85d38101ef pkg/report: ignore pkg/host debug output 2018-04-16 21:23:32 +02:00
Dmitry Vyukov
f24e540fe5 executor: don't fail if IPv6 is not enabled 2018-04-16 21:11:10 +02:00
Dmitry Vyukov
61155cf882 pkg/report: filter out more corrupted reports due to fault injection 2018-04-16 14:01:05 +02:00
Dmitry Vyukov
802ac9125d dashboard/app: fix error link in emails
Fixes #559
2018-04-16 11:46:10 +02:00
Dmitry Vyukov
7a67784ca8 pkg/report: detect hangs in unregister_netdevice
Add special report format for hangs in unregister_netdevice.
And support new format of lockdep reports (otherwise they all
are marked as corrupted).
2018-04-13 17:44:45 +02:00
Dmitry Vyukov
b0dfc7a076
Update syzbot.md 2018-04-13 11:25:16 +02:00
Hangbin Liu
0a0c5db668 executor: add two slave interfaces for bridge,bond,team
Bridge device is used for forwarding. Bond/team device is used for
load balance and fail over. So it would make more sense to add two
slave interfaces for these devices.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
2018-04-13 09:38:31 +02:00
Hangbin Liu
e694ebbaee sys/linux/rdma_cm: remove RDMA_PS_SDP
RDMA_PS_SDP has been removed since commit 1b90d3002e3ee ("RDMA/CMA: remove
RDMA_PS_SDP")

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
2018-04-13 09:38:31 +02:00
Dmitry Vyukov
eb2295de3e pkg/repro: clean up temp files 2018-04-12 16:06:06 +02:00
Dmitry Vyukov
f9f018393d docs: add new syzbot compiler 2018-04-12 15:57:16 +02:00
Dmitry Vyukov
96f3f2ea79 dashboard/app: fix anchors for namespaces
The human readable caption is a bad value for anchor,
also potentially changing over time.
Restore the namespace name as anchor as it should be.
2018-04-11 19:22:06 +02:00
Dmitry Vyukov
9cd56d71a8 sys/linux: add veth devices to devnames
Also comment new veth code for future me.
2018-04-11 11:36:25 +02:00
Dmitry Vyukov
cde43bc6bc syz-fuzzer: add a TODO for fault injection 2018-04-11 11:23:44 +02:00
Hangbin Liu
a9b12a986c executor: add salve interface for bond0/team0
Add a veth pair with name bond/team_slave and set their master
to bond0/team0.

Remove veth from devtypes because the cmd `ip link add veth0 type veth`
will actually failed with "RTNETLINK answers: File exists" and no veth
interface created. When create veth device, kernel will create a
pair of veth, so no need to create them one by one.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
2018-04-11 11:18:45 +02:00
Dmitry Vyukov
8b8de42714 sys/linux: add few new crypto algorithms 2018-04-10 20:13:52 +02:00
Dmitry Vyukov
44e67268d0 dashboard/app: add Reported-by to bug page
Fixes #549
2018-04-10 16:49:06 +02:00