diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2016-10-04 16:12:12 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2016-11-29 17:39:38 +0100 |
| commit | c5707f5e575f3a4220faede18a51f7a8c7ee1377 (patch) | |
| tree | d7b264b52b8ce35cd6de3db86dc742a30f980bfc /ipc | |
| parent | 72e9b239f4d6b71e43acee4ca76de04e893400e8 (diff) | |
executor: emit ethernet traffic
Diffstat (limited to 'ipc')
| -rw-r--r-- | ipc/ipc.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipc/ipc.go b/ipc/ipc.go index dbb2a878d..899a8c7c3 100644 --- a/ipc/ipc.go +++ b/ipc/ipc.go @@ -16,6 +16,7 @@ import ( "sync/atomic" "syscall" "time" + "unsafe" "github.com/google/syzkaller/fileutil" "github.com/google/syzkaller/prog" @@ -121,7 +122,8 @@ func MakeEnv(bin string, timeout time.Duration, flags uint64, pid int) (*Env, er for i := 0; i < 8; i++ { inmem[i] = byte(flags >> (8 * uint(i))) } - inmem = inmem[8:] + *(*uint64)(unsafe.Pointer(&inmem[8])) = uint64(pid) + inmem = inmem[16:] env := &Env{ In: inmem, Out: outmem, |
