After reboot I cannot see the SGX errors in the log. The oldest lines are about the last reboot.
Does dmesg >> output.txt overwrite output.txt or add new lines to it?
dmesg | grep -v "kb_lock" >> output.txt