intel / ccc-linux-guest-hardening

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

Update documentation to explain how to get verbose output from guest log #105

Closed ereshetova closed 1 year ago

ereshetova commented 1 year ago

Documentation can have smth like:

  1. change qemu_append line to select the one with more debug (it is commented out by default) in bkc/kafl/kafl_config.yaml

  2. modify kafl.yaml in your local "data/test1/harness_name" to comment out "#log_crashes: True" and add "log_hprintf: True" .

  3. run with "fuzz.sh run build -p 2 --log-hprintf"

ereshetova commented 1 year ago

@tz0 could you please submit a PR to add a small section to https://github.com/intel/ccc-linux-guest-hardening#getting-started that is called smth like "Getting verbose output from the guest kernel". This is quite crucial for anyone who tries to debug anything with this setup.

tz0 commented 1 year ago

Hi @ereshetova, please see PR#112 for my draft. I think it would be better to place the section in the getting_started tutorial but I can change that if you prefer the other way.

ereshetova commented 1 year ago

The PR is merged, thank you Tao!