mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
6462e9de67
This is aimed at solving the problem of cgroup v2 memory controller behavior which is not compatible with that of cgroup v1. In cgroup v1, if the new memory limit being set is lower than the current usage, setting the new limit fails. In cgroup v2, same operation succeeds, and the container is OOM killed. Introduce a new setting, memory.checkBeforeUpdate, and use it to mimic cgroup v1 behavior. Note that this is not 100% reliable because of TOCTOU, but this is the best we can do. Add some test cases. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
107 lines
3.7 KiB
Plaintext
107 lines
3.7 KiB
Plaintext
# github.com/checkpoint-restore/go-criu/v6 v6.3.0
|
|
## explicit; go 1.16
|
|
github.com/checkpoint-restore/go-criu/v6
|
|
github.com/checkpoint-restore/go-criu/v6/rpc
|
|
# github.com/cilium/ebpf v0.9.3
|
|
## explicit; go 1.18
|
|
github.com/cilium/ebpf
|
|
github.com/cilium/ebpf/asm
|
|
github.com/cilium/ebpf/btf
|
|
github.com/cilium/ebpf/internal
|
|
github.com/cilium/ebpf/internal/sys
|
|
github.com/cilium/ebpf/internal/unix
|
|
github.com/cilium/ebpf/link
|
|
# github.com/containerd/console v1.0.3
|
|
## explicit; go 1.13
|
|
github.com/containerd/console
|
|
# github.com/coreos/go-systemd/v22 v22.4.0
|
|
## explicit; go 1.12
|
|
github.com/coreos/go-systemd/v22/activation
|
|
github.com/coreos/go-systemd/v22/dbus
|
|
# github.com/cpuguy83/go-md2man/v2 v2.0.2
|
|
## explicit; go 1.11
|
|
github.com/cpuguy83/go-md2man/v2/md2man
|
|
# github.com/cyphar/filepath-securejoin v0.2.3
|
|
## explicit; go 1.13
|
|
github.com/cyphar/filepath-securejoin
|
|
# github.com/docker/go-units v0.5.0
|
|
## explicit
|
|
github.com/docker/go-units
|
|
# github.com/godbus/dbus/v5 v5.1.0
|
|
## explicit; go 1.12
|
|
github.com/godbus/dbus/v5
|
|
# github.com/moby/sys/mountinfo v0.6.2
|
|
## explicit; go 1.16
|
|
github.com/moby/sys/mountinfo
|
|
# github.com/mrunalp/fileutils v0.5.0
|
|
## explicit; go 1.13
|
|
github.com/mrunalp/fileutils
|
|
# github.com/opencontainers/runtime-spec v1.0.3-0.20220909204839-494a5a6aca78
|
|
## explicit
|
|
github.com/opencontainers/runtime-spec/specs-go
|
|
# github.com/opencontainers/selinux v1.10.2
|
|
## explicit; go 1.13
|
|
github.com/opencontainers/selinux/go-selinux
|
|
github.com/opencontainers/selinux/go-selinux/label
|
|
github.com/opencontainers/selinux/pkg/pwalk
|
|
github.com/opencontainers/selinux/pkg/pwalkdir
|
|
# github.com/russross/blackfriday/v2 v2.1.0
|
|
## explicit
|
|
github.com/russross/blackfriday/v2
|
|
# github.com/seccomp/libseccomp-golang v0.10.0
|
|
## explicit; go 1.14
|
|
github.com/seccomp/libseccomp-golang
|
|
# github.com/sirupsen/logrus v1.9.0
|
|
## explicit; go 1.13
|
|
github.com/sirupsen/logrus
|
|
github.com/sirupsen/logrus/hooks/test
|
|
# github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635
|
|
## explicit
|
|
github.com/syndtr/gocapability/capability
|
|
# github.com/urfave/cli v1.22.9
|
|
## explicit; go 1.11
|
|
github.com/urfave/cli
|
|
# github.com/vishvananda/netlink v1.1.0
|
|
## explicit; go 1.12
|
|
github.com/vishvananda/netlink
|
|
github.com/vishvananda/netlink/nl
|
|
# github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df
|
|
## explicit; go 1.12
|
|
github.com/vishvananda/netns
|
|
# golang.org/x/net v0.0.0-20201224014010-6772e930b67b
|
|
## explicit; go 1.11
|
|
golang.org/x/net/bpf
|
|
# golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec
|
|
## explicit; go 1.17
|
|
golang.org/x/sys/execabs
|
|
golang.org/x/sys/internal/unsafeheader
|
|
golang.org/x/sys/unix
|
|
golang.org/x/sys/windows
|
|
# google.golang.org/protobuf v1.28.1
|
|
## explicit; go 1.11
|
|
google.golang.org/protobuf/encoding/prototext
|
|
google.golang.org/protobuf/encoding/protowire
|
|
google.golang.org/protobuf/internal/descfmt
|
|
google.golang.org/protobuf/internal/descopts
|
|
google.golang.org/protobuf/internal/detrand
|
|
google.golang.org/protobuf/internal/encoding/defval
|
|
google.golang.org/protobuf/internal/encoding/messageset
|
|
google.golang.org/protobuf/internal/encoding/tag
|
|
google.golang.org/protobuf/internal/encoding/text
|
|
google.golang.org/protobuf/internal/errors
|
|
google.golang.org/protobuf/internal/filedesc
|
|
google.golang.org/protobuf/internal/filetype
|
|
google.golang.org/protobuf/internal/flags
|
|
google.golang.org/protobuf/internal/genid
|
|
google.golang.org/protobuf/internal/impl
|
|
google.golang.org/protobuf/internal/order
|
|
google.golang.org/protobuf/internal/pragma
|
|
google.golang.org/protobuf/internal/set
|
|
google.golang.org/protobuf/internal/strs
|
|
google.golang.org/protobuf/internal/version
|
|
google.golang.org/protobuf/proto
|
|
google.golang.org/protobuf/reflect/protoreflect
|
|
google.golang.org/protobuf/reflect/protoregistry
|
|
google.golang.org/protobuf/runtime/protoiface
|
|
google.golang.org/protobuf/runtime/protoimpl
|