From ce060acf9d64e943d9ea1d5d5614defe3807068b Mon Sep 17 00:00:00 2001 From: Lavanya Sirigudi <65212197+lavanya-f5@users.noreply.github.com> Date: Mon, 20 Sep 2021 18:56:05 +0530 Subject: [PATCH] Upgrade golang.org/x/net for resolving CVE-2021-33194 (#1997) --- go.mod | 1 + go.sum | 2 + vendor/golang.org/x/net/html/parse.go | 24 +++- vendor/golang.org/x/net/http2/ascii.go | 49 ++++++++ .../x/net/http2/client_conn_pool.go | 79 ++++++++---- vendor/golang.org/x/net/http2/go115.go | 27 +++++ vendor/golang.org/x/net/http2/headermap.go | 7 +- vendor/golang.org/x/net/http2/not_go115.go | 31 +++++ vendor/golang.org/x/net/http2/server.go | 26 ++-- vendor/golang.org/x/net/http2/transport.go | 68 ++++++----- vendor/golang.org/x/net/http2/write.go | 7 +- vendor/golang.org/x/net/idna/idna10.0.0.go | 113 ++++++++++++------ vendor/golang.org/x/net/idna/idna9.0.0.go | 93 +++++++++----- .../x/net/internal/socket/mmsghdr_unix.go | 103 +++++++++++++--- .../x/net/internal/socket/msghdr_linux.go | 3 + .../x/net/internal/socket/rawconn_mmsg.go | 16 ++- .../x/net/internal/socket/rawconn_msg.go | 4 +- .../x/net/internal/socket/sys_posix.go | 23 ++-- vendor/modules.txt | 3 +- 19 files changed, 498 insertions(+), 181 deletions(-) create mode 100644 vendor/golang.org/x/net/http2/ascii.go create mode 100644 vendor/golang.org/x/net/http2/go115.go create mode 100644 vendor/golang.org/x/net/http2/not_go115.go diff --git a/go.mod b/go.mod index b95dedfb1..ffcaee52a 100644 --- a/go.mod +++ b/go.mod @@ -20,6 +20,7 @@ require ( github.com/xeipuuv/gojsonschema v1.1.0 golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 golang.org/x/mod v0.4.2 + golang.org/x/net v0.0.0-20210520170846-37e1c6afe023 // indirect k8s.io/api v0.21.2 k8s.io/apiextensions-apiserver v0.21.2 k8s.io/apimachinery v0.21.2 diff --git a/go.sum b/go.sum index 0ebb9c959..0670ffc66 100644 --- a/go.sum +++ b/go.sum @@ -482,6 +482,8 @@ golang.org/x/net v0.0.0-20210224082022-3d97a244fca7/go.mod h1:m0MpNAwzfU5UDzcl9v golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 h1:DzZ89McO9/gWPsQXS/FVKAlG02ZjaQ6AlZRBimEYOd0= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210520170846-37e1c6afe023 h1:ADo5wSpq2gqaCGQWzk7S5vd//0iyyLeAratkEoG5dLE= +golang.org/x/net v0.0.0-20210520170846-37e1c6afe023/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/vendor/golang.org/x/net/html/parse.go b/vendor/golang.org/x/net/html/parse.go index f91466f7c..038941d70 100644 --- a/vendor/golang.org/x/net/html/parse.go +++ b/vendor/golang.org/x/net/html/parse.go @@ -663,6 +663,24 @@ func inHeadIM(p *parser) bool { // Ignore the token. return true case a.Template: + // TODO: remove this divergence from the HTML5 spec. + // + // We don't handle all of the corner cases when mixing foreign + // content (i.e. or ) with