From: Windows Live Subject: acm Date: Sat, 6 Aug 2011 16:28:37 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1572366906==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1572366906== Content-Type: multipart/alternative; boundary="_d3d56a37-569c-4adf-8781-2b36971cf13d_" --_d3d56a37-569c-4adf-8781-2b36971cf13d_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ------- Comment =20 #15 From=20 Konrad Rzeszutek Wilk 2011-08-05 19:11=20 =20 [reply] ------- =20 =20 Just copy-n-paste the bug and post it on xen-devel mailing list. http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D1775 a reduced summary=3B This fault renders xen unworkable=2C only in the packaged install of distro gentoo/ gentoo64 grub # eix xen [I] app-emulation/xen Available versions: 3.4.2-r1!t (~)4.1.0!t **9999!t {acm custom-cflags debug flask pae xsm} Installed versions: 4.1.0!t(00:13:36 07/30/11)(acm debug flask pae xs= m -custom-cflags) Homepage: http://xen.org/ Description: The Xen virtual machine monitor This make /boot/xen-4.1.0.gz. On booting into this installed hypervisor=2C= I can bring up virt-manager which happily lists the vms. On attempting to boot a v the moment the xen equipped kernel attempts to bo= ot the vm=2C the system is crashed. That is=2C it seems to trigger reboot because that is what happens=2C=20 Just reboot. I haven't bothered with any logs because this instantaneous crash should fa= il to write any events to logs=2C correct me if I'm wrong ------- Comment =20 #1 From=20 IAN DELANEY 2011-07-30 02:36=20 =20 [reply] ------- =20 =20 should have mentioned. idella@gentoo64 ~/bin $ ls /boot/ ........... xen-4.1.0-rc7-pre.gz xen-4.1.0.gz ........ The xen-4.1.0-rc7-pre.gz is fine The xen-4.1.0.gz hypervisor is broken. idella@gentoo64 ~/bin $ emerge xen -pv These are the packages that would be merged=2C in order: Calculating dependencies... done! [ebuild R ] app-emulation/xen-4.1.0 USE=3D"acm custom-cflags* debug f= lask pae xsm" 0 kB shows the compiled in features. What can trigger this type of system crash= ? =20 =20 ------- Comment =20 #3 From=20 IAN DELANEY 2011-07-30 07:31=20 =20 [reply] ------- =20 =20 It seems the cause of this is in gentoo terms the use of the use flags acm = and xsm. See https://bugs.gentoo.org/show_bug.cgi?id=3D361345. It seems disabling these flags allows the hypervisor to boot vms. What I need to know is where this flaw comes from. There is a gentoo packa= ge xsm=2C but not asm. asm is a security portion of the source. Is the flaw in the gentoo package xsm=2C is it the xensource code=2C and ca= n you list the step or steps to sensure xsm and acm directly in the xensource cod= e so I can replicate it=3B suspect they are options manually put after make on = the command line. ------- Comment #5 From IAN DELANEY 2011-07-30 08:01 [reply] ------- =20 =20 Aha from Config.mk # Enable XSM security module. Enabling XSM requires selection of an # XSM security module (FLASK_ENABLE or ACM_SECURITY). XSM_ENABLE ?=3D n FLASK_ENABLE ?=3D n ACM_SECURITY ?=3D n These are the default settings=2C so it seems the hypervisor I am using doe= s in fact not have these set. So why are they turned off=2C and do they have an unresolved issue? =20 =20 =20 =20 ------- Comment =20 #6 From=20 Konrad Rzeszutek Wilk 2011-07-30 08:26=20 =20 [reply] ------- =20 =20 (In reply to comment #5) > Aha >=20 > from Config.mk >=20 > # Enable XSM security module. Enabling XSM requires selection of an > # XSM security module (FLASK_ENABLE or ACM_SECURITY). > XSM_ENABLE ?=3D n > FLASK_ENABLE ?=3D n > ACM_SECURITY ?=3D n >=20 > These are the default settings=2C so it seems the hypervisor I am using d= oes in > fact not have these set. > So why are they turned off=2C and do they have an unresolved issue? B/c the maintainer for them is .. gone? I suspect the code is bit-rotten. Y= ou might want to open a Gentoo bug to turn those off until somebody fixes what= ever the issue you have with ACM. >=20 =20 =20 =20 =20 ------- Comment =20 #7 From=20 IAN DELANEY 2011-07-30 08:40=20 =20 [reply] ------- =20 =20 Konrad=3B I can get the use flags withdrawn=2C but the task at hand is to get them to= work. I can say that change to setting=20 FLASK_ENABLE ?=3D y cause the emerge or build to fail in my gentoo =20 ------- Comment =20 #8 From=20 IAN DELANEY 2011-07-30 10:04=20 =20 [reply] ------- =20 =20 ok I'm picking up the threads. # make clean # nano Config.mk # emerge install-xen for each alteration. the build fails only for setting ACM_SECURITY ?=3D y. =20 =20 =20 =20 ------- Comment =20 #9 From=20 Konrad Rzeszutek Wilk 2011-07-31 08:14=20 =20 [reply] ------- =20 =20 (In reply to comment #7) > Konrad=3B >=20 > thanks. When you say maintainer=2C do you mean a gentoo maintainer? Cool. So in regards to disable ACM/FLask - that was to you. In regards to actually figuring why ACM/Flask does not seem to work - that was meant for = the maintainer of that code in Xen - who seemed to have moved on to other thing= s. > I can get the use flags withdrawn=2C but the task at hand is to get them = to work. Ah=2C then you will need to figure out why FLASK does not work - I have no knowledge of that code so won't be much help. You might have better luck digging up the authors of said code and emailing them. > I can say that change to setting=20 > FLASK_ENABLE ?=3D y > cause the emerge or build to fail in my gentoo >=20 > Thanks for your important help. >=20 =20 =20 =20 =20 ------- Comment =20 #10 From=20 IAN DELANEY 2011-07-31 08:49=20 =20 [reply] ------- =20 =20 ok=3B to correct last entries. It seems that flask is fine. On repeating it a number of times=2C for what= ever reason=2C on compiling the xensource package xen-4.1-testing.hg=2C it appea= rs that entries flask and acm will in fact compile fine. It seems that setting flas= k on its own will fail=2C it depends upon xsm being set. Setting xsm om its own = or with flask works. In fact=2C setting all 3=2C the package builds. But like the gentoo emerge= =2C the hypervisor breaks the system if ACM_SECURITY is set. Setting use=3DACM presumably leads to setting ACM_SECURITY ?=3D n in the Config.mk. simple. = So the flaw isn't in gentoo=2C it' in the source. = --_d3d56a37-569c-4adf-8781-2b36971cf13d_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
------- Comment #15 From=20 Konrad Rzeszutek Wilk 2011-08-05 19:11=20 [reply] ------- =20
Just copy-n-paste the bug and post it on xen-de=
vel mailing list.


 =3Bhttp://bugzilla.xensource.com/bugzilla= /show_bug.cgi?id=3D1775

