Skip to content

[pull] master from golang:master#108

Merged
pull[bot] merged 6 commits into
trailofbits:masterfrom
golang:master
Jun 25, 2026
Merged

[pull] master from golang:master#108
pull[bot] merged 6 commits into
trailofbits:masterfrom
golang:master

Conversation

@pull

@pull pull Bot commented Jun 25, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

cherrymui and others added 6 commits June 25, 2026 07:51
Change-Id: Ica79417b43af8004dc15e4f1e114640b954247af
Reviewed-on: https://go-review.googlesource.com/c/go/+/794000
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Slightly rewrite some tests to make them portable.

Move AMD64-specific ones to simd_amd64_test.go.

Change-Id: Ib82f4806e1ae258f4201b98a8eaa15eecb67c71b
Reviewed-on: https://go-review.googlesource.com/c/go/+/794084
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
arm64_*_test.go is not the right naming convention. It should be
*_arm64_test.go.

Change-Id: I71b798e6b82c236483354a6de85561b2e244c99a
Reviewed-on: https://go-review.googlesource.com/c/go/+/794089
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
…nd constants

Currently, an out-of-bound constant index of GetElem or SetElem
can generate code that is failed to verify with the Wasm engine.
Fix it by handling out-of-bound constant the same way as dynamic
values.

Make GetElem/SetElem tests portable.

Change-Id: I0e36b48c2b020a24286c257ee2c778b0041993e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/794122
Reviewed-by: David Chase <drchase@google.com>
TryBot-Bypass: Cherry Mui <cherryyz@google.com>
For ELF check for the ELF NOBITS section type. Anything in NOBITS
is a BSS symbols.

For PE look for runtime.bss; for a Go program, anything runtime.bss
is a BSS symbol.

Fixes #77301

Change-Id: I15b9af4513a5eb0e8955014a12073c2b56bcefab
Reviewed-on: https://go-review.googlesource.com/c/go/+/739080
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
ReadDir("/dev/fd") on macOS fails during tests with EBADF.
There is a kernel bug where fstat(N) works but lstat("/dev/fd/N")
and fstatat(open("/dev/fd"), "N") both fail when N is a kqueue fd.
Treat EBADF the same way as ENOENT for purposes of continuing
the ReadDir loop. The effect will be that we don't report the open
kqueue fd, but at least we will report everything else.

While we are here, change the lstatat error path to include
the name being lstat'ed, even though it still has operation "fstatat".
This changes the error from:

    read_test.go:157: fstatat /dev/fd: bad file descriptor

to:

    read_test.go:157: fstatat /dev/fd/3: bad file descriptor

which is more helpful. It also more closely matches older
Go versions that failed with:

    read_test.go:157: lstat /dev/fd/3: bad file descriptor

Of course, with the EBADF workaround we should no longer
see any form of this message, but clean it up anyway.

For #80143.

Change-Id: If3e954b523f50d4c3d7046e5401c4b1a6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/794140
Reviewed-by: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
@pull pull Bot locked and limited conversation to collaborators Jun 25, 2026
@pull pull Bot added the ⤵️ pull label Jun 25, 2026
@pull pull Bot merged commit 39fb73b into trailofbits:master Jun 25, 2026
8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants