aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/corpus/corpus_test.go
Commit message (Collapse)AuthorAgeFilesLines
* all: fix recvcheck errorsTaras Madan2025-02-071-2/+2
|
* pkg/corpus: support multiple focus areasAleksandr Nogikh2024-10-251-9/+13
| | | | | | | | Focus area assigns a fuzzing priority to a set of PCs. When running ChooseProgram(), corpus will first select a focus area proportionally to the specified weights, and only then continue with selecting a program belonging to it.
* all: adapt all cover and sig to 64bitJoey Jiao2024-05-271-6/+6
| | | | | | | | | | | | | | | | | | Taken some arm64 devices for example: kaslr_offset is diff at bits 12-40, and kernel modules are loaded at 2GB space, so we have `ffffffd342e10000 T _stext` where uppper 32bit is ffffffd3. However, if we check modules range, the 1st module is loaded at 0xffffffd2eeb2a000, while the last module is loaded at 0xffffffd2f42c4000. We can see the upper 32bits are diff for core kernel and modules. If we use current 32bits for covered PC, we will get wrong module address recovered. So we need to move to 64bit cover and signal: - change cover/sig to 64bit to fit for syz-executor change - remove kernel upper base logic as kernel upper base is not a constant when kaslr enabled for core kernel and modules. - remove unused pcBase
* all: refactor statsDmitry Vyukov2024-04-091-7/+4
| | | | | | | Add ability for each package to create and export own stats. Each stat is self-contained, describes how it should be presented, and there is not need to copy them from one package to another. Stats also keep historical data and allow building graphs over time.
* all: rename corpus and fuzzer Stat objectsAleksandr Nogikh2024-03-191-3/+3
| | | | | Stats() seems to be a more sound choice since these structures include multiple data points.
* pkg/corpus: track the total coverageAleksandr Nogikh2024-03-191-1/+28
|
* pkg/corpus: a separate package for the corpus functionalityAleksandr Nogikh2024-03-181-0/+98
pkg/fuzzer and syz-manager have a common corpus functionality that can be well be unified. Create a separate pkg/corpus package that would be used by both of them. It will simplify further work of moving pkg/fuzzer to the host.