]> git.proxmox.com Git - qemu.git/commit
dump: clamp guest-provided mapping lengths to ramblock sizes
authorLaszlo Ersek <lersek@redhat.com>
Tue, 6 Aug 2013 10:37:08 +0000 (12:37 +0200)
committerLuiz Capitulino <lcapitulino@redhat.com>
Thu, 8 Aug 2013 15:01:45 +0000 (11:01 -0400)
commit2cac260768b9d4253737417ea7501cf2950e257f
tree2599bc433898e4172076b62db91e8acc49849e9d
parent6fdf98f281f85ae6e2883bed2f691bcfe33b1f9f
dump: clamp guest-provided mapping lengths to ramblock sizes

Even a trusted & clean-state guest can map more memory than what it was
given. Since the vmcore contains RAMBlocks, mapping sizes should be
clamped to RAMBlock sizes. Otherwise such oversized mappings can exceed
the entire file size, and ELF parsers might refuse even the valid portion
of the PT_LOAD entry.

Related RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=981582

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
dump.c