The do_sysreg case was missing a return, so it would increment PC and
inject the trap to the second instruction of the handler.
This is CVE-2014-5148 / XSA-103.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
master commit:
f2ae8bfa498831ee6343d672066b898d3cd73892
master date: 2014-08-12 15:38:01 +0200
hsr.bits & HSR_SYSREG_REGS_MASK);
#endif
inject_undef_exception(regs, sysreg.len);
+ return;
}
}