mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1151] Stress-test: asan error #719
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#719
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 @loverszhaokai on GitHub (Mar 26, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1151
This bug is found by fuzzzing the options of John.
#1. Compile with asan
$ export ASAN_OPTIONS='abort_on_error=1'
$ AFL_USE_ASAN=1 AFL_HARDEN=1 ./configure --enable-asan && make -sj8
#2. Reproduce
$ ./john --stress-test=1
Will run 8 OpenMP threads
NOTE: This is an ASan debug build, speed will be lower than normal
Benchmarking: descrypt, traditional crypt(3) [DES 128/128 AVX-16]... (8xOMP) DONE
Many salts: 8880K c/s real, 1135K c/s virtual
Only one salt: 7372K c/s real, 930909 c/s virtual
Benchmarking: bsdicrypt, BSDI crypt(3) ("_J9..", 725 iterations) [DES 128/128 AVX-16]... (8xOMP) DONE
Many salts: 271714 c/s real, 34389 c/s virtual
Only one salt: 208896 c/s real, 29546 c/s virtual
Benchmarking: md5crypt, crypt(3)
1[MD5 128/128 AVX 12x]... (8xOMP) DONERaw: 32752 c/s real, 4239 c/s virtual
==115480== ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x000002c8c040
#0 0x7f207b70c33a (/usr/lib/x86_64-linux-gnu/libasan.so.0.0.0+0x1533a)
#1 0x7c0264 (/home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options/run/john+0x7c0264)
#2 0x429530 (/home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options/run/john+0x429530)
#3 0x74dca4 (/home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options/run/john+0x74dca4)
#4 0x736c7a (/home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options/run/john+0x736c7a)
#5 0x759d2c (/home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options/run/john+0x759d2c)
#6 0x75b23e (/home/zhaokai/WorkSpace/open_wall/JohnTheRipper_test_options/run/john+0x75b23e)
#7 0x7f2079f92ec4 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21ec4)
==115480== ABORTING
Aborted
$ asan_symbolize.py
#0 0x7f207b70c33a in __interceptor_free ??:?
@magnumripper commented on GitHub (Mar 26, 2015):
What version of gcc are you using? See #1125, you might need at least gcc-4.9 for proper operation with posix_memalign() although that is just a theory I had.
@loverszhaokai commented on GitHub (Mar 26, 2015):
@magnumripper gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1). And I will focus on #1125, thanks.
@magnumripper commented on GitHub (Mar 26, 2015):
Was there no output before this error? Your report suggests this happened immediately. If it did not, you should state so (eg "on second pass of format list, in format foobar" or "after running for seven hours" or something like that)
@magnumripper commented on GitHub (Mar 26, 2015):
Just FYI the --stress-test option is experimental and has known problems. For example, many formats still leak memory when tested like this. This issue is probably a real bug though (unless it's the "too old ASan" problem).
@loverszhaokai commented on GitHub (Mar 26, 2015):
@magnumripper Thanks, I will add it.
@magnumripper commented on GitHub (Mar 27, 2015):
This is the ASan bug