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, 12 Sep 2016 16:32:10 +0000 (16:32 +0000)
commite1b4a52766392952d8e791ac39aa88772ac4c719
tree88cdf4907c35da577e59696245359d3a6885e9c1
parent62a8d158159d097f0d05b40261b110132534e974
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