aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/netbsd.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/report: factor out type definitionsTaras Madan2025-06-271-5/+0
|
* pkg/report: gather Go runtime bugs under one bugFlorent Revest2023-07-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | When a "fatal error:" bug is reported, this usually means that syzkaller itself had a memory corruption (except in the gVisor fuzzing case where this could be an actual bug in gVisor) Most likely, this is due to a kernel that went wild and corrupted the syzkaller address space, but in that case the exact details of what part of the runtime failed are rarely relevant. This gathers all these go runtime errors under one umbrella so they are easier to track. Except for gVisor on which the logic is kept the same as existing. Add three test cases to the linux reporting: - 705 (equivalent to the current all/report/7) to make sure Go OOO are suppressed (they have a different title now but still get suppressed) - 706 (equivalent to the current all/report/8) to make sure that ALSA "fatal errors" are not handled as Go fatal errors - 707 (new) to make sure that reports like https://syzkaller.appspot.com/bug?extid=3f00d7083c52713ba3b0 are re-named to "go runtime error"
* pkg/report: move report.Type to pkg/report/crashAleksandr Nogikh2023-07-051-3/+5
| | | | | This will help avoid a circular dependency pkg/vcs -> pkg/report -> pkg/vcs.
* pkg/report: extract more report types for LinuxAleksandr Nogikh2023-07-051-0/+3
| | | | Amend oops and oopsFormat to contain report type.
* pkg/report: separate reporter wrapper from OS-specific implementationsAleksandr Nogikh2021-08-061-1/+1
| | | | | | | | | | | | | Currently a number of report post-processing activities are implemented as a decorator over the interface that defines OS-specific implementations. Following exactly the same interface is too restrictive in this case as adding extra parameters to the post-processing forces the developer to adjust all implementations thay may not need these parameters at all. Untie the wrapper from the Reporter interface. Use a package-private reporterImpl interface for the OS-specific implementations, while having an exported Reporter structure. Make sure that Reporter is stored and passed as a pointer.
* pkg/report: ignore "ddb.onpanic" on netbsdDmitry Vyukov2020-10-261-1/+3
|
* pkg/report: deduplicate code across netbsd and openbsdDmitry Vyukov2020-06-071-129/+4
|
* pkg/report: fix kUBSan reporting on NetBSDm00nbsd2020-05-241-1/+1
|
* pkg/report: Improve parsing of the UBSan reportsKamil Rytarowski2020-02-221-0/+5
|
* tools/syz-check: check netlink policy descriptionsDmitry Vyukov2020-01-221-1/+1
| | | | | | | | | | | | | | Overall idea of netlink checking. Currnetly we check netlink policies for common detectable mistakes. First, we detect what looks like a netlink policy in our descriptions (these are structs/unions only with nlattr/nlnext/nlnetw fields). Then we find corresponding symbols (offset/size) in vmlinux using nm. Then we read elf headers and locate where these symbols are in the rodata section. Then read in the symbol data, which is an array of nla_policy structs. These structs allow to easily figure out type/size of attributes. Finally we compare our descriptions with the kernel policy description. Update #590
* pkg/build: add support to build the NetBSD kernel with KMSanSiddharth M2019-12-061-0/+5
| | | | | * Initial KMSan commit * pkg/buil: kmsan cleanup * pkg/build: Modify the logic slightly
* Correct parsing of Kernel ASan reportsKamil Rytarowski2019-11-141-1/+1
| | | | Handle __asan strings in backtraces.
* pkg/report: detect syzkaller panics in lost connection bugsDmitry Vyukov2019-11-061-2/+2
| | | | | | | | | Some syzkaller panics happen due to memory corruptions, but it still would be useful at least to get some visibility into these crashes. On some OSes we actualy already detect them as they have "panic:" oops pattern, but not e.g. on linux. Fixes #318
* pkg/report: refactor argument passingDmitry Vyukov2019-07-231-18/+10
| | | | | | We now pass 5 arguments through a bunch of functions, this is quite inconvinient when the set of arguments changes. Incapsulate all arguments in a struct and pass/store it as a whole.
* pkg/cover: fix prefix computationSiddharth M2019-07-171-12/+14
| | | | | | | | | | | | | | | | | | * pkg/cover: Modify parsing logic 1. Remove prefix computation 2. Add a mgrconfig for kernel build directory * pkg/report: shorten reports with kernelBuildSrc instead of kernelSrc * pkg/report: Fix failing tests * pkg/report: fix formating issues * tools/syz-cover: Fix unintended redefinition * make changes to fix failing ci build * pkg/report: fix issues
* pkg/report: Fix corrupted reportsR3x2019-07-141-1/+1
|
* pkg/report: fix ASan report parsing bugR3x2019-07-011-7/+1
|
* pkg/report: fix error in report symbolizationR3x2019-06-261-1/+1
|
* pkg/report: Add initial support for report symbolisationSiddharth M2019-06-131-7/+119
| | | | | | | | * pkg/report: initial netbsd commit * pkg/report: fix netbsd errors and add comments to help * fix spelling error
* pkg/report: fix other NetBSD corrupted reportsSiddharth M2019-05-071-4/+4
| | | | | | * Fix Superviser mode and lock error * Fix smaller issues
* pkg/report: fix the error corrupting reportsSiddharth M2019-03-081-2/+2
| | | | | | * fix error with reports * add additional testdata
* pkg/report: add better ASan bug parsing for NetBSDSiddharth M2019-03-051-2/+3
| | | | | | | | * Add basic ASan parser * Fix the test data * Removed Read|Write parameter
* pkg/report: ignore postfix error on netbsdDmitry Vyukov2019-02-271-0/+1
|
* pkg/report: update UBSAN netbsd report formatDmitry Vyukov2019-02-231-3/+3
|
* pkg/report: add KUBSan netbsd reportsDmitry Vyukov2019-02-231-0/+10
| | | | | 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-221-3/+3
|
* pkg/report: add simple version of netbsd crash parserDmitry Vyukov2019-02-011-2/+43
| | | | Just something to start with. Plus some test cases.
* pkg/report: pass the target to each OS report constructorAnton Lindqvist2018-12-081-1/+4
| | | | | In order to use the already defined kernel name in sys/targets to reduce duplications.
* pkg/report: allow to specify suppressions per OSDmitry Vyukov2018-06-221-7/+2
| | | | | | | | | | | | | Currently all (linux-specific) suppressions are hardcoded in mgrconfig. This is very wrong. Move them to pkg/report and allow to specify per OS. Add gvisor-specific suppressions. This required a bit of refactoring. Introduce mgrconfig.KernelObj finally. Make report.NewReporter and vm.Create accept mgrconfig directly instead of passing it as multiple scattered args. Remove tools/syz-parse and it always did the same as tools/syz-symbolize. Simplify global vars in syz-manager/cover.go. Create reporter eagerly in manager. Use sort.Slice more. Overall -90 lines removed.
* pkg/report: include Maintainers into reportDmitry Vyukov2017-11-291-15/+2
| | | | | | | | | | | | | | | | | | Currently getting a complete report requires a complex, multi-step dance (including getting information that external users are not interested in -- guilty file). Simplify interface down to 2 functions: Parse and Symbolize. Parse does what it did before, Symbolize symbolizes report and fills in maintainers. This simplifies both implementations of Reporter interface and all users of the interface. Potentially we could get this down to 1 function Parse that does everything. However, (1) Symbolize can fail, while Parse cannot, (2) usually we want to ignore (log) Symbolize errors, but otherwise proceed with the report, (3) repro does not need symbolization for all but the last report.
* pkg/report: combine report data into a structDmitry Vyukov2017-11-141-2/+2
| | | | | Parse returns 5 variables now. Later we may want to add crash "priority". Introduce Report struct that holds all report data.
* pkg/report: add corrupted report detectionAndrey Konovalov2017-11-131-2/+2
| | | | | This change makes pkg/report try to detect corrupted reports by using some heuristics.
* pkg/report: add netbsd stubDmitry Vyukov2017-10-251-0/+53