Skip to contentSkip to conversation

arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_getinfo

PATCH In review Jan Beulich 2 participants 2 messages Jun 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_getinfo

arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_getinfo

Note that due to XSA-77 this is not a security issue.

xen/common/sched_arinc653.c +1 -0
@@ -705,6 +705,7 @@ a653sched_adjust_global(const struct sch
         rc = arinc653_sched_set(ops, &local_sched);
         break;
     case XEN_SYSCTL_SCHEDOP_getinfo:
+        memset(&local_sched, -1, sizeof(local_sched));
         rc = arinc653_sched_get(ops, &local_sched);
         if ( rc )
             break;

arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_getinfo

Note that due to XSA-77 this is not a security issue.

xen/common/sched_arinc653.c +1 -0
@@ -705,6 +705,7 @@ a653sched_adjust_global(const struct sch
         rc = arinc653_sched_set(ops, &local_sched);
         break;
     case XEN_SYSCTL_SCHEDOP_getinfo:
+        memset(&local_sched, -1, sizeof(local_sched));
         rc = arinc653_sched_get(ops, &local_sched);
         if ( rc )
             break;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw

Hello,

Quoted 12 lines · Jan Beulich

arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_getinfo

Note that due to XSA-77 this is not a security issue.

xen/common/sched_arinc653.c a653sched_adjust_global(const struct sch · line 711

Quoted 7 lines
xen/common/sched_arinc653.c +1 -0
@@ -705,6 +705,7 @@ a653sched_adjust_global(const struct sch
         rc = arinc653_sched_set(ops, &local_sched);
         break;
     case XEN_SYSCTL_SCHEDOP_getinfo:
+        memset(&local_sched, -1, sizeof(local_sched));
         rc = arinc653_sched_get(ops, &local_sched);
         if ( rc )
             break;

Acked-by Robert VanVossen <[email protected]>

Thanks,
Robbie VanVossen

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel