diff options
author | Jamie Liu <jamieliu@google.com> | 2020-05-12 12:24:23 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-12 12:26:05 -0700 |
commit | 8dd1d5b75a95100e747b1a88e9e557d5d2c30b64 (patch) | |
tree | 9846e2c721ed9bd4d02390b23d7b26d9212b7965 /pkg/sentry/socket/netstack/BUILD | |
parent | 06ded1c4372d4871f0581c7090957935d93cd50e (diff) |
Don't call kernel.Task.Block() from netstack.SocketOperations.Write().
kernel.Task.Block() requires that the caller is running on the task goroutine.
netstack.SocketOperations.Write() uses kernel.TaskFromContext() to call
kernel.Task.Block() even if it's not running on the task goroutine. Stop doing
that.
PiperOrigin-RevId: 311178335
Diffstat (limited to 'pkg/sentry/socket/netstack/BUILD')
-rw-r--r-- | pkg/sentry/socket/netstack/BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/socket/netstack/BUILD b/pkg/sentry/socket/netstack/BUILD index 6129fb83d..333e0042e 100644 --- a/pkg/sentry/socket/netstack/BUILD +++ b/pkg/sentry/socket/netstack/BUILD @@ -18,6 +18,7 @@ go_library( ], deps = [ "//pkg/abi/linux", + "//pkg/amutex", "//pkg/binary", "//pkg/context", "//pkg/log", |