From: John Reiser <jreiser@BitWagon.com>
To: Jeff Dike <jdike@karaya.com>
Cc: linux-kernel@vger.kernel.org,
Jeremy Fitzhardinge <jeremy@goop.org>,
Julian Seward <jseward@acm.org>
Subject: Re: Valgrind meets UML
Date: Fri, 20 Dec 2002 15:32:30 -0800 [thread overview]
Message-ID: <3E03A88E.50200@BitWagon.com> (raw)
In-Reply-To: 200212202258.RAA03444@ccure.karaya.com
Jeff Dike wrote:
> jreiser@BitWagon.com said:
>
>>Implementors of allocators can have bugs in the valgrind declarations
>>they add. An "independent" check based on documented
>>externally-visible behavior can help.
>
>
> The problem is that valgrind is going to look under the covers of the kernel
> allocators and see the externally-visible requirements being violated.
>
> Either you implement a globally correct description, which includes the
> externally visible description as a subset, or you somehow tell valgrind not
> to complain about stuff inside the allocator.
>
> The second sounds complicated, and anyway hides bugs in the allocator.
I suggest that useful partial progress can be made sooner by identifying the
allocators, telling valgrind about them and their external semantics, and having
valgrind trust them. In particular, do not valgrind allocators at first.
Waiting for the globally correct description can take a long time, perhaps
about as long as waiting for the authors of device drivers to update to a new
device I/O model. Also, the globally correct description is necessarily time
dependent: it changes while the allocator is active, and describing it correctly
at that level of detail can be hard, or at least tedious.
Not valgrinding allocators still will reveal plenty of problems. Those will
help provide motivation for implementing descriptions that are more detailed,
eventually even globally correct at every instant. Then you can turn valgrind
loose on the allocators themselves.
--
John Reiser, jreiser@BitWagon.com
next prev parent reply other threads:[~2002-12-20 23:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-20 2:41 Valgrind meets UML Jeff Dike
2002-12-20 15:26 ` John Reiser
2002-12-20 22:58 ` Jeff Dike
2002-12-20 23:32 ` John Reiser [this message]
2002-12-21 2:49 ` Jeff Dike
2002-12-21 7:32 ` Jeremy Fitzhardinge
2002-12-21 16:05 ` Jeff Dike
2002-12-21 14:40 ` John Reiser
2002-12-21 16:07 ` Jeff Dike
2002-12-21 16:15 ` John Reiser
2002-12-21 18:57 ` Jeff Dike
2002-12-21 19:07 ` Jeremy Fitzhardinge
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=3E03A88E.50200@BitWagon.com \
--to=jreiser@bitwagon.com \
--cc=jdike@karaya.com \
--cc=jeremy@goop.org \
--cc=jseward@acm.org \
--cc=linux-kernel@vger.kernel.org \
/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