aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-db
Commit message (Collapse)AuthorAgeFilesLines
* syz-cluster: rewrite fuzz config generationAleksandr Nogikh2025-10-071-21/+6
| | | | | | | | Instead of a predefined set of manually written syz-manager configs, construct it dynamically from different bits. During triage, select not just one, but all matching fuzzer configurations and then merge them together.
* tools/syz-db: add rm function to remove match syscallsJiao, Joey2024-11-132-0/+86
| | | | | Ex: bin/syz-db rm corpus.db "ioctl\$some"
* tools/syz-db: add print function to print sorted db RecordsJoey Jiao2024-11-131-0/+21
| | | | | Ex: bin/syz-db print corpus.db
* tools/syz-db: print stats about corpus programsDmitry Vyukov2024-08-211-7/+18
|
* tools/syz-db: add more usage info for syz-dbSimone Weiß2024-04-221-5/+18
| | | | | | Add some short notes on how syz-db can also be used manually. Signed-off-by: Simone Weiß <simone.weiss@elektrobit.com>
* all: ioutil is deprecated in go1.19 (#3718)Taras Madan2023-02-231-4/+3
|
* tools/syz-db: add merge commandDmitry Vyukov2022-11-281-3/+40
| | | | Allows to merge additional corpus or programs into an existing corpus file.
* pkg/db: make repair of the db file optionalDmitry Vyukov2022-02-011-2/+2
| | | | | | | | | | | It was too radical to repair and overwrite db file unconditionally. syz-execprog probes if a given file is a database. Usually it's a crash log or a single program, but db.Open started to overwrite it. And an explicit repair flag in db.Open and enable it only in syz-manager and syz-hub. Fixes #2997
* all: use tool.Failf instead of local functionsDmitry Vyukov2020-12-251-15/+11
|
* tools/syz-db: implement memory benchmarking functionDmitry Vyukov2020-05-051-0/+48
| | | | syz-db bench loads a corpus and measures memory consumption.
* prog: introduce strict parsing modeDmitry Vyukov2018-12-101-1/+1
| | | | | | | | | | | Over time we relaxed parsing to handle all kinds of invalid programs (excessive/missing args, wrong types, etc). This is useful when reading old programs from corpus. But this is harmful for e.g. reading test inputs as they can become arbitrary outdated. For runtests which creates additional problem of executing not what is actually written in the test (or at least what author meant). Add strict parsing mode that does not tolerate any errors. For now it just checks excessive syscall arguments.
* pkg/db: provide helper function for database creationDmitry Vyukov2018-12-061-11/+7
| | | | | | | | This is needed for both tools/syz-db and tools/syz-trace2syz. Also, remove code to resolve SHA1 collisions. Also, don't set db version as we actually want to minimize and smash these programs like anything else (not minimizing nor smashing them is only useful during tool testing).
* sys/linux: add support for mounting filesystem imagesDmitry Vyukov2018-03-301-3/+22
|
* tools/syz-db: allow to specify db version in packDmitry Vyukov2018-03-271-5/+14
|
* all: use consistent file permissionsDmitry Vyukov2017-07-031-2/+3
| | | | | | | | | | | | | | | | Currently we have unix permissions for new files/dirs hardcoded throughout the code base. Some places use 0644, some - 0640, some - 0600 and a variety of other constants. Introduce osutil.MkdirAll/WriteFile that use the default permissions and use them throughout the code base. This makes permissions consistent and also allows to easily change the permissions later if we change our minds. Also merge pkg/fileutil into pkg/osutil as they become dependent on each other. The line between them was poorly defined anyway as both operate on files.
* pkg/db: move from dbDmitry Vyukov2017-06-031-1/+1
|
* pkg/hash: move from hashDmitry Vyukov2017-06-031-1/+1
|
* tools/syz-db: add new utilityDmitry Vyukov2017-01-161-0/+94
The utility allows to pack/unpack corpus database to/from seprate files.