From: Jeff Dike <jdike@addtoit.com>
To: John Reiser <jreiser@BitWagon.com>
Cc: uml-devel <user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] reading uninit memory in do_io (ubd_kern.c)
Date: Wed, 5 Dec 2007 21:10:16 -0500 [thread overview]
Message-ID: <20071206021016.GB10961@c2.user-mode-linux.org> (raw)
In-Reply-To: <4755F4EC.4050902@BitWagon.com>
On Tue, Dec 04, 2007 at 04:46:36PM -0800, John Reiser wrote:
> and enough changes
> to valgrind to tolerate more forms of clone()
I was going to ask whether you were treating the clone that creates
the userspace process differently from other clones, but I guess the
bit below answers that question:
> **24577** new_thread_handler fn=0x807FD8C arg=0x822AF48
> [snip: panic due to SIGSEGV seen from wait_stub_done()]
And I guess it's not treated differently and valgrind continues
grinding the child, and it craps out when it unmaps everything in the
child address space except the stubs.
Whether you want the userspace process to escape valgrind or not
depends on whether you want full-system analysis (which some people
do, and cachegrind in particular would be very interesting on a full
system) or whether you want to smoke out kernel bugs (which is my main
interest here).
It'll be easier to let the userspace child escape - invent an
annotation for "don't follow this clone".
Longer-term, following this clone and allowing full-system analysis
would require some thought. The first problem, of course, is that
about the first the stub does in the new process is unmap everything
but itself, including valgrind.
Jeff
--
Work email - jdike at linux dot intel dot com
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2007-12-06 2:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-04 23:31 [uml-devel] reading uninit memory in do_io (ubd_kern.c) John Reiser
2007-12-05 0:22 ` Jeff Dike
2007-12-05 0:46 ` John Reiser
2007-12-05 2:17 ` Jeff Dike
2007-12-06 2:10 ` Jeff Dike [this message]
2007-12-06 4:37 ` John Reiser
2007-12-06 5:01 ` Jeff Dike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071206021016.GB10961@c2.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=jreiser@BitWagon.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox