All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@suse.de>
To: vgoyal@in.ibm.com
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
	Andi Kleen <ak@muc.de>
Subject: Re: Will smp alternative try to patch init text also?
Date: Wed, 14 Feb 2007 11:51:31 +0100	[thread overview]
Message-ID: <45D2E9B3.8080008@suse.de> (raw)
In-Reply-To: <20070214104338.GA3393@in.ibm.com>

Vivek Goyal wrote:
> So what happens if somebody builds a SMP kernel and runs on a UP machine.
> Later it hotplus one CPU. Then kernel will switch to SMP mode. Looking
> at the code it looks like it will also try to patch init text which is
> no more there and will corrupt something else? 

There are range checks for both kernel (_text -> _etext) and modules
(.text section).  Anything outside isn't patched.

cheers,
  Gerd

-- 
Gerd Hoffmann <kraxel@suse.de>

  reply	other threads:[~2007-02-14 10:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-14 10:43 Will smp alternative try to patch init text also? Vivek Goyal
2007-02-14 10:51 ` Gerd Hoffmann [this message]
2007-02-14 11:12   ` Vivek Goyal

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=45D2E9B3.8080008@suse.de \
    --to=kraxel@suse.de \
    --cc=ak@muc.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vgoyal@in.ibm.com \
    /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 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.