Displaying 1 result from an estimated 1 matches for "alloc_xenballoned_pag".
Did you mean:
alloc_xenballoned_pages
2013 May 16
5
xc_map_foreign_bulk() memory leak in ARM version?
...after unmap()
for previous returned address - memory is not freed at all.
Let''s look at call stack:
xc_map_foreign() ->
linux_privcmd_map_foreign_bulk() ->
{
addr = mmap(fd);
ioctl(fd, IOCTL_PRIVCMD_MMAPBATCH_V2 );
} ->
alloc_empty_pages() ->
alloc_xenballoned_pages();
So, I think that unmap(addr) must call free_xenballoned_pages(), but this
doesn''t happen. =(
Let me note, that mmap() knows about privcmd_close() function, and it is
the place where free_xenballoned_pages() is called, So we have that unmap()
doesn''t call privcmd_close() at a...