krf
krf copied to clipboard
Add a mode for skipping faults during dynamic loading
One problem with faulting programs under KRF is that KRF might decide to inject a fault during the dynamic link/load phase, aborting ld-linux.so instead of the actual target image. This usually isn't helpful, since it doesn't indicate any mistakes in the target itself.
It should be possible to check the loaded program's name via the current task, probably via comm. We should use that (or whatever other field) to provide a configurable option for not faulting if it matches any of the common dynamic loader names.
This should also be possible on FreeBSD, but we can start with Linux-only.