mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
a3d1dbc607
commit
e26fbaf024
1 file changed
+1
-6
@@ -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) )
|
||||
{
|
||||
|
||||