Re: [LKML] [PATCH] Fix NULL pointer for Xen guests

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Jones
Date: Tuesday, April 27, 2010 - 10:59 am

On 04/27/2010 07:09 PM, Prarit Bhargava wrote:

Another ingredient is to boot the guest with a configuration where its
maxvcpus is greater than its vcpus. If you have RHEL 5.5 userspace then
you can create a config with lines like this

maxvcpus = 4
vcpus = 2

with that you'll crash on boot. Then you can check that
irq_force_complete_move is on the stack if you have "preserve" for
on_crash and use xenctx to look at the state of the vcpus.

If the Xen you're using doesn't support the maxvcpus var, then I believe
you can do the same principle, but in a different way, using the
vcpus_avail var. Or, you can boot with > 1 vcpus and then attempt to
remove one with 'xm vcpu-set'.

Andrew


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Fix NULL pointer for Xen guests, Prarit Bhargava, (Tue Apr 27, 8:24 am)
Re: [LKML] [PATCH] Fix NULL pointer for Xen guests, Konrad Rzeszutek Wilk, (Tue Apr 27, 9:58 am)
Re: [LKML] [PATCH] Fix NULL pointer for Xen guests, Prarit Bhargava, (Tue Apr 27, 10:09 am)
Re: [LKML] [PATCH] Fix NULL pointer for Xen guests, Andrew Jones, (Tue Apr 27, 10:59 am)
Re: [LKML] [PATCH] Fix NULL pointer for Xen guests, Konrad Rzeszutek Wilk, (Tue Apr 27, 11:34 am)
Re: [LKML] [PATCH] Fix NULL pointer for Xen guests, Prarit Bhargava, (Tue Apr 27, 11:47 am)
Re: [PATCH] Fix NULL pointer for Xen guests, Andrew Morton, (Wed Apr 28, 11:26 am)
Re: [PATCH] Fix NULL pointer for Xen guests, Prarit Bhargava, (Wed Apr 28, 11:29 am)
Re: [PATCH] Fix NULL pointer for Xen guests, Suresh Siddha, (Wed Apr 28, 11:42 am)
Re: [PATCH] Fix NULL pointer for Xen guests, Andrew Morton, (Wed Apr 28, 11:50 am)
Re: [PATCH] Fix NULL pointer for Xen guests, H. Peter Anvin, (Fri Apr 30, 1:55 pm)
Re: [PATCH] Fix NULL pointer for Xen guests, H. Peter Anvin, (Fri Apr 30, 2:33 pm)
[tip:x86/urgent] x86: Fix NULL pointer access in irq_force ..., tip-bot for Prarit B ..., (Fri Apr 30, 2:36 pm)
Re: [PATCH] Fix NULL pointer for Xen guests, Prarit Bhargava, (Fri Apr 30, 3:01 pm)
Re: [LKML] [PATCH] Fix NULL pointer for Xen guests, Konrad Rzeszutek Wilk, (Mon May 3, 12:16 pm)
Re: [LKML] [PATCH] Fix NULL pointer for Xen guests, Prarit Bhargava, (Mon May 3, 12:56 pm)
Re: [LKML] Re: [LKML] [PATCH] Fix NULL pointer for Xen guests, Konrad Rzeszutek Wilk, (Tue May 4, 8:02 am)
Re: [LKML] [tip:x86/urgent] x86: Fix NULL pointer access i ..., Konrad Rzeszutek Wilk, (Tue May 4, 8:02 am)