runtime: fix SIGILL in checkvectorfacility on s390x
authorMichael Munday <munday@ca.ibm.com>
Thu, 8 Sep 2016 23:27:24 +0000 (19:27 -0400)
committerTianon Gravi <tianon@debian.org>
Mon, 3 Oct 2016 22:12:28 +0000 (22:12 +0000)
commite09817ef8875fc579cbba2daa686cbcf461d442e
treec4bc91ce31cbfe3acba93b019cb1f31aa040c3db
parentb7b3a783ea8407fb9bde04b5c467b4eef0f47e88
runtime: fix SIGILL in checkvectorfacility on s390x

STFLE does not necessarily write to all the double-words that are
requested. It is therefore necessary to clear the target memory
before calling STFLE in order to ensure that the facility list does
not contain false positives.

Fixes #17032.

Change-Id: I7bec9ade7103e747b72f08562fe57e6f091bd89f
Reviewed-on: https://go-review.googlesource.com/28850
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Gbp-Pq: Name cl-28850.patch
src/runtime/asm_s390x.s