arm: kill a guest which uses hvc with an immediate operand != XEN_HYPERCALL_TAG

At best these guests are confused/broken and at worse they are malicious. In
any case we don't know that they are expecting to handle a -errno style error.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Ian Campbell committed 2012-10-09 15:05:34 +01:00
1 parent a3d1dbc607
commit e26fbaf024
1 file changed
+1 -6
+1 -6
View File
@@ -475,12 +475,7 @@ static void do_trap_hypercall(struct cpu_user_regs *regs, unsigned long iss)
#endif
if ( iss != XEN_HYPERCALL_TAG )
{
printk("%s %d: received an alien hypercall iss=%lx\n", __func__ ,
__LINE__ , iss);
regs->r0 = -EINVAL;
return;
}
domain_crash_synchronous();
if ( regs->r12 >= ARRAY_SIZE(arm_hypercall_table) )
{
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.