Thread (4 messages) flat view 4 messages, 4 authors, 2011-11-09

Re: [PATCH] memory hotplug: Refuse to add unaligned memory regions

From: Greg KH <gregkh@suse.de>
Date: 2011-09-15 06:46:57
Also in: lkml

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 <redacted>
---
Is this something that should go into 3.1 and older kernels to properly
handle this type of error?

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help