 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Fix boot crash on xsm/flask enabled builds when no policy module is present
 On 08/26/2013 03:27 PM, Daniel De Graaf wrote: Right. I'm trying to sift through security_load_policy to figure out why induces the error later, if policy_buffer is null, because yes you are right it does not seem to deref the pointer at first glance, but it definitely causes the mentioned error later on if it's called. Guess this needs further investigation..On 08/26/2013 06:52 AM, Andrew Cooper wrote:On 26/08/2013 11:03, Tomasz Wroblewski wrote:Xen crashes on boot of xsm/flask enabled builds, if policy module is not specified. This seems to have worked on 4.1 at least. Can be fixed by testing whether policy_buffer is NULL before attempting to load from it - it's a global which is set to non-NULL whenpolicy module is detected. Signed-off-by: Tomasz Wroblewski <tomasz.wroblewski@xxxxxxxxxx>CCing Daniel De Graaf, as the maintainer of this code. However FWIW, Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Also, on 08/26/2013 07:12 AM, Jan Beulich wrote:Question is whether policy_buffer == NULL really isn't supposedto result in a -E... return value (as in fact flask initialization failed).The return value of flask_init isn't ever checked. A failure to load the policy at boot is identical to no policy - waiting for a flask_disable or "xl loadpolicy" hypercall from dom0. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |