diff options
author | Michael Abd-El-Malek <mabdelmalek@cmu.edu> | 2008-04-04 13:33:48 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-04 20:36:46 +0400 |
commit | bbc60c18ed17df75270da504bbd8f7bc4a52d43d (patch) | |
tree | b8cd0cc51cf9bfb96f99ad58038b7489ae5b7c9c /Documentation/VGA-softcursor.txt | |
parent | bae1d2507e44417455eda76d4435352fee14cf51 (diff) | |
download | linux-bbc60c18ed17df75270da504bbd8f7bc4a52d43d.tar.xz |
xen: fix grant table bug
fix memory corruption and crash due to mis-sized grant table.
A PV OS has two grant table data structures: the grant table itself
and a free list. The free list is composed of an array of pages,
which grow dynamically as the guest OS requires more grants. While
the grant table contains 8-byte entries, the free list contains 4-byte
entries. So we have half as many pages in the free list than in the
grant table.
There was a bug in the free list allocation code. The free list was
indexed as if it was the same size as the grant table. But it's only
half as large. So memory got corrupted, and I was seeing crashes in
the slab allocator later on.
Taken from:
http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/4018c0da3360
Signed-off-by: Michael Abd-El-Malek <mabdelmalek@cmu.edu>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/VGA-softcursor.txt')
0 files changed, 0 insertions, 0 deletions