[GH-ISSUE #2476] General issues on CI #1637

Closed
opened 2026-10-15 04:21:40 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ghost on GitHub (Mar 21, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2476

IMPORTANT (edited)

  • I need a place to document general issues I see on CI
  • I can't do much about what I'll list here. Maybe someone else can and would like to.

  • I can't add a --make-charset test to CI.
    • it doesn't call format->done(). By design, my tests fail in case of a memory leak.
  • Keep TS tests short (if possible). strip is reasonable. rar is hulking (I already removed some very slow formats).
    • form=strip-opencl guesses: 1500 0:00:03:06 DONE [PASSED].
    • form=rar-opencl guesses: 130 0:00:01:54 DONE [PASSED]
    • .pot CHK:rar-opencl guesses: 130 0:00:00:44 DONE [PASSED] (130 val-pwd)
    • form=rar-opencl guesses: 297 0:00:06:20 DONE [PASSED]
    • .pot CHK:rar-opencl guesses: 297 0:00:04:44 DONE [PASSED] (297 val-pwd)

  • Formats failing
  • TS
form=openbsd-softraid             guesses:    4 -show=   3 0:00:00:00 DONE : Expected count(s) (4)(-show4)  [!!!FAILED3!!!  ret_val=0]
.pot CHK:openbsd-softraid         guesses:    0 -show=   0 N/A N/A : Expected count(s) (4)  [!!!FAILED4!!!   ret_val=0]  (0 val-pwd  1 inval-pwd)
  • "env": "TEST="fresh" ASAN="yes" BUILD_OPTS="--enable-memdbg --enable-werror" CCO="gcc""
Testing: DPAPImk, DPAPI masterkey file v1 and v2 [SHA1/MD4 PBKDF2-(SHA1/SHA512)-DPAPI-variant 3DES/AES256 256/256 AVX2 8x]... (2xOMP) 
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
  • RAW and salted SHA1
form=XXX-sha1-opencl           guesses:    0 -show=   0 N/A N/A : Expected count(s) (24)(-show24)  [!!!FAILED2!!! ret_val=35584 exited, return code 139]
  • TS internal
form=sl3-opencl                   guesses:    0 -show=   0 N/A N/A : Expected count(s) (1)(-show1)  [!!!FAILED2!!! ret_val=35584 exited, return code 139]
form=bcrypt                       guesses:   13 -show=  13 0:00:00:00 DONE : Expected count(s) (14)(-show14)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:bcrypt                   guesses:   12 -show=  13 0:00:00:00 DONE : Expected count(s) (14)  [!!!FAILED4!!!   ret_val=0]  (12 val-pwd  0 inval-pwd)

form=as400-ssha1                  guesses:   13 -show=  14 0:00:00:00 DONE : Expected count(s) (18)(-show18)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:as400-ssha1              guesses:    9 -show=  14 0:00:00:00 DONE : Expected count(s) (18)  [!!!FAILED4!!!   ret_val=0]  (9 val-pwd  0 inval-pwd)

form=pbkdf2-hmac-md4              guesses:   14 -show=  13 0:00:00:00 DONE : Expected count(s) (14)(-show14)  [!!!FAILED3!!!  ret_val=0]
.pot CHK:pbkdf2-hmac-md4          guesses:   13 -show=  13 0:00:00:00 DONE : Expected count(s) (14)  [!!!FAILED4!!!   ret_val=0]  (13 val-pwd  0 inval-pwd)

form=pbkdf2-hmac-md5              guesses:   12 -show=  11 0:00:00:00 DONE : Expected count(s) (12)(-show12)  [!!!FAILED3!!!  ret_val=0]
.pot CHK:pbkdf2-hmac-md5          guesses:   11 -show=  11 0:00:00:00 DONE : Expected count(s) (12)  [!!!FAILED4!!!   ret_val=0]  (11 val-pwd  0 inval-pwd)

form=ssh-ng                       guesses:    9 -show=   1 0:00:00:00 DONE : Expected count(s) (7)(-show7)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:ssh-ng                   guesses:    1 0:00:00:00 DONE  [PASSED] (1 val-pwd)

form=pbkdf2-hmac-md4-opencl       guesses:   14 -show=  13 0:00:00:00 DONE : Expected count(s) (14)(-show14)  [!!!FAILED3!!!  ret_val=0]
.pot CHK:pbkdf2-hmac-md4-opencl   guesses:   13 -show=  13 0:00:00:00 DONE : Expected count(s) (14)  [!!!FAILED4!!!   ret_val=0]  (13 val-pwd  0 inval-pwd)

form=pbkdf2-hmac-md5-opencl       guesses:   12 -show=  11 0:00:00:00 DONE : Expected count(s) (12)(-show12)  [!!!FAILED3!!!  ret_val=0]
.pot CHK:pbkdf2-hmac-md5-opencl   guesses:   11 -show=  11 0:00:00:00 DONE : Expected count(s) (12)  [!!!FAILED4!!!   ret_val=0]  (11 val-pwd  0 inval-pwd)

form=bcrypt-opencl                guesses:   12 -show=  11 0:00:00:00 DONE : Expected count(s) (14)(-show14)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:bcrypt-opencl            guesses:   10 -show=  11 0:00:00:00 DONE : Expected count(s) (14)  [!!!FAILED4!!!   ret_val=0]  (10 val-pwd  0 inval-pwd)

form=descrypt-opencl              guesses:    0 -show=   0 N/A N/A : Expected count(s) (6)(-show6)  [!!!FAILED2!!! ret_val=35584 exited, return code 139]

form=gpg-opencl                   guesses:   10 -show=  10 0:00:00:02 DONE : Expected count(s) (16)(-show16)  [!!!FAILED1!!!  ret_val=0]
.pot CHK:gpg-opencl               guesses:    4 0:00:00:00 DONE  [PASSED] (4 val-pwd)

form=krb5pa-md5-opencl            guesses:    0 -show=   0 N/A N/A : Expected count(s) (9)(-show9)  [!!!FAILED2!!! ret_val=35584 exited, return code 139]

form=mscash-opencl                guesses:    0 -show=   0 N/A N/A : Expected count(s) (9)(-show9)  [!!!FAILED2!!! ret_val=35584 exited, return code 139]

form=nt-opencl                    guesses:   44 0:00:00:00 DONE  [PASSED]
.pot CHK:nt-opencl                guesses:    0 -show=   0 N/A N/A : Expected count(s) (44)  [!!!FAILED4!!!   ret_val=0]  (0 val-pwd  1 inval-pwd)

form=ntlmv2-opencl                guesses:    0 -show=   0 N/A N/A : Expected count(s) (10)(-show10)  [!!!FAILED2!!! ret_val=35584 exited, return code 139]

form=o5logon-opencl               guesses:    5 0:00:00:00 DONE  [PASSED]
.pot CHK:o5logon-opencl           guesses:    0 -show=   0 N/A N/A : Expected count(s) (5)  [!!!FAILED4!!!   ret_val=0]  (0 val-pwd  1 inval-pwd)
  • Since 2017-12 mscash2 is not robust
Testing: mscash2, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 128/128 AVX 4x2]... (2xOMP) FAILED (get_key(0))
Testing: mscash2, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 128/128 AVX 4x2]... (2xOMP) FAILED (cmp_all(64))
  • Disable all buggy formats.
    • Bcrypt + Scrypt + FILES="pbkdf2-hmac-md4_fmt_plug.c pbkdf2-hmac-md5_fmt_plug.c $CL/opencl_pbkdf2_hmac_md4_fmt_plug.c
      $CL/opencl_pbkdf2_hmac_md5_fmt_plug.c $CL/opencl_bf_fmt_plug.c $CL/opencl_DES_fmt_plug.c
      $CL/opencl_DES_bs* $CL/opencl_gpg_fmt_plug.c $CL/opencl_krb5pa-md5_fmt_plug.c
      $CL/opencl_mscash2_fmt_plug.c $CL/opencl_nt_fmt_plug.c $CL/opencl_ntlmv2_fmt_plug.c
      $CL/opencl_o5logon_fmt_plug.c $CL/opencl_rawmd5_fmt_plug.c $CL/opencl_rawmd4_fmt_plug.c
      $CL/opencl_xsha512_fmt_plug.c $CL/opencl_mysqlsha1_fmt_plug.c $CL/opencl_mscash_fmt_plug.c
      openbsdsoftraid_fmt_plug.c dpapimk_fmt_plug.c $CL/opencl_sl3_fmt_plug.c
      $CL/opencl_rawsha1_fmt_plug.c $CL/opencl_salted_sha_fmt_plug.c $CL/opencl_bitlocker_fmt_plug.c
      mscash2_fmt_plug.c $CL/opencl_keepass_fmt_plug.c monero_fmt_plug.c iwork_fmt_plug.c ethereum_fmt_plug.c
      dmg_fmt_plug.c adxcrypt_fmt_plug.c rawBLAKE2_512_fmt_plug.c encfs_fmt_plug.c gpg_fmt_plug.c
      $CL/opencl_encfs_fmt_plug.c $CL/opencl_wpapsk_fmt_plug.c $CL/src/opencl_wpapmk_fmt_plug.c
      racf_kdfaes_fmt_plug.c HDAA_fmt_plug.c dmg_fmt_plug.c django_scrypt_fmt_plug.c multibit_fmt_plug.c"
