On Sun, Jul 03, 2016 at 06:47:23PM +0200, Oleg Nesterov wrote: > On 07/03, Michael S. Tsirkin wrote: > > > > On Sun, Jul 03, 2016 at 05:18:29PM +0200, Oleg Nesterov wrote: > > > > > > Well, we are going to kill all tasks which share this memory. I mean, ->mm. > > > If "sharing memory with another task" means, say, a file, then this memory > > > won't be unmapped (if shared). > > > > > > So let me ask again... Suppose, say, QEMU does VHOST_SET_OWNER and then we > > > unmap its (anonymous/non-shared) memory. Who else's memory can be corrupted? > > > > As you say, I mean anyone who shares memory with QEMU through a file. > > And in this case vhost_worker() reads the anonymous memory of QEMU process, > not the memory which can be shared with another task, correct? > > And if QEMU simply crashes, this can't affect anyone who shares memory with > QEMU through a file, yes? > > Oleg. Well no - the VM memory is not always anonymous memory. It can be an mmaped file. -- MST -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>