a reduced summary=3B


This fault r= enders xen unworkable=2C only in the packaged install of distro gentoo/ gentoo64 grub # eix xen [I] app-emulation/xen Available versions: 3.4.2-r1!t (~)4.1.0!t **9999!t {acm custom-cflags debug flask pae xsm} Installed versions: 4.1.0!t(00:13:36 07/30/11)(acm debug flask pae xs= m -custom-cflags) Homepage: http://xen.org/ Description: The Xen virtual machine monitor This make /boot/xen-4.1.0.gz. On booting into this installed hypervisor=2C= I can bring up virt-manager which happily lists the vms. On attempting to boot a v the moment the xen equipped kernel attempts to bo= ot the vm=2C the system is crashed. That is=2C it seems to trigger reboot because that is what happens=2C=20 Just reboot. I haven't bothered with any logs because this instantaneous crash should fa= il to write any events to logs=2C correct me if I'm wrong
------- Comment #1 From=20 IAN DELANEY 2011-07-30 02:36=20 [reply] ------- =20
should have mentioned.

idella@gentoo64 ~/bin $ ls /boot/
...........
xen-4.1.0-rc7-pre.gz
xen-4.1.0.gz
........

The xen-4.1.0-rc7-pre.gz is fine
The xen-4.1.0.gz hypervisor is broken.

idella@gentoo64 ~/bin $ emerge xen -pv

These are the packages that would be merged=2C in order:

Calculating dependencies... done!
[ebuild   R    ] app-emulation/xen-4.1.0  USE=3D"acm custom-cflags* debug f=
lask
pae xsm" 0 kB

shows the compiled in features.  What can trigger this type of system crash=
?

