Revision c300aa64ddf57d9c5d9c898a64b36877345dd4a9 authored by Andy Honig on 11 March 2013, 16:34:52 UTC, committed by Marcelo Tosatti on 19 March 2013, 17:17:31 UTC
If the guest sets the GPA of the time_page so that the request to update the
time straddles a page then KVM will write onto an incorrect page.  The
write is done byusing kmap atomic to get a pointer to the page for the time
structure and then performing a memcpy to that page starting at an offset
that the guest controls.  Well behaved guests always provide a 32-byte aligned
address, however a malicious guest could use this to corrupt host kernel
memory.

Tested: Tested against kvmclock unit test.

Signed-off-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
1 parent c09664b
History
File Mode Size
Kconfig -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 240 bytes
alloc.c -rw-r--r-- 21.2 KB
alloc.h -rw-r--r-- 3.8 KB
bmap.c -rw-r--r-- 14.4 KB
bmap.h -rw-r--r-- 8.2 KB
btnode.c -rw-r--r-- 7.7 KB
btnode.h -rw-r--r-- 2.0 KB
btree.c -rw-r--r-- 60.0 KB
btree.h -rw-r--r-- 2.7 KB
cpfile.c -rw-r--r-- 24.5 KB
cpfile.h -rw-r--r-- 1.7 KB
dat.c -rw-r--r-- 13.2 KB
dat.h -rw-r--r-- 2.3 KB
dir.c -rw-r--r-- 17.4 KB
direct.c -rw-r--r-- 8.9 KB
direct.h -rw-r--r-- 1.5 KB
export.h -rw-r--r-- 482 bytes
file.c -rw-r--r-- 4.6 KB
gcinode.c -rw-r--r-- 5.6 KB
ifile.c -rw-r--r-- 5.4 KB
ifile.h -rw-r--r-- 1.8 KB
inode.c -rw-r--r-- 28.5 KB
ioctl.c -rw-r--r-- 21.3 KB
mdt.c -rw-r--r-- 14.4 KB
mdt.h -rw-r--r-- 4.0 KB
namei.c -rw-r--r-- 13.0 KB
nilfs.h -rw-r--r-- 11.7 KB
page.c -rw-r--r-- 13.7 KB
page.h -rw-r--r-- 2.6 KB
recovery.c -rw-r--r-- 24.4 KB
segbuf.c -rw-r--r-- 13.8 KB
segbuf.h -rw-r--r-- 6.2 KB
segment.c -rw-r--r-- 71.2 KB
segment.h -rw-r--r-- 8.1 KB
sufile.c -rw-r--r-- 24.6 KB
sufile.h -rw-r--r-- 4.8 KB
super.c -rw-r--r-- 35.6 KB
the_nilfs.c -rw-r--r-- 20.5 KB
the_nilfs.h -rw-r--r-- 10.8 KB

back to top