[NFC][scudo] Add reference to a QEMU bug

D101031 added workaround for the bug.
This commit is contained in:
Vitaly Buka 2021-04-28 14:56:08 -07:00
parent c3846bcfe1
commit f7164c7714
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ void releasePagesToOS(uptr BaseAddress, uptr Offset, uptr Size,
if (madviseNeedsMemsetCached()) {
// Workaround for QEMU-user ignoring MADV_DONTNEED.
// https://github.com/qemu/qemu/blob/b1cffefa1b163bce9aebc3416f562c1d3886eeaa/linux-user/syscall.c#L11941
// https://bugs.launchpad.net/qemu/+bug/1926521
memset(Addr, 0, Size);
}
while (madvise(Addr, Size, MADV_DONTNEED) == -1 && errno == EAGAIN) {