DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[PATCH v2] powerpc: Disable kcov for slb routines.

From: Mahesh J Salgaonkar <hidden>
Date: 2019-03-05 12:08:42
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

From: Mahesh Salgaonkar <redacted>

The kcov instrumentation inside SLB routines causes duplicate SLB entries
to be added resulting into SLB multihit machine checks.
Disable kcov instrumentation on slb.o

Signed-off-by: Mahesh Salgaonkar <redacted>
Acked-by: Andrew Donnellan <redacted>
---
Change in v2:
- Add comment as requested by Andrew
---
 arch/powerpc/mm/Makefile |    3 +++
 1 file changed, 3 insertions(+)
diff --git a/arch/powerpc/mm/Makefile b/arch/powerpc/mm/Makefile
index d4d32e229ace..eb16449e694c 100644
--- a/arch/powerpc/mm/Makefile
+++ b/arch/powerpc/mm/Makefile
@@ -60,3 +60,6 @@ obj-$(CONFIG_PPC_MEM_KEYS)	+= pkeys.o
 # This is necessary for booting with kcov enabled on book3e machines
 KCOV_INSTRUMENT_tlb_nohash.o := n
 KCOV_INSTRUMENT_fsl_booke_mmu.o := n
+
+# Disable kcov instrumentation on sensitive code for book3s_64 machines
+KCOV_INSTRUMENT_slb.o := n
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help