From: "Jan Beulich" Subject: [PATCH] arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_getinfo Date: Mon, 08 Jun 2015 14:24:57 +0100 Message-ID: <5575B3C9020000780008221C@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part66524BB9.1__=" Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z1x30-00076P-S5 for xen-devel@lists.xenproject.org; Mon, 08 Jun 2015 13:25:02 +0000 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 Cc: josh.whitehead@dornerworks.com, Robert VanVossen List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part66524BB9.1__= Content-Type: text/plain; charset=UTF-8 Content-Length: 695 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_getinfo Note that due to XSA-77 this is not a security issue. Reported-by: "=E6=A0=BE=E5=B0=9A=E8=81=AA(=E5=A5=BD=E9=A3=8E)" Signed-off-by: Jan Beulich --- a/xen/common/sched_arinc653.c +++ b/xen/common/sched_arinc653.c @@ -705,6 +705,7 @@ a653sched_adjust_global(const struct sch rc =3D arinc653_sched_set(ops, &local_sched); break; case XEN_SYSCTL_SCHEDOP_getinfo: + memset(&local_sched, -1, sizeof(local_sched)); rc =3D arinc653_sched_get(ops, &local_sched); if ( rc ) break; --=__Part66524BB9.1__= Content-Type: text/plain; name="arinc653-info-leak.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="arinc653-info-leak.patch" arinc653: don't leak hypervisor stack contents through XEN_SYSCTL_SCHEDOP_g= etinfo=0A=0ANote that due to XSA-77 this is not a security issue.=0A = =0AReported-by: "=E6=A0=BE=E5=B0=9A=E8=81=AA(=E5=A5=BD=E9=A3=8E)" = =0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/common/sched_arinc653.c=0A+++ b/xen/common/sched_arinc= 653.c=0A@@ -705,6 +705,7 @@ a653sched_adjust_global(const struct sch=0A = rc =3D arinc653_sched_set(ops, &local_sched);=0A break;=0A = case XEN_SYSCTL_SCHEDOP_getinfo:=0A+ memset(&local_sched, -1, = sizeof(local_sched));=0A rc =3D arinc653_sched_get(ops, &local_sche= d);=0A if ( rc )=0A break;=0A --=__Part66524BB9.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__Part66524BB9.1__=--