Fixed bug [Bug 38672] - bugzilla.kernel.org
Hello.
Bug is in (xen-mapcache.c):
Reported-by Steve <[email protected]>
Signed-off-by Steve <[email protected]>
xen-mapcache.c +0 -0
@@ -107,7 +107,7 @@ void qemu_map_cache_init(void) size = mapcache->nr_buckets *sizeof (MapCacheEntry); size = (size +XC_PAGE_SIZE -1 ) & ~(XC_PAGE_SIZE -1 ); DPRINTF("qemu_map_cache_init, nr_buckets = %lx size %lu\n",
mapcache->nr_buckets, size);
- mapcache->entry = qemu_mallocz(size);
+ mapcache->entry = qemu_mallocz(size*sizeof(MapCacheEntry));
}
static void qemu_remap_bucket(MapCacheEntry *entry,
Should somebody commit this fix ?
Thank you for your time.
Quoted 12 lines · Stefan BOSAK
Hello.
Bug is in (
xen-mapcache.c):Reported-by Steve <[email protected]>Signed-off-by Steve <[email protected]>xen-mapcache.c +0
-0
xen-mapcache.c void qemu_map_cache_init(void) · line 111
Quoted 6 lines
xen-mapcache.c +1
-1@@ -107,7 +107,7 @@ void qemu_map_cache_init(void) size = mapcache->nr_buckets *sizeof (MapCacheEntry); size = (size +XC_PAGE_SIZE -1 ) & ~(XC_PAGE_SIZE -1 );DPRINTF ("qemu_map_cache_init, nr_buckets = %lx size %lu\n" , mapcache->nr_buckets, size); - mapcache->entry =qemu_mallocz (size); + mapcache->entry =qemu_mallocz (size*sizeof (MapCacheEntry));
This is obviously (see a few lines above) already correct and can't be related to your problems - the Xen bits aren't even executed in KVM mode.
The bug you stumbled over finally cost my nerves today as well. The regression comes from commit 38bee5dc94. I'll poke the author.
Jan