gvisor/pkg
Nicolas Lacasse 07aa040842 Fix possible panic in control.Processes.
There was a race where we checked task.Parent() != nil, and then later called
task.Parent() again, assuming that it is not nil.  If the task is exiting, the
parent may have been set to nil in between the two calls, causing a panic.

This CL changes the code to only call task.Parent() once.

PiperOrigin-RevId: 215274456
Change-Id: Ib5a537312c917773265ec72016014f7bc59a5f59
2018-10-01 13:56:07 -07:00
..
abi Forward ioctl(TCSETSF) calls on host ttys to the host kernel. 2018-09-27 18:17:38 -07:00
amutex stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
atomicbitops stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
binary binary: append slices 2018-08-21 16:26:32 -07:00
bits stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
bpf Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
compressio compressio: stop worker-pool reference / dependency loop. 2018-09-12 17:24:53 -07:00
control stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
cpuid Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
dhcp Change tcpip.Route.Mask to tcpip.AddressMask. 2018-09-28 12:18:15 -07:00
eventchannel stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
fd stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
gate stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
ilist Distinguish Element and Linker for ilist. 2018-09-04 09:19:11 -07:00
linewriter stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
log stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
metric stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
p9 Add additional sanity checks for walk. 2018-09-07 16:53:12 -07:00
rand Allow building on !linux 2018-08-22 13:31:11 -07:00
refs Distinguish Element and Linker for ilist. 2018-09-04 09:19:11 -07:00
seccomp Run gofmt -s on everything 2018-09-21 14:06:59 -07:00
secio stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
segment Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00
sentry Fix possible panic in control.Processes. 2018-10-01 13:56:07 -07:00
sleep netstack: make go:linkname work for all architectures 2018-09-27 12:53:10 -07:00
state Increase state test timeout 2018-09-18 14:38:42 -07:00
sync stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
syserr Reduce map lookups in syserr 2018-08-14 19:03:38 -07:00
syserror stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
tcpip Change tcpip.Route.Mask to tcpip.AddressMask. 2018-09-28 12:18:15 -07:00
tmutex stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
unet stateify: support explicit annotation mode; convert refs and stack packages. 2018-07-27 10:17:21 -07:00
urpc runsc fsgofer: Support dynamic serving of filesystems. 2018-08-15 16:25:22 -07:00
waiter Automated rollback of changelist 207037226 2018-08-02 10:42:48 -07:00