JDK-8321215 : Incorrect x86 instruction encoding for VSIB addressing mode
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,17,21,22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • CPU: x86
  • Submitted: 2023-12-02
  • Updated: 2024-01-08
  • Resolved: 2023-12-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 22
11.0.23-oracleFixed 17.0.11-oracleFixed 21.0.3-oracleFixed 22 b27Fixed
Related Reports
Duplicate :  
Relates :  
Description
For instructions that use VSIB addressing mode (gather/scatter), the assembler incorrectly sets EVEX.X bit when the VSIB vector register is in the range XMM16 ... XMM23.
Comments
Fix request [11u] I backport this for parity with 11.0.23-oracle. Low risk, simple fix of assembler encoding. I had to resolve due to differences in the context in the same line. SAP nightly testing passed.
04-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2427 Date: 2024-01-03 12:16:56 +0000
03-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/67 Date: 2023-12-18 17:09:50 +0000
18-12-2023

[jdk17u-fix-request] Approval Request from sviswa7 This is a clean backport and not dependent on any other backport., A very small patch with changes to fix the wrong instruction encoding for VSIB addressing modes., Please approve.
05-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2014 Date: 2023-12-05 17:54:30 +0000
05-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/418 Date: 2023-12-05 16:40:55 +0000
05-12-2023

[jdk21u-fix-request] Approval Request from sviswa7 This is a clean backport and not dependent on any other backport., A very small patch with changes to fix the wrong instruction encoding for VSIB addressing modes., Please approve.
05-12-2023

Changeset: 027b5dbb Author: Sandhya Viswanathan <sviswanathan@openjdk.org> Date: 2023-12-05 16:35:36 +0000 URL: https://git.openjdk.org/jdk/commit/027b5dbb6a299e49d3dcbe67d529d6edc67f16d9
05-12-2023

[~shade], [~sviswanathan] Thanks for the updated information about the bug! ILW = Wrongly setting EVEX.X bit which leads to crashes, rare, possibly disable compilation of affected method or use UseAVX=2 = HLM = P3
05-12-2023

The problem was reported by Aurelian Tutuianu and Joel Knighton on panama-dev. Aleksey has given above the thread from Aurelian. Joel's thread on the same issue reported prior to this can be found at the link: https://mail.openjdk.org/pipermail/panama-dev/2023-October/020072.html.
05-12-2023

AFAICS, introduced by JDK-8205528.
04-12-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16957 Date: 2023-12-04 19:09:33 +0000
04-12-2023

I think it is from here: https://mail.openjdk.org/pipermail/panama-dev/2023-December/020156.html
04-12-2023

Hi [~sviswanathan], is that a recent regression? And do you have a reproducer which shows the problem?
04-12-2023