From acf6932863be05c4b4d03924c01e38fe8c5d27b4 Mon Sep 17 00:00:00 2001 From: Eric Ernst Date: Wed, 14 Jul 2021 16:50:18 -0700 Subject: [PATCH] agent: update tokio to 1.8.1 Update to latest tokio to address RUSTSEC-2021-0072: Task dropped in wrong thread when aborting `LocalSet` task Update the toml to specify just 1.x for the tokio version. Fixes: #2165 Signed-off-by: Eric Ernst --- src/agent/Cargo.lock | 4 ++-- src/agent/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/agent/Cargo.lock b/src/agent/Cargo.lock index 4fd8c0917b..6b23a2dc46 100644 --- a/src/agent/Cargo.lock +++ b/src/agent/Cargo.lock @@ -1548,9 +1548,9 @@ dependencies = [ [[package]] name = "tokio" -version = "1.6.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd3076b5c8cc18138b8f8814895c11eb4de37114a5d127bafdc5e55798ceef37" +checksum = "98c8b05dc14c75ea83d63dd391100353789f5f24b8b3866542a5e85c8be8e985" dependencies = [ "autocfg", "bytes 1.0.1", diff --git a/src/agent/Cargo.toml b/src/agent/Cargo.toml index 6e987fa855..a613784321 100644 --- a/src/agent/Cargo.toml +++ b/src/agent/Cargo.toml @@ -26,7 +26,7 @@ async-recursion = "0.3.2" futures = "0.3.12" # Async runtime -tokio = { version = "1.2.0", features = ["full"] } +tokio = { version = "1", features = ["full"] } tokio-vsock = "0.3.1" netlink-sys = { version = "0.7.0", features = ["tokio_socket",]}