Re: [PATCH v6 04/12] Add memory slot versioning and use it to provide fast guest write interface

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marcelo Tosatti
Date: Wednesday, October 6, 2010 - 7:38 am

On Wed, Oct 06, 2010 at 01:14:17PM +0200, Gleb Natapov wrote:

kvm->memslots can change here.


And if so, gfn_to_memslot / gfn_to_hva will use new memslots pointer.

Should dereference all values from one copy of kvm->memslots pointer.
 


Malicious userspace can cause entry to be cached, ioctl
SET_USER_MEMORY_REGION 2^32 times, generation number will match,
mark_page_dirty_in_slot will be called with pointer to freed memory.

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

Messages in current thread:
Re: [PATCH v6 04/12] Add memory slot versioning and use it ..., Marcelo Tosatti, (Wed Oct 6, 7:38 am)