Commit 9fb6d750 authored by Michael Ellerman's avatar Michael Ellerman Committed by Marcelo Henrique Cerri

UBUNTU: SAUCE: rfi-flush: Use rfi-flush in printks

CVE-2017-5754

BugLink: http://bugs.launchpad.net/bugs/1742772Signed-off-by: default avatarMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
parent 2d8d8a24
...@@ -890,7 +890,7 @@ void __init setup_rfi_flush(enum l1d_flush_type types, bool enable) ...@@ -890,7 +890,7 @@ void __init setup_rfi_flush(enum l1d_flush_type types, bool enable)
u64 l1d_size = ppc64_caches.dsize; u64 l1d_size = ppc64_caches.dsize;
u64 limit = min(safe_stack_limit(), ppc64_rma_size); u64 limit = min(safe_stack_limit(), ppc64_rma_size);
pr_info("rfi-fixups: Using fallback displacement flush\n"); pr_info("rfi-flush: Using fallback displacement flush\n");
/* /*
* Align to L1d size, and size it at 2x L1d size, to * Align to L1d size, and size it at 2x L1d size, to
...@@ -920,10 +920,10 @@ void __init setup_rfi_flush(enum l1d_flush_type types, bool enable) ...@@ -920,10 +920,10 @@ void __init setup_rfi_flush(enum l1d_flush_type types, bool enable)
} }
if (types & L1D_FLUSH_ORI) if (types & L1D_FLUSH_ORI)
pr_info("rfi-fixups: Using ori type flush\n"); pr_info("rfi-flush: Using ori type flush\n");
if (types & L1D_FLUSH_MTTRIG) if (types & L1D_FLUSH_MTTRIG)
pr_info("rfi-fixups: Using mttrig type flush\n"); pr_info("rfi-flush: Using mttrig type flush\n");
enabled_flush_types = types; enabled_flush_types = types;
......
...@@ -151,7 +151,7 @@ void do_rfi_flush_fixups(enum l1d_flush_type types) ...@@ -151,7 +151,7 @@ void do_rfi_flush_fixups(enum l1d_flush_type types)
patch_instruction(dest + 2, instrs[2]); patch_instruction(dest + 2, instrs[2]);
} }
printk(KERN_DEBUG "rfi-fixups: patched %d locations\n", i); printk(KERN_DEBUG "rfi-flush: patched %d locations\n", i);
} }
#endif /* CONFIG_PPC_BOOK3S_64 */ #endif /* CONFIG_PPC_BOOK3S_64 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment