mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #1939] fmt_self_test is required for lm-opencl/mask #1290
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#1290
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 (Dec 7, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1939
Originally assigned to: @magnumripper on GitHub.
I noted that self-tests were always running even when i turned on 'skip-self-tests'. Yes, I know they are good hygeine and I should not turn them off, but in the case of LM-opencl, they are slow and impact performance. So I wanted to turn them off. I found that things acted differently when I did.
If I apply this patch, things stop working correctly with --skip-self-tests:
Specifically, without this patch, things work as expected:
But, with the patch (which only removes one call to fmt_self_test), this happens instead (after removing john.pot):
Note that it is skipping right past the iteration and going to 7 characters right away. Not sure what this has to do with the self test, but it seems awfully odd that dropping a call to fmt_self_test would change the cracking behavior.
@crioux commented on GitHub (Dec 7, 2015):
yes, i understand that fmt_self_tests INTERNALLY checks for FLG_NOTESTS, but it does so after it already does all the autotuning. The autotuning is performed more than once in this case, and that's what I'm trying to avoid. However, it would seem this code path is somehow required for correct behavior. Hence, it's not really the self test itself that is the problem, but some weird requirement that fmt_self_test is run in order to have things work at all. Not trying to understand this one right now without more context :)
@magnumripper commented on GitHub (Dec 7, 2015):
I believe the problem is in the format, not in core. I'm about to apply some heavy changes that make all these problems easier to fix, I just need to regression test it better.
@crioux commented on GitHub (Jun 3, 2016):
Another data point on this one. If you create a four character long LM password (such as 'AAAA'):
And then add that one word to a dictionary file, and run the following command line, it finds the password:
but with skip-self-tests, it does not.
@crioux commented on GitHub (Jun 3, 2016):
The weird part, is that for six and seven character long LM-opencl passwords, it seems to work. Not sure how that's a thing. If you use regular LM (no gpu), it works fine without self tests.
@magnumripper commented on GitHub (Aug 18, 2016):
This issue is obsolete. Latest code only calls reset() once if --skip-self-tests is used.