From: Alexandre Julliard Subject: Re: [PATCH v3 07/13] loader: Don't clobber existing memory mappings when reserving addresses. Message-Id: <87y233yfx3.fsf@wine> Date: Tue, 25 Jan 2022 16:48:56 +0100 In-Reply-To: (Jinoh Kang's message of "Wed, 26 Jan 2022 00:25:24 +0900") References: Jinoh Kang 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@winehq.org