diff options
author | Paul E. Murphy <murp@ibm.com> | 2021-01-08 15:43:54 -0600 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-01-12 13:21:09 -0800 |
commit | cfaaa6a1ca744c1a93fa08a3e7ab2a821383cac1 (patch) | |
tree | eabaaf501b9f494398078a5ea85c880de86cffd5 /libgo/go | |
parent | 5a9cfad2de92f2d65585774acb524b3fa17621b5 (diff) | |
download | gcc-cfaaa6a1ca744c1a93fa08a3e7ab2a821383cac1.zip gcc-cfaaa6a1ca744c1a93fa08a3e7ab2a821383cac1.tar.gz gcc-cfaaa6a1ca744c1a93fa08a3e7ab2a821383cac1.tar.bz2 |
syscall: ensure openat uses variadic libc wrapper
On powerpc64le, this caused a failure in TestUnshareUidGidMapping
due to stack corruption which resulted in a bogus execve syscall.
Use the existing c wrapper to ensure we respect the ppc abi for
variadic functions.
Fixes PR go/98610
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/282717
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/syscall/exec_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/syscall/exec_linux.go b/libgo/go/syscall/exec_linux.go index 3897581..0da6c96 100644 --- a/libgo/go/syscall/exec_linux.go +++ b/libgo/go/syscall/exec_linux.go @@ -20,7 +20,7 @@ import ( //mount(source *byte, target *byte, fstype *byte, flags _C_long, data *byte) _C_int //sysnb rawOpenat(dirfd int, pathname *byte, flags int, perm uint32) (fd int, err Errno) -//openat(dirfd _C_int, pathname *byte, flags _C_int, perm Mode_t) _C_int +//__go_openat(dirfd _C_int, pathname *byte, flags _C_int, perm Mode_t) _C_int // SysProcIDMap holds Container ID to Host ID mappings used for User Namespaces in Linux. // See user_namespaces(7). |