openwall / openwall/john

wpapsk OpenCL formats failing on MacOS 10.15.1 with AMD Vega 64 GPU

Open
#4,141 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

portability
Dominant language
C
Stars
13.6k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

wpapsk OpenCL formats failing on MacOS 10.15.1:

./john --test --format:wpapsk-opencl --devices=3
Device 3: AMD Radeon RX Vega 64 Compute Engine
Benchmarking: wpapsk-opencl, WPA/WPA2/PMF/PMKID PSK [PBKDF2-SHA1 OpenCL]... FAILED (cmp_all(7))

./john --test --format:wpapsk-pmk-opencl --devices=3
Device 3: AMD Radeon RX Vega 64 Compute Engine
Benchmarking: wpapsk-pmk-opencl, WPA/WPA2/PMF/PMKID master key [MD5/SHA-1/SHA-2 OpenCL]... FAILED (cmp_all(3))

./john --list=build-info
Version: 1.9.0-jumbo-1+bleeding-577b8873e 2019-11-06 21:40:02 -0300
Build: darwin19.0.0 64-bit x86_64 AVX2 AC
SIMD: AVX2, interleaving: MD4:4 MD5:5 SHA1:2 SHA256:1 SHA512:1
CPU tests: AVX2
$JOHN is ./
Format interface version: 14
Max. number of reported tunable costs: 4
Rec file version: REC4
Charset file version: CHR3
CHARSET_MIN: 1 (0x01)
CHARSET_MAX: 255 (0xff)
CHARSET_LENGTH: 24
SALT_HASH_SIZE: 1048576
SINGLE_IDX_MAX: 2147483648
SINGLE_BUF_MAX: 4294967295
Effective limit: Number of salts vs. SingleMaxBufferSize
Max. Markov mode level: 400
Max. Markov mode password length: 30
clang version: 11.0.0 (clang-1100.0.33.8) (gcc 4.2.1 compatibility)
OpenCL headers version: 1.2
Crypto library: OpenSSL
OpenSSL library version: 01000210f (loaded: 01010008f)
OpenSSL 1.0.2p 14 Aug 2018 (loaded: OpenSSL 1.1.0h 27 Mar 2018)
GMP library version: 6.0.0
File locking: fcntl()
fseek(): fseek
ftell(): ftell
fopen(): fopen
memmem(): System's
times(2) sysconf(_SC_CLK_TCK) is 100
Using times(2) for timers, resolution 10 ms
HR timer claimed resolution 1 ns, observed 28 ns
Total physical host memory: 8 GB
Available physical host memory: 2941 MB

./john --list=opencl-devices
Platform #0 name: Apple, version: OpenCL 1.2 (Oct 2 2019 00:43:05)
Device #0 (1) name: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
Device vendor: Intel
Device type: CPU (LE)
Device version: OpenCL 1.2
Driver version: 1.1
Native vector widths: char 16, short 8, int 4, long 2
Preferred vector width: char 16, short 8, int 4, long 2
Global Memory: 8 GB
Global Memory Cache: 64 B
Local Memory: 32 KB (Global)
Constant Buffer size: 64 KB
Max memory alloc. size: 2 GB
Max clock (MHz): 1700
Profiling timer res.: 1 ns
Max Work Group Size: 1024
Parallel compute cores: 4
Speed index: 13600

Device #1 (2) name:     HD Graphics 5000
Device vendor:          Intel
Device type:            GPU (LE)
Device version:         OpenCL 1.2 
Driver version:         1.2(Oct 21 2019 21:24:19) 
Native vector widths:   char 1, short 1, int 1, long 1
Preferred vector width: char 1, short 1, int 1, long 1
Global Memory:          1536 MB
Local Memory:           64 KB (Local)
Constant Buffer size:   64 KB
Max memory alloc. size: 384 MB
Max clock (MHz):        1100
Profiling timer res.:   80 ns
Max Work Group Size:    512
Parallel compute cores: 40
Stream processors:      320  (40 x 8)
Speed index:            352000

Device #2 (3) name:     AMD Radeon RX Vega 64 Compute Engine
Device vendor:          AMD
Device type:            GPU (LE)
Device version:         OpenCL 1.2 
Driver version:         1.2 (Oct 21 2019 21:20:21) 
Native vector widths:   char 4, short 2, int 1, long 1
Preferred vector width: char 4, short 2, int 1, long 1
Global Memory:          8176 MB
Local Memory:           64 KB (Local)
Constant Buffer size:   64 KB
Max memory alloc. size: 2044 MB
Max clock (MHz):        1663
Profiling timer res.:   37 ns
Max Work Group Size:    256
Parallel compute cores: 64
Stream processors:      4096  (64 x 64)
Speed index:            6811648

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the two reported --test commands with --format:wpapsk-opencl and --format:wpapsk-pmk-opencl on the listed AMD Radeon RX Vega 64 device. Compare the failures with the --list=opencl-devices and --list=build-info output; done means both format self-tests pass on the affected MacOS/OpenCL setup.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.