intel / ccc-linux-guest-hardening

Linux Security Hardening for Confidential Compute
https://intel.github.io/ccc-linux-guest-hardening-docs
MIT License
65 stars 13 forks source link

Campaign workflow discussion #39

Open il-steffen opened 1 year ago

il-steffen commented 1 year ago

Meta-issue to track some open issues / discussion points from campaign automation PR

il-steffen commented 1 year ago
Launching kAFL with workdir /home/steffens/data/campaign-2022-10-19-test-pipeline/BPH_HANDLE_CONTROL_MESSAGE/workdir_8z9no8xn..                                                                                                                                                                                                
[...]                                                                                                                                       
  File "/home/steffens/ccc/kafl/fuzzer/kafl_fuzzer/manager/communicator.py", line 30, in __init__                                                                                                                                                                                                                              
    self.listener = Listener(self.address, 'AF_UNIX', backlog=1000)                                                                                                                                                                                                                                                            
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 448, in __init__                                                                                                                                                                                                                                               
    self._listener = SocketListener(address, family, backlog)                                                                                                                                                                                                                                                                  
  File "/usr/lib/python3.8/multiprocessing/connection.py", line 591, in __init__                                                                                                                                                                                                                                               
    self._socket.bind(address)                                                 
OSError: AF_UNIX path too long

(Longer term, the sockets + named shm files used by kafl/qemu should be separated from the workdir..)

il-steffen commented 1 year ago
il-steffen commented 1 year ago

pipeline.py --use-fast-matcher 1 -p 16 causes 16*$(nproc) processes due to this:

https://github.com/intel/ccc-linux-guest-hardening/blob/d50c17787f5509d8933fbca7fcaaa8a656e13157/bkc/kafl/fuzz.sh#L348

Should use taskset to limit the child's visible nproc, or better run smatch directly?