Park, Geon (re-st)

AFL (AFL++) 디버깅 - setaffinity 문제와 해결 (bind_to_free_cpu에서 에러)

[log] 1 min read

문제 예시

 1> ./afl-fuzz (후략)
 2afl-fuzz 2.57b by <lcamtuf@google.com>
 3[+] You have 64 CPU cores and 2 runnable tasks (utilization: 3%).
 4[+] Try parallel jobs - see docs/parallel_fuzzing.txt.
 5[*] Checking CPU core loadout...
 6[+] Found a free CPU core, binding to #0.
 7
 8[-]  SYSTEM ERROR : sched_setaffinity failed
 9    Stop location : bind_to_free_cpu(), afl-fuzz.c:1134
10       OS message : Invalid argument

해결 이를 우회하기 위한 환경변수인 AFL_NO_AFFINITY를 설정한다.

AFL_NO_AFFINITY=1 ./afl-fuzz (후략)

이 때 예상 가능한 오류No instrumentation detected 등이 있다. => [[(방법) AFL - No instrumentation detected, 혹은 Fork server handshake fail|(방법) AFL - No instrumentation detected, 혹은 Fork server handshake fail]]

#How-To  #AFL 

<< Previous Post

|

Next Post >>

← 뒤로