From d257b2d2d87c724251e9b84f54699072f2718ef3 Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Wed, 17 Oct 2018 12:38:12 -0700 Subject: 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. --- vm/gvisor/gvisor.go | 1 + 1 file changed, 1 insertion(+) (limited to 'vm/gvisor') 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, " ")...) -- cgit mrf-deployment