-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erros when generating distance file #138
Comments
Hi @DigOrDog, Thank you for reporting the issue. I've never fuzzed LLVM using AFLGo, so perhaps the target is too large. The first thing you should do is ensure that you can fuzz LLVM using AFL. Best. |
Reading the error messages you get, the problem might just be the maximum allowed length of filenames. Check the limits with: getconf -a | grep -iE '\b(name_max|path_max)\b' on my machine:
So in your concrete example: echo -n 'cfg._ZN4llvm19TargetTransformInfo5ModelIN12_GLOBAL__N_19NoTTIImplEE27preferPredicateOverEpilogueEPNS_4LoopEPNS_8LoopInfoERNS_15ScalarEvolutionERNS_15AssumptionCacheEPNS_17TargetLibraryInfoEPNS_13DominatorTreeEPNS_25LoopVectorizationLegalityE.dot.smaller.dot' | wc -c
257 As far as I know, there is no easy way to increase this limit since it depends on the Linux kernel and file system driver. |
#138 (comment) $AFLGO/distance/gen_distance_fast.py $SUBJECT/build/bin $TMP_DIR llvm-dis. So, I'd like to ask if there is a solution to this problem.
|
Thank you for pointing out the root of this issue. I also wonder if this file name will have any impact on the AFLGo process. Hashing does seem like a very good solution. I'm not sure if it's feasible. |
Hi @strongcourage |
SETUP:
Steps To Reproduce
3.Set targets
Expected Behavoirs:
Actual Behavoirs:
The text was updated successfully, but these errors were encountered: