diff options
| author | Julia Hansbrough <flowerhack@google.com> | 2018-05-01 14:34:00 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-03 07:50:03 +0200 |
| commit | 9ce14f4b01504ed4106711290601e09423a42413 (patch) | |
| tree | 6268c7496aba90bb5061c1e090b942a5b350e3c6 /executor/test_executor_linux.cc | |
| parent | d5b114b4015bcfb0ea2724efc01f478f6ea96b4f (diff) | |
prog: Fix page fault for syz-stress users.
In resources.go, haveGettime is False when SyscallMap["clock_gettime"]
is nil.
In this code, there's a branch that's entered only if Gettime is False,
which appends SyscallMap["clock_gettime"] to resourceCtors. That is, it
appends nil to resourceCtors, then iterates through resourceCtors and
tries to dereference the .Name of each time, in this case, nil.Name.
This was causing a page fault on Fuchsia.
I'm not certain how the "standard" flow is supposed to work, since it
seems like any code that enters the `if cantCreate == "" && !haveGettime`
should fail... but, removing that section causes test failures, so let's
just enforce that SyscallMap["clock_gettime"] is non-nil.
If there's a better way to solve this, I'm open to suggestions.
Diffstat (limited to 'executor/test_executor_linux.cc')
0 files changed, 0 insertions, 0 deletions
