Skip to contentSkip to conversation

syscall mmap broken

Qemu-devel Kirill A. Shutemov 2 participants 3 messages Jan 8, 2007 – Jan 10, 2007

lore
Share & tools
lore
#0 lore raw

On a 64-bit host system mmap sometimes(quite rarely on x86_64) return address above 0xffffffff. If target system is a 32-bit system then mojor 32-bit will be dropped due to h2g().

#1 lore raw
Quoted 3 lines · Kirill A. Shutemov

On a 64-bit host system mmap sometimes(quite rarely on x86_64) return address above 0xffffffff. If target system is a 32-bit system then mojor 32-bit will be dropped due to h2g().

We should be using MAP_32BIT or MAP_FIXED.

Paul

#2 lore raw
Quoted 6 lines · Paul Brook
Quoted 3 lines · Kirill A. Shutemov

On a 64-bit host system mmap sometimes(quite rarely on x86_64) return address above 0xffffffff. If target system is a 32-bit system then mojor 32-bit will be dropped due to h2g().

We should be using MAP_32BIT or MAP_FIXED.

But MAP_32BIT can be only used for x86_64. What about other 64-bit host system? It seems that right way to write VM for linux-user emulators.