mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2135] Segfault with descrypt-opencl #1423
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1423
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomtastic on GitHub (May 13, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2135
Git clone as of : Fri 13 May 2016 15:45:01 BST
Complied with :
Build info :
OpenCL devices :
Segmentation fault under lldb :
@solardiz commented on GitHub (Aug 10, 2016):
The crash seen in this report is a NULL pointer dereference in the OpenCL so-called driver in code running on the CPU. Since the target device was the (embedded) GPU rather than CPU, this suggests to me it's more likely a bug in the driver rather than in our code. My reasoning is that our code is supposed to be run on the GPU, not on the CPU - well, except possibly for compile-time evaluation of constant expressions, but here we see the crash happen after a successful build of the kernel had completed (and in fact after it's been successfully self-tested, so it's not even the first invocation). It could also be a bug in our code other than the OpenCL kernel itself, causing improper use of OpenCL APIs or a memory overwrite. There are many possibilities here.
This CPU will likely run our non-OpenCL descrypt format much faster on its CPU cores, with AVX2, than it will run descrypt-opencl on the embedded GPU, even if/when whatever bug shows up here is fixed or goes away. Of course, you could run both at once, if it worked, and of course, it'd be nice to find and fix the bug regardless, but it's tough.
@solardiz commented on GitHub (Aug 10, 2016):
FWIW, descrypt-opencl works for me on Linux with HD 4600 (in i7-4770K), but as expected delivers performance several times lower than descrypt on the CPU cores does (with AVX2). It also works simultaneously with descrypt on the CPU, so the total performance for the chip is increased slightly compared to using the CPU cores alone. When running against 10 descrypt hashes with 10 different salts, I get these speeds (c/s): GPU: 5.8M, CPU OpenMP: 41M, CPU --fork=8: 5.6M*8 = 44.8M. So the embedded GPU adds only 11.5% for this format (on top of --fork=8's speed). Maybe Iris 6100 would add more, but probably not a lot more. (For some other formats, things are not as bad, e.g. for md5crypt using i7-4770K's embedded GPU adds ~30% on top of the CPU, or 1/4 of total cumulative speed.)
@solardiz commented on GitHub (Jun 9, 2024):
With no news on this in 8 years, it's not an issue we need to track.