Re: [PATCH] always assign userspace_addr

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anthony Liguori
Date: Wednesday, November 19, 2008 - 8:55 am

Glauber Costa wrote:

I think this is masking a much bigger problem.



This is guarded in:


In this case, npages > 0 but !new.rmap is already allocated.  But this 
is a new slot?  The problem is that when we delete the slot, the rmap 
never gets freed.  This means that if we delete a slot, then create a 
new slot which happens to be a different size, we use the old rmap and 
potentially overrun that buffer.

So I think we need a fix that properly frees the rmap when the slot is 
destroyed.

Regards,

Anthony Liguori

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

Messages in current thread:
[PATCH] always assign userspace_addr, Glauber Costa, (Mon Nov 17, 8:04 pm)
Re: [PATCH] always assign userspace_addr, Anthony Liguori, (Wed Nov 19, 8:55 am)
Re: [PATCH] always assign userspace_addr, Glauber Costa, (Wed Nov 19, 11:43 am)
Re: [PATCH] always assign userspace_addr, Anthony Liguori, (Wed Nov 19, 11:51 am)
Re: [PATCH] always assign userspace_addr, Glauber Costa, (Wed Nov 19, 1:53 pm)
Re: [PATCH] always assign userspace_addr, Anthony Liguori, (Wed Nov 19, 1:59 pm)
Re: [PATCH] always assign userspace_addr, Avi Kivity, (Thu Nov 20, 4:01 am)
Re: [PATCH] always assign userspace_addr, Avi Kivity, (Thu Nov 20, 4:02 am)
Re: [PATCH] always assign userspace_addr, Glauber Costa, (Fri Nov 21, 11:11 am)
Re: [PATCH] always assign userspace_addr, Glauber Costa, (Mon Nov 24, 6:08 am)
Re: [PATCH] always assign userspace_addr, Avi Kivity, (Tue Nov 25, 7:04 am)