]> Cypherpunks repositories - gostls13.git/commit
test: workaround SIGILL on issue11656 on aix
authorPaul E. Murphy <murp@ibm.com>
Mon, 10 Jan 2022 16:57:16 +0000 (10:57 -0600)
committerPaul Murphy <murp@ibm.com>
Tue, 11 Jan 2022 15:28:40 +0000 (15:28 +0000)
commitc7fa66179b51bc90612f564f2cb3afbc1b21d511
treed726030d416ea86e2b496cc931f0ef28ec047556
parent28f2869a0d8ae103e0a2aac7c68005d79099f1e1
test: workaround SIGILL on issue11656 on aix

For some reason, aix sometimes executes the bogus function body. This
should never happen as it lives in a no-execute section. It might be
a transient permission blip as the heap grows.

Add a small function to cleanup and synchronize the icache before
jumping to the bogus function to ensure it causes a panic, not SIGILL.

Fixes #44583

Change-Id: Iadca62d82bfb70fc62088705dac42a880a1208fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/377314
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
test/fixedbugs/issue11656.dir/asm.go [new file with mode: 0644]
test/fixedbugs/issue11656.dir/asm_generic.go [new file with mode: 0644]
test/fixedbugs/issue11656.dir/asm_ppc64.s [new file with mode: 0644]
test/fixedbugs/issue11656.dir/asm_ppc64le.s [new file with mode: 0644]
test/fixedbugs/issue11656.dir/issue11656.go [new file with mode: 0644]
test/fixedbugs/issue11656.go