]> Cypherpunks repositories - gostls13.git/commit
runtime: fix SIGILL in checkvectorfacility on s390x
authorMichael Munday <munday@ca.ibm.com>
Thu, 8 Sep 2016 23:27:24 +0000 (19:27 -0400)
committerMichael Munday <munday@ca.ibm.com>
Fri, 9 Sep 2016 00:34:22 +0000 (00:34 +0000)
commitd38d59ffb5d56c838b1ed7cc346b8d63398b5452
treef38df1597e7d85529145a46c3419e0bb8445b41f
parent14ff7cc94c4e167dbd80c96996b43f96bb9c17fb
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>
src/runtime/asm_s390x.s