mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #2215] sha512crypt-opencl fails self tests on NVidia hardware #1474
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#1474
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 @crioux on GitHub (Aug 16, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2215
SHA512 kernel is missing a few #pragma unpacks that are present on the SHA256 opencl kernel.
The result is my GTX 980 was failing self tests for sha512crypt-opencl. Adding the #pragma unpacks caused it to 'work for me'.
The patch for this is on my jtrdll fork, here:
github.com/L0phtCrack/jtrdll@6164472196@magnumripper commented on GitHub (Aug 16, 2016):
You mean unrolls. This really shouldn't make any device fail - it should only affect speed. Likely an nvidia driver bug.
Anyway we might want to merge your patch but I'm not sure whether it was left out on purpose or not. @claudioandre this is yours, right?
@magnumripper commented on GitHub (Aug 16, 2016):
Oh and @crioux what nvidia driver version did you use when it failed?
@crioux commented on GitHub (Aug 16, 2016):
Yea, oops, I meant unroll. An it's Nvidia driver version 368.81
@ghost commented on GitHub (Aug 16, 2016):
It is not unusual, in fact I saw this more than a couple of times.
It has to be a driver/compiler bug (I failed to see any other explanations in the past). Unexpected and undesired is NVIDIA 'misbehaving' at this point in time; I mean, everything should be stable now.
BTW: we need to take a look at how some detection code behaves while at new hardware. E.g.
@crioux, could you please test your fancy new boards using --verb=5 (or what you use on Windows)? Have you noticed anything else strange on new boards? Even the -list=opencl-devices output. In fact, if you are in the mood, I would like to see if everything is ok - I mean, a few tests with verbosity on.
Focus on this line / or post everything:
Thinking loud, maybe not important:
@crioux commented on GitHub (Aug 16, 2016):
GTX 980
@crioux commented on GitHub (Aug 16, 2016):
GTX 980 Test:
@crioux commented on GitHub (Aug 16, 2016):
GTX 980 Test, sha512crypt-opencl:
@ghost commented on GitHub (Aug 16, 2016):
Thank you. I'll look at the source code.
@ghost commented on GitHub (Aug 16, 2016):
The problems I've seen in -list=opencl-devices seems related to a different OpenCL initialization path used inside jtrdll. One/a few variables seems not initialized.
Anyway, this is not important or related to the errors seen in formats. Inside a format, everything seems ok.
Side note:
After a fast search, I've found that CUDA 8.0 RC version is "8.0.27. Maybe 8.0.0 could be too 'aggressive' in terms of quality.
I haven't looked at your patch, but I did compare sha256 and sha512 sources. Well, I removed some 'unrolling' because they did harm (some board and/or driver).
Can we merge it with an ifdef, for example, so you can keep it enable all the time?
Without a target (drivers and boards), we might (re) introduce a bug.
@magnumripper commented on GitHub (Aug 17, 2016):
As mentioned elsewhere, the CUDA version reported by an OpenCL driver doesn't correlate with a normal "CUDA version" (the latter is shown as "CUDA runtime version" when using --list=cuda-devices).
@magnumripper commented on GitHub (Aug 17, 2016):
@crioux unless the missing multiplier (cores per MP) is only missing in --list output and not in a real run, you really should fix that problem in your fork. Your "speed index" ends up being 128x too small or so, and that may lead to significant performance regression with eg. GPU side mask.
But like Claudio said, it's irrelevant for this issue.
@magnumripper commented on GitHub (Aug 23, 2016):
Fixed by #2221