[PATCH v3 07/13] loader: Don't clobber existing memory mappings when reserving addresses.

Alexandre Julliard julliard at winehq.org
Tue Jan 25 09:48:56 CST 2022


Jinoh Kang <jinoh.kang.kr at gmail.com> writes:

> Today, the preloader makes no attempt to avoid unmapping existing
> memory mappings except the initial stack.  This results in irrevocably
> unmapping some useful preallocated memory areas, such as vDSO.
>
> Fix this by reading /proc/self/maps for existing VMAs, and splitting
> mmap() calls to avoid erasing existing memory mappings.

That defeats the purpose of using the preloader. The whole point is to
make sure the specified ranges are available. Note that since you don't
update the ranges info, the mappings will get erased by Wine later
anyway.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list