From 838070d5f49f07fd562d5998915f6cd86e1d8be8 Mon Sep 17 00:00:00 2001 From: Wojciech Macek Date: Tue, 20 Feb 2018 06:38:55 +0000 Subject: [PATCH] PowerNV: Send SIGILL on HEA illegal instruction exception Currently Hypervisor Emulation Assistance interrupt is unhandled. Executing an undefined instruction in userland triggers kernel panic. Handle this the same way as Facility Unavailable Interrupt - send SIGILL signal to userspace. Submitted by: Michal Stanek Obtained from: Semihalf Reviewed by: nwhitehorn, pdk@semihalf.com, wma Sponsored by: IBM, QCM Technologies Differential revision: https://reviews.freebsd.org/D14437 --- sys/powerpc/powerpc/trap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c index 1719be75eb1d..613033dc2303 100644 --- a/sys/powerpc/powerpc/trap.c +++ b/sys/powerpc/powerpc/trap.c @@ -294,6 +294,7 @@ trap(struct trapframe *frame) break; case EXC_FAC: + case EXC_HEA: sig = SIGILL; ucode = ILL_ILLOPC; break;