Skip to content

Commit

Permalink
remove found_bugs.md and add db.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mudongliang committed Apr 28, 2024
1 parent b41b06f commit 1a16194
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 24 deletions.
68 changes: 68 additions & 0 deletions sources/syzkaller/db.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
status: collected
title: "syz-db"
author: Syzkaller Community
collector: mudongliang
collected_date: 20240428
link: https://github.com/google/syzkaller/blob/master/docs/db.md
---

# syz-db

`syz-db` program can be used to manipulate corpus.db databases that are used
by syz-managers.

## Build

Build `syz-db` with `make db` or by changing to `tools/syz-db` and run `go build`.

## Options

`syz-db` currently overs the following generic arguments:

```shell
-arch string
target arch
-os string
target OS
-version uint
database version
-vv int
verbosity
```

That can be used with

```
syz-db pack dir corpus.db
```

to pack a database

```
syz-db unpack corpus.db dir
```

to unpack a database. A file containing performed syscalls will be returned.

```
syz-db merge dst-corpus.db add-corpus.db* add-prog*
```

to merge databases. No additional file will be created: The first file will be replaced by the merged result.

```
syz-db bench corpus.db
```

to run a deserialization benchmark. For example:

```
syz-db -os=linux -arch=amd64 bench corpus.db
```

could give an output like

```
allocs 123 MB (123 M), next GC 123 MB, sys heap 123 MB, live allocs 123 MB (123 M), time 324s.
```
24 changes: 0 additions & 24 deletions sources/syzkaller/found_bugs.md

This file was deleted.

0 comments on commit 1a16194

Please sign in to comment.