------- Comment #3 From=20 IAN DELANEY 2011-07-30 07:31=20 [reply] ------- =20
It seems the cause of this is in gentoo terms th=
e use of the use flags acm and
xsm.  See http=
s://bugs.gentoo.org/show_bug.cgi?id=3D361345.
It seems disabling these flags allows the hypervisor to boot vms.
What I need to know is where this flaw comes from.  There is a gentoo packa=
ge
xsm=2C but not asm.
asm is a security portion of the source.
Is the flaw in the gentoo package xsm=2C is it the xensource code=2C and ca=
n you
list the step or steps to sensure xsm and acm directly in the xensource cod=
e so
I can replicate it=3B  suspect they are options manually put after make on =
the
command line.

------- Comment #5 From IAN DELANEY 2011-07-30 08:01  [reply]  ----=
---
        
=20
Aha

from Config.mk

# Enable XSM security module.  Enabling XSM requires selection of an
# XSM security module (FLASK_ENABLE or ACM_SECURITY).
XSM_ENABLE ?=3D n
FLASK_ENABLE ?=3D n
ACM_SECURITY ?=3D n

These are the default settings=2C so it seems the hypervisor I am using doe=
s in
fact not have these set.
So why are they turned off=2C and do they have an unresolved issue?

------- Comment #6 From=20 Konrad Rzeszutek Wilk 2011-07-30 08:26=20 [reply] ------- =20
(In reply to comment #5)
>=3B Aha
>=3B=20
>=3B from Config.mk
>=3B=20
>=3B # Enable XSM security module.  Enabling XSM requires selection of an
>=3B # XSM security module (FLASK_ENABLE or ACM_SECURITY).
>=3B XSM_ENABLE ?=3D n
>=3B FLASK_ENABLE ?=3D n
>=3B ACM_SECURITY ?=3D n
>=3B=20
>=3B These are the default settings=2C so it seems the hypervisor I am us=
ing does in
>=3B fact not have these set.
>=3B So why are they turned off=2C and do they have an unresolved issue?

B/c the maintainer for them is .. gone? I suspect the code is bit-rotten. Y=
ou
might want to open a Gentoo bug to turn those off until somebody fixes what=
ever
the issue you have with ACM.

>=3B=20

------- Comment #7 From=20 IAN DELANEY 2011-07-30 08:40=20 [reply] ------- =20
Konrad=3B


I can get the use flags withdrawn=2C but the task at hand is to get them to=
 work.
I can say that change to setting=20
FLASK_ENABLE ?=3D y
cause the emerge or build to fail in my gentoo


------- Comment #8 From=20 IAN DELANEY 2011-07-30 10:04=20 [reply] ------- =20
ok I'm picking up the threads.

# make clean
# nano Config.mk
# emerge install-xen

for each alteration.

the build fails only for setting ACM_SECURITY ?=3D y.

------- Comment #9 From=20 Konrad Rzeszutek Wilk 2011-07-31 08:14=20 [reply] ------- =20
(In reply to comment #7)
>=3B Konrad=3B
>=3B=20
>=3B thanks.  When you say maintainer=2C do you mean a gentoo maintainer?

Cool. So in regards to disable ACM/FLask - that was to you. In regards to
actually figuring why ACM/Flask does not seem to work - that was meant for =
the
maintainer of that code in Xen - who seemed to have moved on to other thing=
s.


>=3B I can get the use flags withdrawn=2C but the task at hand is to get =
them to work.

Ah=2C then you will need to figure out why FLASK does not work - I have no
knowledge of that code so won't be much help. You might have better luck
digging up the authors of said code and emailing them.

>=3B I can say that change to setting=20
>=3B FLASK_ENABLE ?=3D y
>=3B cause the emerge or build to fail in my gentoo
>=3B=20
>=3B Thanks for your important help.
>=3B=20

------- Comment #10 From=20 IAN DELANEY 2011-07-31 08:49=20 [reply] ------- =20
ok=3B to correct last entries.

It seems that flask is fine.  On repeating it a number of times=2C for what=
ever
reason=2C on compiling the xensource package xen-4.1-testing.hg=2C it appea=
rs that
entries flask and acm will in fact compile fine. It seems that setting flas=
k on
its own will fail=2C it depends upon xsm being set. Setting xsm om its own =
or
with flask works.

In fact=2C setting all 3=2C the package builds. But like the gentoo emerge=
=2C the
hypervisor breaks the system if ACM_SECURITY is set.  Setting use=3DACM
presumably leads to setting ACM_SECURITY ?=3D n in the Config.mk. simple.  =
So the
flaw isn't in gentoo=2C it' in the source. 
= --_d3d56a37-569c-4adf-8781-2b36971cf13d_-- --===============1572366906== 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.xensource.com http://lists.xensource.com/xen-devel --===============1572366906==--