aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gvisor
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2018-10-17 12:38:12 -0700
committerDmitry Vyukov <dvyukov@google.com>2018-10-17 21:43:37 +0200
commitd257b2d2d87c724251e9b84f54699072f2718ef3 (patch)
treea57c056e2f437a4804a8e4a1598758e5cc74ace2 /vm/gvisor
parentb2695b95a89f636bf85562912df02568a07e7aed (diff)
Pass -debug flag to runsc.
As of commit 3f053259, gVisor sentry panics are no longer sent to the stderr for "runsc run" by default, as that stderr belongs exclusively to the application. As a result, syzbot never sees the gVisor panic stack trace, and is only reporting errors that occur when waiting for a dead sandbox. Passing the "-debug" flag to runsc will make the sentry panics visible to syzbot again.
Diffstat (limited to 'vm/gvisor')
-rw-r--r--vm/gvisor/gvisor.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go
index 1ad6dc154..d339c5c4f 100644
--- a/vm/gvisor/gvisor.go
+++ b/vm/gvisor/gvisor.go
@@ -190,6 +190,7 @@ func (inst *instance) runscCmd(add ...string) *exec.Cmd {
"-watchdog-action=panic",
"-panic-signal=12",
"-network=none",
+ "-debug",
}
if inst.cfg.RunscArgs != "" {
args = append(args, strings.Split(inst.cfg.RunscArgs, " ")...)