From 0f324a51ba1a4b234f8ce4337c8ff2326cd98759 Mon Sep 17 00:00:00 2001
From: Breno Leitao <brenohl@br.ibm.com>
Date: Tue, 16 Jan 2018 10:03:16 -0500
Subject: [PATCH 24/26] UBUNTU: SAUCE: powerpc/kernel: Define
 PACA_L1D_FLUSH_SIZE

CVE-2017-5754

Currently this backport is not compiling because PACA_L1D_FLUSH_SIZE is not
defined.

Signed-off-by: Breno Leitao <brenohl@br.ibm.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
---
 arch/powerpc/kernel/asm-offsets.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c
index a644245..bc24a0d 100644
--- a/arch/powerpc/kernel/asm-offsets.c
+++ b/arch/powerpc/kernel/asm-offsets.c
@@ -237,6 +237,7 @@ int main(void)
 	DEFINE(PACA_IN_MCE, offsetof(struct paca_struct, in_mce));
 	OFFSET(PACA_RFI_FLUSH_FALLBACK_AREA, paca_struct, rfi_flush_fallback_area);
 	OFFSET(PACA_EXRFI, paca_struct, exrfi);
+	OFFSET(PACA_L1D_FLUSH_SIZE, paca_struct, l1d_flush_size);
 	OFFSET(PACA_L1D_FLUSH_SETS, paca_struct, l1d_flush_size);
 #endif
 	DEFINE(PACAHWCPUID, offsetof(struct paca_struct, hw_cpu_id));
-- 
2.7.4

