From: Ian Campbell Subject: [PATCH 2/2] arm: kill a guest which uses hvc with an immediate operand != XEN_HYPERCALL_TAG Date: Mon, 23 Jul 2012 13:32:40 +0000 Message-ID: <1343050361-14534-2-git-send-email-ian.campbell@citrix.com> References: <1343050342.5797.25.camel@zakaz.uk.xensource.com> <1343050361-14534-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1343050361-14534-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: tim@xen.org, Stefano Stabellini , Ian Campbell List-Id: xen-devel@lists.xenproject.org At best these guests are confused/broken and at worse they are malicious. Signed-off-by: Ian Campbell --- xen/arch/arm/traps.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index 52ab943..50b62c0 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -472,11 +472,7 @@ static void do_trap_hypercall(struct cpu_user_regs *regs, unsigned long iss) arm_hypercall_fn_t call = NULL; if ( iss != XEN_HYPERCALL_TAG ) - { - printk("%s %d: received an alien hypercall iss=%lx\n", __func__ , - __LINE__ , iss); - regs->r0 = -EINVAL; - } + domain_crash_synchronous(); if ( regs->r12 > ARRAY_SIZE(arm_hypercall_table) ) { -- 1.7.9.1