An off-by-one bug causes this access to happen relative to REG_I0 rather
than REG_L0, leading to an invalid memory access (trapped by DTrace, so
no undefined behaviour is incurred, only a spurious ERROR firing).
Orabug:
22602870
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Acked-by: Kris Van Hees <kris.van.hees@oracle.com>
DTRACE_CPUFLAG_SET(CPU_DTRACE_NOFAULT);
- if (reg < REG_L7)
+ if (reg <= REG_L7)
val = dtrace_fulword(&rw->locals[reg - REG_L0]);
else
val = dtrace_fulword(&rw->locals[reg - REG_I0]);