lkml.org 
[lkml]   [2004]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] VmLib wrapped: executable brk
On Thu, Nov 25, 2004 at 04:18:51PM +0000, Hugh Dickins wrote:
> In some cases /proc/<pid>/status shows VmLib: 42949..... kB.
> If READ_IMPLIES_EXEC then the break area is VM_EXEC, but omitted from
> exec_vm since do_brk contains no __vm_stat_account call. Later munmaps
> count its pages out of exec_vm, hence (exec_vm - VmExe) can go negative.
> do_brk is right not to call __vm_stat_account, its pages shouldn't need
> to be counted. What's wrong is that __vm_stat_account is counting all
> the VM_EXEC pages, whereas (to mimic 2.4 and earlier 2.6) it should be
> leaving VM_WRITE areas and non-vm_file areas out of exec_vm.
> VmLib may still appear larger than before - where a READ_IMPLIES_EXEC
> personality makes what was a readonly mapping of a file now executable
> e.g. /usr/lib/locale stuff. And a program which mprotects its own text
> as writable will appear with wrapped VmLib: sorry, but while it's worth
> showing ordinary programs as ordinary, it's not worth much effort to
> avoid showing odd ones as odd.

These both look straightforward corrections of oversights on my part.
My apologies for whatever confusion they may have caused.


-- wli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.042 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site