Skip to content

OpenSSL 1.1.1l crash in Android10&Android11 because of _armv7_tick #17009

Closed

Description

@Superpengun

hello,
i meet a crashreport in Android10&Android11, used openssl1.1.1g

signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr b8374da6
r0 c0000000 r1 ffbc069c r2 00000030 r3 ac153a50
r4 b0056c98 r5 b0056c98 r6 c1385a40 r7 ffbc0678
r8 c01df900 r9 bbe899f0 10 00000000 fp bbe8998c
ip b84e8614 sp ffbc0658 lr b83beedf pc b8374da6 cpsr a0010030
d0 0000000000000000 d1 0000000000000000
d2 0000000000000000 d3 0000000000000000
d4 0c0f0e0d0c0f0e0d d5 0c0f0e0d0c0f0e0d
d6 393c2fbf0852c8ab d7 04ad85c7bc96b0fe
d8 0000000000000000 d9 0000000000000000
d10 0000000000000000 d11 0000000000000000
d12 0000000000000000 d13 0000000000000000
d14 0000000000000000 d15 0000000000000000
d16 0db0718126b66819 d17 66c8fdb894aa091d
d18 0000000000000000 d19 646120bf00000000
d20 6c33e8146c33e814 d21 6c33e8146c33e814
d22 104ebefa628ed237 d23 0706a1ed025962ab
d24 3e3e03da5834c88c d25 6f73b874a55d2057
d26 b49f2be5f34dd231 d27 cd781adfc15306a2
d28 5506597590c76791 d29 c9668a69a44a355d
d30 77af5718a85b4819 d31 1adcb4c55cc5bb24
scr 2800009d

#00  pc **000e4da6**  /data/app/com.barmak.client.fast-djFhc4R55vV2_LYzDj9o9A==/lib/arm/libhci-sys.so
#01  pc 0012eedf  /data/app/com.barmak.client.fast-djFhc4R55vV2_LYzDj9o9A==/lib/arm/libhci-sys.so
--- --- ---
00 pc 000e4da6  /data/app/com.barmak.client.fast-djFhc4R55vV2_LYzDj9o9A==/lib/arm/libhci-sys.so

the address point to _armv7_tick in libhci-sys.so , an issue reported before issues/9498
it seems that update to 1.1.1l can solve it . but it reported again
Android 10,level 29
ROM Oppo/COLOROS
arme-v7a

Activity

  1. added
    issue: bug report
    on Nov 11, 2021
  2. Superpengun commented on Nov 11, 2021

    @Superpengun
    Author

    it occured in oppo phones like oppo PADM00, PACM00
    all of them are in Android 10,level 29
    ROM is Oppo/COLOROS
    armeabi-v7a

  3. added
    branch: 1.1.1
    help wanted
    triaged: bug
    and removed
    issue: bug report
    on Nov 11, 2021
  4. xtkoba commented on Nov 12, 2021

    @xtkoba
    Contributor

    First it should be clarified that the "fix" for #9498, namely #15870, does NOT fix the issue for _armv7_tick, because in crypto/armcap.c the SIGILL check for _armv7_tick is executed regardless of the availability of getauxval:

        /* Things that getauxval didn't tell us */
        if (sigsetjmp(ill_jmp, 1) == 0) {
            _armv7_tick();
            OPENSSL_armcap_P |= ARMV7_TICK;
        }
  5. xtkoba commented on Nov 13, 2021

    @xtkoba
    Contributor

    See also #14838

  6. marler8997 commented on Jan 20, 2022

    @marler8997

    Would it be possible for you to test if #17555 solves the issue? It looks like armv7_tick is clobbering the r1 register and that PR modifes the return type to be uint64_t so the compiler knows it's overwrriten.

  7. t8m commented on Feb 22, 2024

    @t8m
    Member

    The version 1.1.1 is not supported anymore. Closing. If this is still an issue with currently supported releases, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 1.1.1help wantedtriaged: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions