mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #1797] DEScrypt OpenCL cached kernel doesn't work? #1201
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#1201
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 @magnumripper on GitHub (Oct 3, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1797
Originally assigned to: @magnumripper on GitHub.
On OSX (
3d7c8cf)@sayan1an commented on GitHub (Oct 4, 2015):
I tried to replicate the issue using well's Intel HD graphics by forcing #define USE_BASIC_KERNEL 1 (see line 50, opencl_DES_fmt_plug.c).
Somehow, it doesn't use cached kernels when running second time and I don't have any control over using cached binaries as like any other format, it uses opencl_build_kernel().
@sayan1an commented on GitHub (Oct 4, 2015):
Also, devices using cached binaries behave normally forcing the same kernel as apple_devices. You should look into program_size and kernel_source in opencl_build_from_binary() and ensure they are not 0 and NULL.
@magnumripper commented on GitHub (Oct 4, 2015):
Yeah I'll try to narrow it down.
@magnumripper commented on GitHub (Oct 4, 2015):
Fixed. You introduced it in
57a6cce7, changing build_log from an array to alloced memory - but still using sizeof(build_log)...@magnumripper commented on GitHub (Oct 4, 2015):
I have no idea why only DEScrypt triggered the bug - it should be triggered by many formats and also not only for OSX.