mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2022] Mask mode oddities #1360
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#1360
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 @ghost on GitHub (Feb 4, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2022
Originally assigned to: @magnumripper on GitHub.
This is a collection of things mask mode does that left me confused. No need to be errors and maybe a clarification will be good for everyone.
@magnumripper commented on GitHub (Oct 7, 2016):
This sounds like it could be a huge problem when restoring a job.
@magnumripper commented on GitHub (Oct 10, 2016):
...and perhaps an even worse problem when running node/fork. If different nodes ends up dividing work differently, and then apply the node/fork "I'm node x out of y" stuff, I guess things could go wrong. Even worse if such a job was then stopped and resumed, and nodes end up with yet another different selection.
I'm not 100% sure any of these situations is a problem, I just don't feel very good about this. And I have seen some occasions of forked resuming ending up completely wrong and "finishing" prematurely. I never understood why but this might be the explanation.
I tried to reproduce this today but failed. @claudioandre do you know some way to trigger this behavior? We should try to make the selection deterministic.
@ghost commented on GitHub (Oct 10, 2016):
Me too. I'm almost sure it was easy to see it happening.
My guess is that the selection improved since then.
@magnumripper commented on GitHub (Oct 10, 2016):
I'm pretty sure nothing of that has changed. It might be that it only happens in certain situations. I'll keep my eyes open.
@ghost commented on GitHub (Oct 12, 2016):
I'm not sure what I did in the first place. Thinking better, this 'mask selection' is based on:
That might be the explanation of what I saw in my old hardware. Anyway: I need to thing about what happens if one buys a new powerful GPU to replace his (old/weak) one: how restore/everything else will behave?
@sayan1an commented on GitHub (Oct 13, 2016):
Guys, mask_int_cand_target is your knob. So for same mask input, if you dont change this parameter, unless there is bug, you should see same task being sent to GPU. For beefier GPUs, this value is usually higher. So, yes resume won't work if you replace you GPU, since a new value for mask_int_cand_target is chosen by the format.
@magnumripper commented on GitHub (Oct 13, 2016):
Thanks for the input. I wonder if we could change the code without too much work so this no longer happens. I mean, regardless of what portion of mask is on CPU and which is on GPU, the resume file should read the same.
Another aspect of that: If starting a session with -format:nt and then stopping, then editing the session file to use nt-opencl instead, resuming should ideally work flawlessly (it does in all other cases I know of).
@magnumripper commented on GitHub (Oct 13, 2016):
A quick-fix for a subset of the problems would be to store mask_int_cand_target in the rec file and re-use it (completely ignoring changes in GPU speed) on resume. This is the least we should do.
In edge cases, even a different OC setting for same GPU could ruin resuming as it is now.
@magnumripper commented on GitHub (Oct 13, 2016):
Here's a patch for that
The problem is this is too late. When old value is restored from session file, new value has already been used to set things up incorrectly.
@sayan1an commented on GitHub (Oct 13, 2016):
I am not absolutely sure but I think mask_int_cand_target is also changed during benchmark. So, even when you have same GPU, mask_int_cand_target could change from one run to another.
@magnumripper commented on GitHub (Oct 13, 2016):
No it's not that bad. The formats set it, eg. nt-opencl sets it to
opencl_speed_index(gpu_id) / 300. Then nothing else will change it.@magnumripper commented on GitHub (Mar 15, 2018):
We may want to open a separate issue for the "resume on GPU with different speed" case.
As far as I understand, it can be ignored but then you'll waste performance in
set_key().@ghost commented on GitHub (Dec 15, 2018):
Bug closed because it:
Low Priority - They have a tendency to become high priority if enough of the users complain.
WontFix - Covers all the reasons we chose to close the bug without taking action (can't repro, working as intended, obsolete).