mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vegard Nossum" <vegard.nossum@gmail.com>
To: "Roland Dreier" <rdreier@cisco.com>
Cc: "Ingo Molnar" <mingo@elte.hu>,
	"Linus Torvalds" <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Pekka Enberg" <penberg@cs.helsinki.fi>,
	"Christoph Lameter" <clameter@sgi.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	"Thomas Gleixner" <tglx@linutronix.de>
Subject: Re: [git pull] kmemcheck
Date: Wed, 30 Apr 2008 18:37:03 +0200	[thread overview]
Message-ID: <19f34abd0804300937k637e0308r36d4fa20899ff6bc@mail.gmail.com> (raw)
In-Reply-To: <adazlrb8fxq.fsf@cisco.com>

Hi,

On Wed, Apr 30, 2008 at 6:29 PM, Roland Dreier <rdreier@cisco.com> wrote:
>  >       kmemcheck: enable in the x86 Kconfig
>
>  This patch does:
>
>
>   > +config KMEMCHECK
>   > +    bool "kmemcheck: trap use of uninitialized memory"
>   > +    depends on X86_32
>
>  So it's only possible to select kmemcheck on 32-bit builds, But you also
>  seem to have 64-bit stuff, eg
>
>
>   >       kmemcheck: support for 64-bit
>   >       kmemcheck: add missing pte_hidden() for x86-64
>
>  so is the Kconfig patch slightly out-of-date?

We don't officially support 64-bit yet, that is why it is disabled in
the Kconfig. The 64-bit parts are preliminaries, and as with 32-bit,
should have no impact when CONFIG_KMEMCHECK=n (as is the case for all
64-bit builds as you pointed out). It is largely untested, but
according to Pekka it at least boots in qemu with kmemcheck enabled
even for 64-bit.

So the 64-bit parts we have is basically to make it _compile_ even if
you force KMEMCHECK=y on a 64-bit build.

(The main obstacle standing in the way of fully supporting 64-bit is
the opcode decoding. I don't really know how the 64-bit registers
works, so I will have to read about it first :-))

Thank you for looking over!

Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036

  reply	other threads:[~2008-04-30 16:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-29 20:34 Ingo Molnar
2008-04-30 16:29 ` Roland Dreier
2008-04-30 16:37   ` Vegard Nossum [this message]
2008-04-30 20:06   ` Ingo Molnar
  -- strict thread matches above, loose matches on Subject: below --
2008-04-26  9:59 Vegard Nossum
2008-04-26 13:19 ` Ingo Molnar
2008-04-24 21:06 Ingo Molnar
2008-04-26  6:09 ` Andrew Morton

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=19f34abd0804300937k637e0308r36d4fa20899ff6bc@mail.gmail.com \
    --to=vegard.nossum@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=clameter@sgi.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=penberg@cs.helsinki.fi \
    --cc=rdreier@cisco.com \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.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

all inboxes | Powered by JetHome®