diff options
| author | Jouni Hogander <jouni.hogander@unikie.com> | 2020-04-12 11:24:12 +0300 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-07-02 09:32:57 +0200 |
| commit | f8885dc4ce82fa10a22671a0b33dc1ee34cde388 (patch) | |
| tree | 9388ceab872735895cabf519cb1d5e919807c9d1 /tools | |
| parent | d42301aa2fcaa64823b3ece21f2a9c83335471f5 (diff) | |
pkg/bisect: Implement config bisection
Implement Linux kernel configuration bisection. Use bisected minimalistic
configuration in commit bisection. Utilizes config_bisect.pl script from Linux
kernel tree in bisection.
Modify syz-bisect to read in kernel.baseline_config. This is used as a "good"
configuration when bisection is run.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-bisect/bisect.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/syz-bisect/bisect.go b/tools/syz-bisect/bisect.go index b3a307887..c09d000a0 100644 --- a/tools/syz-bisect/bisect.go +++ b/tools/syz-bisect/bisect.go @@ -102,9 +102,11 @@ func main() { loadString("syzkaller.commit", &cfg.Syzkaller.Commit) loadString("kernel.commit", &cfg.Kernel.Commit) loadFile("kernel.config", &cfg.Kernel.Config, true) + loadFile("kernel.baseline_config", &cfg.Kernel.BaselineConfig, false) loadFile("repro.syz", &cfg.Repro.Syz, false) loadFile("repro.c", &cfg.Repro.C, false) loadFile("repro.opts", &cfg.Repro.Opts, true) + if _, err := bisect.Run(cfg); err != nil { fmt.Fprintf(os.Stderr, "bisection failed: %v\n", err) os.Exit(1) |
