CVE-2017-5754
BugLink: http://bugs.launchpad.net/bugs/1742772
Since we now have three nops, we need to branch further to get over
the nops to the branch to the fallback flush.
Instead of putting the branch in slot 1 and branching by 8, put it in
0 and branch all the way to keep it simple.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
instrs[2] = 0x60000000; /* nop */
if (types & L1D_FLUSH_FALLBACK)
- /* b .+8 to fallback flush */
- instrs[1] = 0x48000008;
+ /* b .+16 to fallback flush */
+ instrs[0] = 0x48000010;
i = 0;
if (types & L1D_FLUSH_ORI) {