The issue arises when using `mremap` within QEMU, specifically when shrinking a buffer to 4096 bytes. This behavior is inconsistent across different architectures and native versus emulated environments. The problem lies in how QEMU handles the `mremap` system call during emulation. **Category: syscall** syscall