Originally created by @ghost on GitHub (Mar 21, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2476 ### IMPORTANT (edited) - I need a place to document general issues I see on CI - I can't do much about what I'll list here. Maybe someone else can and would like to. **** - [ ] I can't add a `--make-charset` test to CI. - it doesn't call format->done(). By design, my tests fail in case of a memory leak. - [ ] Keep TS tests short (if possible). strip is reasonable. rar is hulking (I already removed some very slow formats). - `form=strip-opencl guesses: 1500 0:00:03:06 DONE [PASSED].` - `form=rar-opencl guesses: 130 0:00:01:54 DONE [PASSED]` - `.pot CHK:rar-opencl guesses: 130 0:00:00:44 DONE [PASSED] (130 val-pwd)` - `form=rar-opencl guesses: 297 0:00:06:20 DONE [PASSED]` - `.pot CHK:rar-opencl guesses: 297 0:00:04:44 DONE [PASSED] (297 val-pwd)` **** - [ ] Formats failing - TS ``` form=openbsd-softraid guesses: 4 -show= 3 0:00:00:00 DONE : Expected count(s) (4)(-show4) [!!!FAILED3!!! ret_val=0] .pot CHK:openbsd-softraid guesses: 0 -show= 0 N/A N/A : Expected count(s) (4) [!!!FAILED4!!! ret_val=0] (0 val-pwd 1 inval-pwd) ``` - "env": "TEST=\"fresh\" ASAN=\"yes\" BUILD_OPTS=\"--enable-memdbg --enable-werror\" CCO=\"gcc\"" ``` Testing: DPAPImk, DPAPI masterkey file v1 and v2 [SHA1/MD4 PBKDF2-(SHA1/SHA512)-DPAPI-variant 3DES/AES256 256/256 AVX2 8x]... (2xOMP) No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself. ``` - RAW and salted SHA1 ``` form=XXX-sha1-opencl guesses: 0 -show= 0 N/A N/A : Expected count(s) (24)(-show24) [!!!FAILED2!!! ret_val=35584 exited, return code 139] ``` - TS internal ``` form=sl3-opencl guesses: 0 -show= 0 N/A N/A : Expected count(s) (1)(-show1) [!!!FAILED2!!! ret_val=35584 exited, return code 139] ``` ``` form=bcrypt guesses: 13 -show= 13 0:00:00:00 DONE : Expected count(s) (14)(-show14) [!!!FAILED1!!! ret_val=0] .pot CHK:bcrypt guesses: 12 -show= 13 0:00:00:00 DONE : Expected count(s) (14) [!!!FAILED4!!! ret_val=0] (12 val-pwd 0 inval-pwd) form=as400-ssha1 guesses: 13 -show= 14 0:00:00:00 DONE : Expected count(s) (18)(-show18) [!!!FAILED1!!! ret_val=0] .pot CHK:as400-ssha1 guesses: 9 -show= 14 0:00:00:00 DONE : Expected count(s) (18) [!!!FAILED4!!! ret_val=0] (9 val-pwd 0 inval-pwd) form=pbkdf2-hmac-md4 guesses: 14 -show= 13 0:00:00:00 DONE : Expected count(s) (14)(-show14) [!!!FAILED3!!! ret_val=0] .pot CHK:pbkdf2-hmac-md4 guesses: 13 -show= 13 0:00:00:00 DONE : Expected count(s) (14) [!!!FAILED4!!! ret_val=0] (13 val-pwd 0 inval-pwd) form=pbkdf2-hmac-md5 guesses: 12 -show= 11 0:00:00:00 DONE : Expected count(s) (12)(-show12) [!!!FAILED3!!! ret_val=0] .pot CHK:pbkdf2-hmac-md5 guesses: 11 -show= 11 0:00:00:00 DONE : Expected count(s) (12) [!!!FAILED4!!! ret_val=0] (11 val-pwd 0 inval-pwd) form=ssh-ng guesses: 9 -show= 1 0:00:00:00 DONE : Expected count(s) (7)(-show7) [!!!FAILED1!!! ret_val=0] .pot CHK:ssh-ng guesses: 1 0:00:00:00 DONE [PASSED] (1 val-pwd) form=pbkdf2-hmac-md4-opencl guesses: 14 -show= 13 0:00:00:00 DONE : Expected count(s) (14)(-show14) [!!!FAILED3!!! ret_val=0] .pot CHK:pbkdf2-hmac-md4-opencl guesses: 13 -show= 13 0:00:00:00 DONE : Expected count(s) (14) [!!!FAILED4!!! ret_val=0] (13 val-pwd 0 inval-pwd) form=pbkdf2-hmac-md5-opencl guesses: 12 -show= 11 0:00:00:00 DONE : Expected count(s) (12)(-show12) [!!!FAILED3!!! ret_val=0] .pot CHK:pbkdf2-hmac-md5-opencl guesses: 11 -show= 11 0:00:00:00 DONE : Expected count(s) (12) [!!!FAILED4!!! ret_val=0] (11 val-pwd 0 inval-pwd) form=bcrypt-opencl guesses: 12 -show= 11 0:00:00:00 DONE : Expected count(s) (14)(-show14) [!!!FAILED1!!! ret_val=0] .pot CHK:bcrypt-opencl guesses: 10 -show= 11 0:00:00:00 DONE : Expected count(s) (14) [!!!FAILED4!!! ret_val=0] (10 val-pwd 0 inval-pwd) form=descrypt-opencl guesses: 0 -show= 0 N/A N/A : Expected count(s) (6)(-show6) [!!!FAILED2!!! ret_val=35584 exited, return code 139] form=gpg-opencl guesses: 10 -show= 10 0:00:00:02 DONE : Expected count(s) (16)(-show16) [!!!FAILED1!!! ret_val=0] .pot CHK:gpg-opencl guesses: 4 0:00:00:00 DONE [PASSED] (4 val-pwd) form=krb5pa-md5-opencl guesses: 0 -show= 0 N/A N/A : Expected count(s) (9)(-show9) [!!!FAILED2!!! ret_val=35584 exited, return code 139] form=mscash-opencl guesses: 0 -show= 0 N/A N/A : Expected count(s) (9)(-show9) [!!!FAILED2!!! ret_val=35584 exited, return code 139] form=nt-opencl guesses: 44 0:00:00:00 DONE [PASSED] .pot CHK:nt-opencl guesses: 0 -show= 0 N/A N/A : Expected count(s) (44) [!!!FAILED4!!! ret_val=0] (0 val-pwd 1 inval-pwd) form=ntlmv2-opencl guesses: 0 -show= 0 N/A N/A : Expected count(s) (10)(-show10) [!!!FAILED2!!! ret_val=35584 exited, return code 139] form=o5logon-opencl guesses: 5 0:00:00:00 DONE [PASSED] .pot CHK:o5logon-opencl guesses: 0 -show= 0 N/A N/A : Expected count(s) (5) [!!!FAILED4!!! ret_val=0] (0 val-pwd 1 inval-pwd) ``` - Since 2017-12 mscash2 is not robust ``` Testing: mscash2, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 128/128 AVX 4x2]... (2xOMP) FAILED (get_key(0)) Testing: mscash2, MS Cache Hash 2 (DCC2) [PBKDF2-SHA1 128/128 AVX 4x2]... (2xOMP) FAILED (cmp_all(64)) ``` - [x] Disable all buggy formats. - Bcrypt + Scrypt + FILES="pbkdf2-hmac-md4_fmt_plug.c pbkdf2-hmac-md5_fmt_plug.c $CL/opencl_pbkdf2_hmac_md4_fmt_plug.c \ $CL/opencl_pbkdf2_hmac_md5_fmt_plug.c $CL/opencl_bf_fmt_plug.c $CL/opencl_DES_fmt_plug.c \ $CL/opencl_DES_bs* $CL/opencl_gpg_fmt_plug.c $CL/opencl_krb5pa-md5_fmt_plug.c \ $CL/opencl_mscash2_fmt_plug.c $CL/opencl_nt_fmt_plug.c $CL/opencl_ntlmv2_fmt_plug.c \ $CL/opencl_o5logon_fmt_plug.c $CL/opencl_rawmd5_fmt_plug.c $CL/opencl_rawmd4_fmt_plug.c \ $CL/opencl_xsha512_fmt_plug.c $CL/opencl_mysqlsha1_fmt_plug.c $CL/opencl_mscash_fmt_plug.c \ openbsdsoftraid_fmt_plug.c dpapimk_fmt_plug.c $CL/opencl_sl3_fmt_plug.c \ $CL/opencl_rawsha1_fmt_plug.c $CL/opencl_salted_sha_fmt_plug.c $CL/opencl_bitlocker_fmt_plug.c \ mscash2_fmt_plug.c $CL/opencl_keepass_fmt_plug.c monero_fmt_plug.c iwork_fmt_plug.c ethereum_fmt_plug.c \ dmg_fmt_plug.c adxcrypt_fmt_plug.c rawBLAKE2_512_fmt_plug.c encfs_fmt_plug.c gpg_fmt_plug.c \ $CL/opencl_encfs_fmt_plug.c $CL/opencl_wpapsk_fmt_plug.c $CL/src/opencl_wpapmk_fmt_plug.c \ racf_kdfaes_fmt_plug.c HDAA_fmt_plug.c dmg_fmt_plug.c django_scrypt_fmt_plug.c multibit_fmt_plug.c"
Author
Owner

@magnumripper commented on GitHub (Apr 24, 2017):

The RAR tests could be fixed similar to how we sped up WPA-PSK by sorting salts by ESSID and re-use the iterated hash for same-salt (as in same ESSID in that case and same RAR salt in this case). It wont (normally) speed anything up IRL but it could be worthwhile anyway.

<!-- gh-comment-id:296835251 --> @magnumripper commented on GitHub (Apr 24, 2017): The RAR tests could be fixed similar to how we sped up WPA-PSK by sorting salts by ESSID and re-use the iterated hash for same-salt (as in same ESSID in that case and same RAR salt in this case). It wont (normally) speed anything up IRL but it could be worthwhile anyway.
Author
Owner

@ghost commented on GitHub (Dec 15, 2018):

Bug closed because it:

  • Low Priority - They have a tendency to become high priority if enough of the users complain (the -33 OpenCL bug, for example).

  • Business Priority - Obsolete hardware and software. Hardware nobody owns, etc.

  • WontFix - Covers all the reasons we chose to close the bug without taking action (can't repro, working as intended, obsolete).

<!-- gh-comment-id:447585625 --> @ghost commented on GitHub (Dec 15, 2018): Bug closed because it: * **Low Priority** - They have a tendency to become high priority if enough of the users complain (the -33 OpenCL bug, for example). * **Business Priority** - Obsolete hardware and software. Hardware nobody owns, etc. * **WontFix** - Covers all the reasons we chose to close the bug without taking action (can't repro, working as intended, obsolete).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1637
No description provided.