aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/testdata
Commit message (Collapse)AuthorAgeFilesLines
* pkg/report: update UBSAN netbsd report formatDmitry Vyukov2019-02-234-8/+8
|
* pkg/report: add KUBSan netbsd reportsDmitry Vyukov2019-02-234-0/+12
| | | | | Just to detect them at all and have some test base. Will need better bug identification later.
* pkg/report: add few netbsd KASAN reportsDmitry Vyukov2019-02-222-0/+35
|
* pkg/report: normalize timeout_add panic on OpenBSDAnton Lindqvist2019-02-151-0/+212
|
* openbsd: remove shorten report logic (#986)Anton Lindqvist2019-02-091-8/+4
| | | | | | | | | | | A line length of 79 in the ddb output does not necessarily imply that the following line is a continuation of the current line. Since there's no way to distinguish between ordinary and continuation lines, it could end up corrupting the report by joining two lines that are disjoint[1]. Instead, disable line wrapping in ddb. If we want some kind of wrapping in the future it's easier done by pkg/report. [1] https://syzkaller.appspot.com/bug?extid=03f7377a9848d7d008c9
* pkg/report: add simple version of netbsd crash parserDmitry Vyukov2019-02-016-0/+169
| | | | Just something to start with. Plus some test cases.
* executor: remove ability to detect kernel bugsDmitry Vyukov2019-01-311-3/+0
| | | | | | | | This ability was never used but we maintain a bunch of code for it. syzkaller also recently learned to spoof this error code with some ptrace magic (probably intercepted control flow again and exploited executor binary). Drop all of it.
* pkg/report: improved witness handlingAnton Lindqvist2019-01-282-0/+357
| | | | | | Possible now since the output is consistently prefixed[1]. [1] https://marc.info/?l=openbsd-cvs&m=154850328128727&w=2
* pkg/report: recognize witness on OpenBSDAnton Lindqvist2019-01-241-0/+137
|
* pkg/report: skip trylock functionsDmitry Vyukov2019-01-221-0/+165
| | | | Skip various *_trylock functions as we do for *_lock functions.
* pkg/report: more tuning for trusty reportsDmitry Vyukov2019-01-152-0/+92
| | | | Update #933
* pkg/report: add parsing of trusty crashesDmitry Vyukov2019-01-143-0/+108
| | | | Update #933
* pkg/report: strip trailing deadlock reportsDmitry Vyukov2019-01-141-0/+368
| | | | | | Oops messages frequently induce possible deadlock reports because oops reporting introduces unexpected locking chains. So if we have enough of the actual oops, strip the deadlock message.
* pkg/report: improve linux report parsing if we have contextsDmitry Vyukov2019-01-061-0/+186
| | | | | If we have contexts, we don't need to strip the first report at the beginning of the second report.
* pkg/report: support CONFIG_PRINTK_CALLERDmitry Vyukov2019-01-0314-0/+2500
| | | | | | | | | | | | | | | | | | CONFIG_PRINTK_CALLER has reached linux-next: https://groups.google.com/d/msg/syzkaller/xEDUgkgFvL8/d5bBS3BJBwAJ Enable CONFIG_PRINTK_CALLER and support parsing of its output format. This gives us several advantages: - output from different contexts don't intermix - intermixed output doesn't cause corrupted reports - we can keep larger prefix since we know it comes from the same task Credit for the kernel part goes to Tetsuo Handa. Also Sergey Senozhatsky and Petr Mladek for reviews of the kernel part. Fixes #596 Fixes #600
* pkg/report: account for new symbol suffixes produced by gcc9Dmitry Vyukov2018-12-312-0/+101
|
* pkg/report: improve parsing of "corrupted stack end detected inside scheduler"Dmitry Vyukov2018-12-306-1/+242
|
* pkg/report: improve double fault parsingDmitry Vyukov2018-12-307-0/+781
| | | | | | | | | | Ignore double faults as start of a second report. Double fault can happen during handling of paging faults if memory is badly corrupted. Also it usually happens synchronously, which means that maybe the report is not corrupted. But of course it can come from another CPU as well. Add more interesting test cases.
* pkg/report: parse linux stack corruption reportsDmitry Vyukov2018-12-303-0/+169
|
* pkg/report: lower uvm_fault oops precedence to favor more specific titlesAnton Lindqvist2018-12-241-0/+24
|
* pkg/report: normalize OpenBSD assertion messagesAnton Lindqvist2018-12-241-0/+115
|
* pkg/report: fix Start/EndPos calculation for fuchsiaDmitry Vyukov2018-12-201-0/+22
| | | | | | We computed Start/EndPos after trimming line prefix, this resulted in offsetted values which are not correct. Fix that. Add more tests and checks for Start/EndPos.
* pkg/report: another gvisor OOM suppressionDmitry Vyukov2018-12-132-0/+33
|
* pkg/report: another gvisor OOM suppressionDmitry Vyukov2018-12-133-4/+15
|
* pkg/report: another gvisor OOM suppressionDmitry Vyukov2018-12-131-0/+10
|
* pkg/report: pkg/report: relaxed gvisor OOM suppressions moreDmitry Vyukov2018-12-131-0/+16
| | | | There are more variations of this panic format.
* pkg/report: replace more moving parts in gvisor crash titlesDmitry Vyukov2018-12-131-0/+6
| | | | | "container" seems to have been renamed to "sandbox". Also exact pid numbers are harmful.
* pkg/report: relaxed gvisor OOM suppressionsDmitry Vyukov2018-12-131-0/+16
| | | | | Existing ones don't match actual gvisor output after address mangling. Not matching exact context in parens should be good enough re false positives.
* pkg/report: update gvisor ptrace regs suppressionsMichael Pratt2018-12-131-59/+41
| | | | | https://github.com/google/gvisor/commit/99d595869332f817de8f570fae184658c513a43c changed the format of these to include the registers.
* pkg/report: skip strncpy in linux reportsDmitry Vyukov2018-12-121-0/+55
|
* pkg/report: suppress another gvisor OOMDmitry Vyukov2018-11-301-0/+18
|
* pkg/report: refine rcu stall detectionDmitry Vyukov2018-11-221-0/+69
| | | | Add another anchor frame.
* pkg/report: detect Go service panics for fuchsiaDmitry Vyukov2018-11-223-0/+73
|
* pkg/report: fix corrupted stack trace checkingDmitry Vyukov2018-11-221-0/+1139
| | | | | | | | | | | | | | We started detecting all kernel reboots as corrupted, because we considered that after any "Allocated" line a stack trace should follow. Kernel boot output now contains: ima: Allocated hash algorithm: sha256 and there is no stack trace after that. 1. Refine stack trace regexps (we actually want to look for "Allocated by task PID:" lines). 2. Don't check stacks if report format says that it does not contain stacks.
* pkg/report: add "PANIC: double fault" report formatDmitry Vyukov2018-11-225-1/+164
| | | | | | | Amusing that's another kernel failure mode that we are discovering after 3 years. One can't even reliably understand when kernel has crashed. I wonder if syzkaller never hit these, or just never recognized and reported them. We will see. Don't even want to think about arm kernel output parsing.
* pkg/report: do not interpret reorder_kernel lines as a crash on OpenBSDAnton Lindqvist2018-11-121-0/+23
| | | | | | Sometimes the reorder_kernel error message is truncated causing the current ignore pattern to fail. Instead, simply reject all lines containing `reorder_kernel' in order to reduce noisy crash reports.
* pkg/report: improve OpenBSD output parsingDmitry Vyukov2018-10-111-0/+121
| | | | | OpenBSD produces \n\r for new lines and split output at 79 column. Handle both of these things.
* pkg/report: ignore arch/.*/mm/physaddr.c as guilty fileDmitry Vyukov2018-10-101-0/+51
| | | | | | | This is called from kfree in the added test. We already ignore everything related to kmalloc/free and e.g. arch/.*/mm/fault.c, so it looks reasonable to ignore this one too.
* pkg/report: ignore printk as guilty fileDmitry Vyukov2018-09-281-0/+103
|
* pkg/report: improve KMEMLEAK report parsingDmitry Vyukov2018-09-284-0/+95
| | | | Skip few more common allocation functions.
* pkg/report: fix guilty file extractionDmitry Vyukov2018-09-262-0/+78
| | | | | Account for the case that some file names can appear _before_ crash report starts. Start extracting guilty file starting from StartPos.
* pkg/report: ignore more str* functionsDmitry Vyukov2018-09-243-0/+555
|
* pkg/report: improve KMSAN report parsingDmitry Vyukov2018-09-138-6/+218
| | | | | | Extract guilty frame from stack. Add few more ignored functions. Add more tests.
* pkg/report: improve rcu stall/lockup reportsDmitry Vyukov2018-09-1046-471/+2093
| | | | | | | | | | | | | | | | During rcu stalls and cpu lockups kernel loops in some part of code, usually across several functions. When the stall is detected, traceback points to a random stack within the looping code. We generally take the top function in the stack (with few exceptions) as the bug identity. As the result stalls with the same root would produce multiple reports in different functions, which is bad. Instead we identify a representative function deeper in the stack. For most syscalls it can be the syscall entry function (e.g. SyS_timer_create). However, for highly discriminated functions syscalls like ioctl/read/write/connect we take the previous function (e.g. for connect the one that points to exact protocol, or for ioctl the one that is related to the device). Fixes #710
* pkg/report: refine fuchsia function name regexpDmitry Vyukov2018-09-041-0/+31
| | | | C++ function names can contain '~'.
* pkg/report: ignore mm/memory.c as guilty fileDmitry Vyukov2018-08-291-0/+61
|
* Add mandatory OpenBSD bits (#689)Anton Lindqvist2018-08-286-0/+81
| | | | | | | | | | | | | | | | | | all: add openbsd support squash of the following commits: * openbsd: add mandatory bits * report: add OpenBSD support * executor: skip building kvm on OpenBSD * executor: add OpenBSD support Linking against libutil is necessary due to usage of openpty(3). * executor: fix typo in fail() message * fixup! report: add OpenBSD support * fixup! openbsd: add mandatory bits * fixup! openbsd: add mandatory bits * fixup! openbsd: add mandatory bits * fixup! report: add OpenBSD support * gometalinter: skip sys/openbsd
* pkg/report: refactor and improve fuchsia report parsingDmitry Vyukov2018-08-2525-275/+1069
| | | | | | | | | Switch to the existing oops-based infrastructure. Extending existing code is nearly impossible. Detect service crashes on fuchsia. Add more tests.
* pkg/report: ignore android art debug outputDmitry Vyukov2018-08-251-0/+10
|
* pkg/report: ignore another mutex lock guts functionDmitry Vyukov2018-08-131-0/+102
|