syscall mmap broken
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().
Quoted 3 lines · Kirill A. Shutemov
On a 64-bit host system mmap
sometimes(quite rarely on x86_64)return address above0xffffffff. If target system is a 32-bit system then mojor 32-bit will be dropped due toh2g().
We should be using MAP_32BIT or MAP_FIXED.
Paul
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 above0xffffffff. If target system is a 32-bit system then mojor 32-bit will be dropped due toh2g().We should be using
MAP_32BITorMAP_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.