Commit Graph

2464 Commits

Author SHA1 Message Date
Dmitry Vyukov
1319a7da09 dashboard/app: fix crash save throttling logic
bug.LastTime is updated on every crash, even if we don't save it.
As the result we did not save recent crashes for popular bugs at all.
Fix this by introducing bug.LastSavedCrash.
2018-06-08 09:34:02 +02:00
Hangbin Liu
f7b27b7a19 sys/linux: add remaining qdisc/tclass/tfilter/actions for netlink route sched
Update #533

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
2018-06-08 08:11:20 +03:00
Dmitry Vyukov
645e75f803 executor: make syscall table and number constant
We see some crashes that suggest corruption of the syscall number:

invalid command number 1296 (errno 11)
invalid command number 107 (errno 110)

Make the table and the number constant to prevent corruption.
2018-06-07 15:32:30 +02:00
Dmitry Vyukov
7fb9023fd7 pkg/report: ignore down functions for task hung bugs 2018-06-07 14:01:22 +02:00
Dmitry Vyukov
8b06421c04 sys/linux: regenerate consts on tip 2018-06-07 13:13:50 +02:00
Dmitry Vyukov
85e7c1404f sys/linux: add AF_XDP support 2018-06-07 13:13:49 +02:00
Daniel Borkmann
ac9b19d2e4 bpf: enable hardening mode 1 for jited images
This will harden non-root programs from kernel side, but not
root-only ones. Helps also to increase coverage a bit since
syzkaller generates programs for both cases.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-06-07 12:39:12 +03:00
Daniel Borkmann
b17ae9398c bpf: enable full unwind and kallsym export support for jited images
Helps syzkaller in particular for unwinding full stack in case
of warnings or crashes.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-06-07 12:39:12 +03:00
Dmitry Vyukov
667b9a6950 sys/linux: fix up midi descriptions 2018-06-07 11:10:49 +02:00
srikanth007m
72b15886d9 Sound Mixer Descriptors for MIDI
Enabling MIDI supported IOCTL descriptors for Syzkaller
2018-06-07 11:56:11 +03:00
srikanth007m
e1c9dcfb07 MIDI Sound mixer Const file 2018-06-07 11:56:04 +03:00
Dmitry Vyukov
d2ba33fac0 pkg/kernel: pass CC to oldconfig
Passing in compiler is important since 4.17
(at the very least it's noted in the config).
2018-06-07 10:18:14 +02:00
Dmitry Vyukov
e0e534c6c2 docs: update fuchsia instructions 2018-06-06 20:55:40 +02:00
Dmitry Vyukov
a251f32666 sys/fuchsia: disable zx_task_kill
Disable zx_task_kill until we figure out how to prevent executor from killing fuzzer.

Update #594
2018-06-06 20:52:30 +02:00
Dmitry Vyukov
0ac1284d5f vm/qemu: fuchsia support
Move most of linux-isms to os/arch configs.
Add proper configs for fuchsia.
2018-06-06 20:45:09 +02:00
Dmitry Vyukov
7efe08c90a syz-fuzzer: write programs directly to stdout
On fuchsia log package misbehaves and programs are lost:
https://fuchsia.atlassian.net/browse/TC-151
Write directly to stdout. Also should be slightly faster and shorter.
2018-06-06 20:39:36 +02:00
Dmitry Vyukov
a6bf43aeeb pkg/report: add simplistic fuchsia reporter 2018-06-06 16:29:59 +02:00
Dmitry Vyukov
97d44b0288 executor: use linux result convention for fuchsia
In several places we assume that -1 is failure and 0 is OK.
Use this convention for fuchsia as well.
2018-06-06 16:17:04 +02:00
Dmitry Vyukov
0c5447b340 syz-manager/mgrconfig: default to sandbox=none
sandbox=none is the default for execprog.
And now it's working reliably.
And only none makes sense for anything but linux.
2018-06-06 16:15:28 +02:00
Dmitry Vyukov
d8edd95800 executor: fix zx_port_wait use
The call signature has changed in zircon.
2018-06-06 16:14:00 +02:00
Dmitry Vyukov
606f9a96d8 pkg/csource: allow to build source fom memory
In most cases we have source in memory,
so provide a function to build right from memory
without creating temp files.
2018-06-06 10:30:54 +02:00
Dmitry Vyukov
41f9540d7a sys/fuchsia: remove ZX_VMO_OP_LOOKUP
It's removed from latest zircon sources.
2018-06-06 10:02:03 +02:00
Dmitry Vyukov
6479ab2a75 Makefile, sys/targets: move all native compilation logic to sys/targets
We currently have native cross-compilation logic duplicated
in Makefile and in sys/targets. Some pieces are missed in one
place, some are in another. Only pkg/csource knows how to check
for -static support.

Move all CC/CFLAGS logic to sys/targets and pull results in Makefile.

This should make Makefile work on distros that have broken x86_64-linux-gnu-gcc,
now we will use just gcc. And this removes the need to define NOSTATIC,
as it's always auto-detected.

This also paves the way for making pkg/csource work on OSes other than Linux.
2018-06-06 10:02:03 +02:00
Dmitry Vyukov
65c0e1a37c AUTHORS: sync with CONTRIBUTORS
Sometimes people forget to add themselves to AUTHORS.
2018-06-06 10:02:03 +02:00
Dmitry Vyukov
9820e1cae6 pkg/report: more "NMI handler took too long" ignores 2018-06-06 10:02:03 +02:00
Denis Efremov
863a24bb5d sys/linux: id field fix in v4l2_event_subscription
The id field in the v4l2_event_subscription structure
currently described as: id len[type, int32].

But all the documentation states is:
"id - ID of the event source. If there is no ID associated
with the event source, then set this to 0. Whether or not
an event needs an ID depends on the event type."

So, the documentation clearly states that:
1. id - is the source of an event
2. type - is the type of an event
3. for some types of events there is no source and id can be 0

According to this 'id int32' is more accurate description of
the field.
2018-06-05 13:33:12 +03:00
Dmitry Vyukov
bf6fa5b647
Update found_bugs.md 2018-06-05 11:33:06 +02:00
Denis Efremov
a316ff9273 sys/linux: add new mount options for xfs && btrfs in kernel v4.17
1. lazytime && nolazytime for xfs
2. nossd_spread for btrfs
2018-06-05 08:47:06 +03:00
Dmitry Vyukov
825571fb8a
Update found_bugs.md 2018-06-05 07:26:35 +02:00
Ondrej Mosnacek
a50d873b17 sys/linux: add MORUS and AEGIS AEAD algorithms 2018-06-04 14:57:38 +03:00
Denis Efremov
ead447eb6f sys/linux: fix cdrom rules description && clarification on how to run
1. Comment with clarification on how to run qemu added.
2. Fixed description of int type.

Signed-off-by: Denis Efremov <efremov@linux.com>
2018-06-04 14:36:27 +03:00
Dmitry Vyukov
63f18a76c3 sys/linux: improve /dev/snd/controlC descriptions 2018-06-04 12:07:28 +02:00
Dmitry Vyukov
3f4f3d5ec9 pkg/report: ignore INFO messages about long interrupts 2018-06-04 12:07:28 +02:00
Dmitry Vyukov
cdc49e5fb7
Update syscall_descriptions_syntax.md
extend resource description
2018-06-04 11:16:25 +02:00
Dmitry Vyukov
6cbe7c26d5
Update syscall_descriptions_syntax.md
clarify size of intptr
2018-06-04 09:39:41 +02:00
Denis Efremov
2f93b54f26 sys/linux: video4linux v4l2_jpegcompression APP_len fix
Signed-off-by: Denis Efremov <efremov@linux.com>
2018-05-29 16:32:01 +02:00
Denis Efremov
e276de775a sys/linux: cdrom generic description
Signed-off-by: Denis Efremov <efremov@linux.com>
2018-05-29 14:06:40 +02:00
Dmitry Vyukov
f48c20b8f9
tools/create-image.sh: fix watchdog_thresh value
watchdog_thresh is capped at 60, so 120 causes EINVAL.
2018-05-19 10:48:34 +02:00
Dmitry Vyukov
849705db5c sys/linux: few minor tweaks for bpf 2018-05-18 19:29:27 +02:00
Dmitry Vyukov
70c84d118a tools/create-image.sh: add few useful sysctl's 2018-05-18 19:29:06 +02:00
Dmitry Vyukov
d302e81641 sys/linux: add MAP_FIXED_NOREPLACE const 2018-05-18 11:14:56 +02:00
Dmitry Vyukov
61ef28da7a tools/syz-execprog: restore the previous tun disabling logic
This probably can break some things.
I feel that tun setup can affect other things even if
syz_emit_ethernet/syz_extract_tcp_res are not used.
So it can make sense to setup tun even if they are not used.
But let's be more careful.
2018-05-18 10:01:22 +02:00
Dmitry Vyukov
c992b76711 Makefile: allow to extract consts only from specified files 2018-05-18 09:48:49 +02:00
Dmitry Vyukov
738d58ade0 pkg/csource: minimize netdevices and net reset
Add separate options to minimize netdevices setup and net namespace reset.

Fixes #581
2018-05-17 19:57:54 +02:00
Dmitry Vyukov
3717901c10 pkg/csource: serialize options into json
Current format is painful to parse after changes.
Switch to json.
2018-05-17 19:07:46 +02:00
Dmitry Vyukov
9753d3be5e tools/syz-prog2c: add missing csource option 2018-05-17 19:07:33 +02:00
Dmitry Vyukov
be47ebb0eb pkg/kernel: allow to split full make output
Currently kernel build failures are insanely verbose
(contain full kernel build output) and there is no
way to separate short descriptions from full output.
Make it possible.
Also try to extract failure root cause froom build log.
Use this in pkg/bisect to not pollute log on build failures.

Update #501
2018-05-17 17:18:24 +02:00
Dmitry Vyukov
28cbff8c7d pkg/bisect: stop at Linux v3.8
Update #501
2018-05-17 16:40:00 +02:00
Dmitry Vyukov
8dd3159f51 pkg/bisect: increase number of tries to 8
With 5 tries sometimes only 1 fails,
and sometimes we probably have false negatives.
Increase number of tries to 8 and compress
results if they all are the same.

Update #501
2018-05-17 16:30:20 +02:00
Dmitry Vyukov
edbe39a26d pkg/git: extract relevant email addresses from commits
Update #501
2018-05-17 15:58:58 +02:00