Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8167595

AArch64: SEGV in stub code cipherBlockChaining_decryptAESCrypt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • hotspot
    • None
    • b143
    • aarch64


        Jtreg test jdk/test/com/sun/crypto/provider/Cipher/CTS/CTSMode.java
        failed with SIGSEGV on option "-Xcomp -XX:-TieredCompilation".

        The crash happens at stub code cipherBlockChaining_decryptAESCrypt.

        Checking the jdk source code CipherTextStealing.decryptFinal and its
        callee CipherBlockChaining.decrypt/implDecrypt, we can see that
        cipherLen which is passed to the stub code can be 0. The unexpected
        len_reg value makes the load from invalid address.

        The following patch could fix this issue:

        http://people.linaro.org/~ningsheng.jian/webrev/cbc-stub-fix/webrev.00/

        It aligns with the Java code implementation and passed JTreg tests. To
        make code consistent, I also update the encrypt part.

              aph Andrew Haley
              aph Andrew Haley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: