lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 11 Oct 2010 15:21:15 -0700
From:	"H. Peter Anvin" <hpa@...ux.intel.com>
To:	David Rientjes <rientjes@...gle.com>
CC:	mingo@...hat.com, hpa@...or.com, linux-kernel@...r.kernel.org,
	yinghai@...nel.org, rja@....com, tglx@...utronix.de,
	linux-tip-commits@...r.kernel.org,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Robin Holt <holt@....com>,
	Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...e.hu>
Subject: Re: [tip:x86/urgent] x86, numa: For each node, register the memory
 blocks actually used

On 10/11/2010 03:05 PM, David Rientjes wrote:
>>
>> Use nodememblk_range[] instead of nodes[] in order to make sure we
>> capture the actual memory blocks registered with each node.  nodes[]
>> contains an extended range which spans all memory regions associated
>> with a node, but that does not mean that all the memory in between are
>> included.
>>
>> Reported-by: Russ Anderson <rja@....com>
>> Tested-by: Russ Anderson <rja@....com>
>> Signed-off-by: Yinghai Lu <yinghai@...nel.org>
>> LKML-Reference: <4CB27BDF.5000800@...nel.org>
>> Cc: David Rientjes <rientjes@...gle.com>
>> Cc: <stable@...nel.org> 2.6.33 .34 .35 .36
>> Signed-off-by: H. Peter Anvin <hpa@...ux.intel.com>
> 
> Acked-by: David Rientjes <rientjes@...gle.com>
> 
> Sorry I hadn't seen this thread earlier, I wasn't cc'd on it.

Thanks for confirming.  I don't have access to any systems on which I
can verify this condition myself, but I spent some fairly serious time
time morning on code inspection, and I'm pretty sure I grok what this
patch does and that it is the right thing.

This is not just an SGI UV problem but will in fact bite any system
which has nodes with interlaced memory blocks (for example block 0
belongs to node 0, block 1 belongs to node 1, and then block 2 belongs
to node 0 again.)

There are multiple loops after these which rely on the nodes[] range,
but in fact they rely on exactly this loop to have registered the
relevant memory ranges for the node, so fixing this loop fixes the
subsequent ones.  Of course, it *seriously* begs the question why
nodes[] carry a range at all (well, other than to support bootmem, which
seems like yet another good reason to finish off bootmem.)

Any help in testing would be highly appreciated.  Please feel free to
involve anyone else who would likely have access to the kind of large
NUMA x86 systems which are likely to be affected.

	-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