All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@suse.de>
To: Anton Blanchard <anton@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] memory hotplug: Refuse to add unaligned memory regions
Date: Thu, 15 Sep 2011 08:35:43 +0200	[thread overview]
Message-ID: <20110915063543.GA29211@suse.de> (raw)
In-Reply-To: <20110915062615.782bc4df@kryten>

On Thu, Sep 15, 2011 at 06:26:15AM +1000, Anton Blanchard wrote:
> 
> The sysfs memory probe interface allows unaligned regions
> to be added:
> 
> # echo 0xffffff > /sys/devices/system/memory/probe
> 
> # cat /proc/iomem 
> 00ffffff-01fffffe : System RAM
> 01ffffff-02fffffe : System RAM
> 02ffffff-03fffffe : System RAM
> 03ffffff-04fffffe : System RAM
> 04ffffff-05fffffe : System RAM
> 
> Return -EINVAL instead of creating these bad regions.
> 
> Signed-off-by: Anton Blanchard <anton@samba.org>
> ---

Is this something that should go into 3.1 and older kernels to properly
handle this type of error?

greg k-h

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@suse.de>
To: Anton Blanchard <anton@samba.org>
Cc: nfont@austin.ibm.com, linuxppc-dev@lists.ozlabs.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] memory hotplug: Refuse to add unaligned memory regions
Date: Thu, 15 Sep 2011 08:35:43 +0200	[thread overview]
Message-ID: <20110915063543.GA29211@suse.de> (raw)
In-Reply-To: <20110915062615.782bc4df@kryten>

On Thu, Sep 15, 2011 at 06:26:15AM +1000, Anton Blanchard wrote:
> 
> The sysfs memory probe interface allows unaligned regions
> to be added:
> 
> # echo 0xffffff > /sys/devices/system/memory/probe
> 
> # cat /proc/iomem 
> 00ffffff-01fffffe : System RAM
> 01ffffff-02fffffe : System RAM
> 02ffffff-03fffffe : System RAM
> 03ffffff-04fffffe : System RAM
> 04ffffff-05fffffe : System RAM
> 
> Return -EINVAL instead of creating these bad regions.
> 
> Signed-off-by: Anton Blanchard <anton@samba.org>
> ---

Is this something that should go into 3.1 and older kernels to properly
handle this type of error?

greg k-h

  reply	other threads:[~2011-09-15  6:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-14 20:26 [PATCH] memory hotplug: Refuse to add unaligned memory regions Anton Blanchard
2011-09-15  6:35 ` Greg KH [this message]
2011-09-15  6:35   ` Greg KH
2011-09-15  7:58 ` Andrew Morton
2011-09-15  7:58   ` Andrew Morton
2011-11-09  7:28 ` Chen Gong
2011-11-09  7:28   ` Chen Gong

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=20110915063543.GA29211@suse.de \
    --to=gregkh@suse.de \
    --cc=anton@samba.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.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 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.