1
0

Do not clean dmesg

This commit is contained in:
dump_stack() 2019-08-19 05:15:55 +00:00
parent f3d932e100
commit 54a3704bc2
2 changed files with 2 additions and 22 deletions

View File

@ -64,6 +64,8 @@
- Now test.sh is used by default if copying is not implemented in - Now test.sh is used by default if copying is not implemented in
Makefile. Makefile.
- dmesg is not cleaned before the start of module/exploit anymore.
### Removed ### Removed
- *Kernel factory* is removed completely in favor of incremental - *Kernel factory* is removed completely in favor of incremental

22
pew.go
View File

@ -101,23 +101,6 @@ func build(tmp string, ka config.Artifact, ki config.KernelInfo,
return return
} }
func cleanDmesg(q *qemu.System) (err error) {
start := time.Now()
for {
_, err = q.Command("root", "dmesg -c")
if err == nil {
break
}
time.Sleep(time.Second)
if time.Now().After(start.Add(time.Minute)) {
err = errors.New("Can't connect to qemu")
break
}
}
return
}
func testKernelModule(q *qemu.System, ka config.Artifact, func testKernelModule(q *qemu.System, ka config.Artifact,
test string) (output string, err error) { test string) (output string, err error) {
@ -358,11 +341,6 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
result.Build.Ok = true result.Build.Ok = true
} }
err = cleanDmesg(q)
if err != nil {
return
}
if testPath == "" { if testPath == "" {
testPath = result.BuildArtifact + "_test" testPath = result.BuildArtifact + "_test"
if !exists(testPath) { if !exists(testPath) {