Skip to content

Commit ec5987d

Browse files
committed
build(deps): bump golang.org/x/net to v0.57.0, require Go 1.25
Also bump golang.org/x/sys to v0.47.0. Both modules now require Go 1.25, so raise the go directive in go.mod from 1.23.0 to 1.25.0 and drop Go 1.23 from the CI test matrix. Starting with Go 1.25, the runtime opens the cgroup CPU limit files (cpu.cfs_quota_us and cpu.cfs_period_us on cgroup v1, cpu.max on cgroup v2) and keeps them open to periodically re-evaluate GOMAXPROCS (https://go.dev/cl/670497\). As a result, a container's init process now legitimately holds these file descriptors, which the fd leak integration test used to flag as a leak. Add them to the test's whitelist of allowed fd targets. Signed-off-by: Sopho Merkviladze <smerkviladze@mirantis.com>
1 parent 6ad1350 commit ec5987d

121 files changed

Lines changed: 4660 additions & 1707 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,18 @@ jobs:
2525
fail-fast: false
2626
matrix:
2727
os: [ubuntu-24.04, ubuntu-24.04-arm]
28-
go-version: [1.23.x, 1.25.x, 1.26.x]
28+
go-version: [1.25.x, 1.26.x]
2929
rootless: ["rootless", ""]
3030
race: ["-race", ""]
3131
criu: ["", "criu-dev"]
3232
exclude:
3333
# Disable most of criu-dev jobs, as they are expensive
3434
# (need to compile criu) and don't add much value/coverage.
35-
- criu: criu-dev
36-
go-version: 1.23.x
3735
- criu: criu-dev
3836
go-version: 1.25.x
3937
- criu: criu-dev
4038
rootless: rootless
4139
# Do race detection only with latest stable Go version.
42-
- race: -race
43-
go-version: 1.23.x
4440
- race: -race
4541
go-version: 1.25.x
4642

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/opencontainers/runc
22

3-
go 1.23.0
3+
go 1.25.0
44

55
require (
66
github.com/checkpoint-restore/go-criu/v6 v6.3.0
@@ -21,8 +21,8 @@ require (
2121
github.com/sirupsen/logrus v1.9.3
2222
github.com/urfave/cli v1.22.16
2323
github.com/vishvananda/netlink v1.3.0
24-
golang.org/x/net v0.35.0
25-
golang.org/x/sys v0.30.0
24+
golang.org/x/net v0.57.0
25+
golang.org/x/sys v0.47.0
2626
google.golang.org/protobuf v1.36.5
2727
)
2828

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ github.com/vishvananda/netlink v1.3.0 h1:X7l42GfcV4S6E4vHTsw48qbrV+9PVojNfIhZcwQ
8383
github.com/vishvananda/netlink v1.3.0/go.mod h1:i6NetklAujEcC6fK0JPjT8qSwWyO0HLn4UKG+hGqeJs=
8484
github.com/vishvananda/netns v0.0.4 h1:Oeaw1EM2JMxD51g9uhtC0D7erkIjgmj8+JZc26m1YX8=
8585
github.com/vishvananda/netns v0.0.4/go.mod h1:SpkAiCQRtJ6TvvxPnOSyH3BMl6unz3xZlaprSwhNNJM=
86-
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
87-
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
86+
golang.org/x/net v0.57.0 h1:K5+3DljvIuDG9/Jv9rvyMywYNFCQ9RSUY6OOTTkT+tE=
87+
golang.org/x/net v0.57.0/go.mod h1:KpXc8iv+r3XplLAG/f7Jsf9RPszJzdR0f58q9vGOuEU=
8888
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
8989
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
9090
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
9191
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
9292
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
9393
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
9494
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
95-
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
96-
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
95+
golang.org/x/sys v0.47.0 h1:o7XGOvZQCADBQQ4Y7VNq2dRWQR7JmOUW8Kxx4ZsNgWs=
96+
golang.org/x/sys v0.47.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
9797
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
9898
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
9999
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=

tests/integration/create.bats

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ is_allowed_fdtarget() {
3838
# overlayfs binary reference (CVE-2019-5736)
3939
grep -Ex "/runc" <<<"$target" ||
4040
# memfd cloned binary (CVE-2019-5736)
41-
grep -Fx "/memfd:runc_cloned:/proc/self/exe (deleted)" <<<"$target"
41+
grep -Fx "/memfd:runc_cloned:/proc/self/exe (deleted)" <<<"$target" ||
42+
# Go 1.25+ runtime opens these cgroup v1 files (see https://go.dev/cl/670497).
43+
grep -Ex ".*/cpu.cfs_(quota|period)_us" <<<"$target" ||
44+
# Ditto for the cgroup v2 equivalent.
45+
grep -Ex ".*/cpu.max" <<<"$target"
4246
} >/dev/null
4347
return "$?"
4448
}

vendor/golang.org/x/net/bpf/doc.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/unix/affinity_linux.go

Lines changed: 119 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/unix/fdset.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/unix/ifreq_linux.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/unix/ioctl_signed.go

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/sys/unix/ioctl_unsigned.go

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)