l4-sys: Enable FI in all config cases
Fix the problem that injection was never enabled if func_entry == filter_entry. Change-Id: Ifec64b6d1351e0857e568ca132cfed891f85aa62
This commit is contained in:
@ -89,7 +89,11 @@ void L4SysExperiment::collectInstructionTrace(fail::BPSingleListener* bp)
|
|||||||
bp->setWatchInstructionPointer(ANY_ADDR);
|
bp->setWatchInstructionPointer(ANY_ADDR);
|
||||||
|
|
||||||
map<address_t, unsigned> times_called_map;
|
map<address_t, unsigned> times_called_map;
|
||||||
bool injecting = false;
|
/* We run until the IP reaches func_entry. We will not
|
||||||
|
* reach the same IP again. So, if filter and func entry are
|
||||||
|
* equal, then we have to enable injections.
|
||||||
|
*/
|
||||||
|
bool injecting = conf.filter_entry == conf.func_entry;
|
||||||
|
|
||||||
while (bp->getTriggerInstructionPointer() != conf.func_exit) {
|
while (bp->getTriggerInstructionPointer() != conf.func_exit) {
|
||||||
fail::BaseListener *res = simulator.resume();
|
fail::BaseListener *res = simulator.resume();
|
||||||
|
|||||||
Reference in New Issue
Block a user