]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: SAUCE: rfi-flush: Fix HRFI_TO_UNKNOWN
authorMichael Ellerman <mpe@ellerman.id.au>
Sun, 7 Jan 2018 10:52:36 +0000 (21:52 +1100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Thu, 11 Jan 2018 20:35:25 +0000 (18:35 -0200)
CVE-2017-5754

BugLink: http://bugs.launchpad.net/bugs/1742772
We forgot to expand the number of nops in HRFI_TO_UNKNOWN when we
expanded the number of nops. The result is we actually overwrite the
rfid with a nop, which is not good. Luckily this is only used in
denorm_done, which is not hit often.

Spotted by Ram.

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>
arch/powerpc/include/asm/exception-64s.h

index 5c93872aa32d4311b4bc5b84a589c94d92805f9a..dd4b299a7fb5b996536bac021eb53e4984abface 100644 (file)
 #define HRFI_TO_UNKNOWN                                                        \
        RFI_FLUSH_FIXUP_SECTION;                                        \
        nop;                                                            \
+       nop;                                                            \
+       nop;                                                            \
        hrfid;                                                          \
        b       hrfi_flush_fallback