openwall / john

John the Ripper jumbo - advanced offline password cracker, which supports hundreds of hash and cipher types, and runs on many operating systems, CPUs, GPUs, and even some FPGAs
https://www.openwall.com/john/
Other
10.38k stars 2.11k forks source link

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

Open emwinkler opened 5 years ago

emwinkler commented 5 years ago

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
magnumripper commented 5 years ago

Confirmed: My MBPr 2019 works just fine with "CPU" device. It fails cmp_all(1) on WPA PMKID with the "Intel(R) UHD Graphics 630", and it fails cmp_all(7) on WPA PMF with the "AMD Radeon Pro Vega 20 Compute Engine". I'm working on it. The debugging involves throwing stones at it and see what sticks.

magnumripper commented 5 years ago

3235, #3435