Upgrade containerd/cgroups to remove github.com/cilium/ebpf's fuzzer
The fuzzer is broken and it breaks OSS-Fuzz according to #7288. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
		
							
								
								
									
										28
									
								
								vendor/github.com/cilium/ebpf/internal/unix/types_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										28
									
								
								vendor/github.com/cilium/ebpf/internal/unix/types_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -4,7 +4,6 @@
 | 
			
		||||
package unix
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"bytes"
 | 
			
		||||
	"syscall"
 | 
			
		||||
 | 
			
		||||
	linux "golang.org/x/sys/unix"
 | 
			
		||||
@@ -23,6 +22,8 @@ const (
 | 
			
		||||
	ENODEV  = linux.ENODEV
 | 
			
		||||
	EBADF   = linux.EBADF
 | 
			
		||||
	E2BIG   = linux.E2BIG
 | 
			
		||||
	EFAULT  = linux.EFAULT
 | 
			
		||||
	EACCES  = linux.EACCES
 | 
			
		||||
	// ENOTSUPP is not the same as ENOTSUP or EOPNOTSUP
 | 
			
		||||
	ENOTSUPP = syscall.Errno(0x20c)
 | 
			
		||||
 | 
			
		||||
@@ -66,11 +67,16 @@ const (
 | 
			
		||||
	PERF_RECORD_SAMPLE       = linux.PERF_RECORD_SAMPLE
 | 
			
		||||
	AT_FDCWD                 = linux.AT_FDCWD
 | 
			
		||||
	RENAME_NOREPLACE         = linux.RENAME_NOREPLACE
 | 
			
		||||
	SO_ATTACH_BPF            = linux.SO_ATTACH_BPF
 | 
			
		||||
	SO_DETACH_BPF            = linux.SO_DETACH_BPF
 | 
			
		||||
	SOL_SOCKET               = linux.SOL_SOCKET
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Statfs_t is a wrapper
 | 
			
		||||
type Statfs_t = linux.Statfs_t
 | 
			
		||||
 | 
			
		||||
type Stat_t = linux.Stat_t
 | 
			
		||||
 | 
			
		||||
// Rlimit is a wrapper
 | 
			
		||||
type Rlimit = linux.Rlimit
 | 
			
		||||
 | 
			
		||||
@@ -191,18 +197,14 @@ func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags
 | 
			
		||||
	return linux.Renameat2(olddirfd, oldpath, newdirfd, newpath, flags)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func KernelRelease() (string, error) {
 | 
			
		||||
	var uname Utsname
 | 
			
		||||
	err := Uname(&uname)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	end := bytes.IndexByte(uname.Release[:], 0)
 | 
			
		||||
	release := string(uname.Release[:end])
 | 
			
		||||
	return release, nil
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Prlimit(pid, resource int, new, old *Rlimit) error {
 | 
			
		||||
	return linux.Prlimit(pid, resource, new, old)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Open(path string, mode int, perm uint32) (int, error) {
 | 
			
		||||
	return linux.Open(path, mode, perm)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Fstat(fd int, stat *Stat_t) error {
 | 
			
		||||
	return linux.Fstat(fd, stat)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										19
									
								
								vendor/github.com/cilium/ebpf/internal/unix/types_other.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								vendor/github.com/cilium/ebpf/internal/unix/types_other.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -23,6 +23,8 @@ const (
 | 
			
		||||
	ENODEV = syscall.ENODEV
 | 
			
		||||
	EBADF  = syscall.Errno(0)
 | 
			
		||||
	E2BIG  = syscall.Errno(0)
 | 
			
		||||
	EFAULT = syscall.EFAULT
 | 
			
		||||
	EACCES = syscall.Errno(0)
 | 
			
		||||
	// ENOTSUPP is not the same as ENOTSUP or EOPNOTSUP
 | 
			
		||||
	ENOTSUPP = syscall.Errno(0x20c)
 | 
			
		||||
 | 
			
		||||
@@ -67,6 +69,9 @@ const (
 | 
			
		||||
	PERF_RECORD_SAMPLE       = 9
 | 
			
		||||
	AT_FDCWD                 = -0x2
 | 
			
		||||
	RENAME_NOREPLACE         = 0x1
 | 
			
		||||
	SO_ATTACH_BPF            = 0x32
 | 
			
		||||
	SO_DETACH_BPF            = 0x1b
 | 
			
		||||
	SOL_SOCKET               = 0x1
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// Statfs_t is a wrapper
 | 
			
		||||
@@ -85,6 +90,8 @@ type Statfs_t struct {
 | 
			
		||||
	Spare   [4]int64
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
type Stat_t struct{}
 | 
			
		||||
 | 
			
		||||
// Rlimit is a wrapper
 | 
			
		||||
type Rlimit struct {
 | 
			
		||||
	Cur uint64
 | 
			
		||||
@@ -258,10 +265,14 @@ func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags
 | 
			
		||||
	return errNonLinux
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func KernelRelease() (string, error) {
 | 
			
		||||
	return "", errNonLinux
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Prlimit(pid, resource int, new, old *Rlimit) error {
 | 
			
		||||
	return errNonLinux
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Open(path string, mode int, perm uint32) (int, error) {
 | 
			
		||||
	return -1, errNonLinux
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func Fstat(fd int, stat *Stat_t) error {
 | 
			
		||||
	return errNonLinux
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user