* READ-ONLY mmap not present in core
@ 2003-10-20 12:11 Pavel Krauz
2003-10-21 13:43 ` [PATCH] " Pavel Krauz
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Krauz @ 2003-10-20 12:11 UTC (permalink / raw)
To: linux-kernel
Hi all,
I have verified that the READ_ONLY mmap mapping of file did not propagate
to core file. For instance, if you share some file through which you exchange data
from one process to the other, you won't see it in debugger after the crash.
Is that known limitation? Can it be fixed?
best regards
Pavel
____________________________________________________________
Jak zjistit historii ojetého vozu? http://ad2.seznam.cz/redir.cgi?instance=62697%26url=http://www.auto-plus.cz/faq.php
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] Re: READ-ONLY mmap not present in core
2003-10-20 12:11 READ-ONLY mmap not present in core Pavel Krauz
@ 2003-10-21 13:43 ` Pavel Krauz
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Krauz @ 2003-10-21 13:43 UTC (permalink / raw)
To: linux-kernel, viro, marcelo, rusty
> I have verified that the READ_ONLY mmap mapping of file did not propagate
> to core file.
Here goes a patch that solves the problem. The READ_ONLY - only mappings are now included to the core file. The executable regions are still excluded. The size of core
did not change a lot and you have all important info in core and don't get
unreferencable pointers inside a debugger.
Please apply to 2.4.X and 2.6.X also
Pavel
with patch (emacs, netscape, xemacs):
4706304 core.all.emacs
9129984 core.all.netscape
5726208 core.all.xemacs
without patch:
4452352 core.emacs
8851456 core.netscape
5459968 core.xemacs
--- linux/fs/binfmt_elf.c.bak Tue Oct 21 15:21:13 2003
+++ linux/fs/binfmt_elf.c Tue Oct 21 15:21:18 2003
@@ -952,7 +952,7 @@
#if 1
if (vma->vm_flags & (VM_WRITE|VM_GROWSUP|VM_GROWSDOWN))
return 1;
- if (vma->vm_flags & (VM_READ|VM_EXEC|VM_EXECUTABLE|VM_SHARED))
+ if (vma->vm_flags & (VM_EXEC|VM_EXECUTABLE))
return 0;
#endif
return 1;
____________________________________________________________
Mall [mo:l] - promenáda, široká alej, nákupní středisko (velké)
Internet Mall - profesionální nákupní galerie na Internetu (http://www.mall.cz)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-21 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-20 12:11 READ-ONLY mmap not present in core Pavel Krauz
2003-10-21 13:43 ` [PATCH] " Pavel Krauz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.