<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;"
bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 27/12/2018 15:34, Lev Olshvang
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:23264791545917651@myt6-2fee75662a4f.qloud-c.yandex.net">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Can you elaborate why I can not write new system call to unmap
this memory regions, which I see in /proc/self/maps by force ?</blockquote>
<p>Why would you need a system call to do this?</p>
<p><br>
</p>
<p>Well, obviously, you'd need a system call to do this, but why
can't that system call be "munmap"? Especially since you already
pointed out that you know which pages you want unmapped.<br>
</p>
<p><br>
</p>
<p>This is especially true, and this is also something that people
seem to miss, considering that it wasn't the kernel that mapped
those pages in to begin with. Those pages were mapped by the
dynamic linker. It typically resides in /lib/ld-linux.so.2 or
something (/lib64/ld-linux-x86-64.so.2 for more modern platforms),
and is 100% a user space function.</p>
<p><br>
</p>
<p>So I'm still not sure why you insist on unmapping, but even if
you do, I don't see why you'd need a new system call to do it.</p>
<p><br>
</p>
<p>Shachar<br>
</p>
</body>
</html>