diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-01-06 00:37:02 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2007-01-06 07:55:29 (GMT) |
commit | f2e12bb272f2544d1504f982270e90ae3dcc4ff2 (patch) | |
tree | 68e8d10521fdcf1d7f4df411d87809cd1110b929 /scripts/kconfig/qconf.cc | |
parent | 6929da4427b4335365dd51ab0b7dd2a0393656f0 (diff) | |
download | linux-fsl-qoriq-f2e12bb272f2544d1504f982270e90ae3dcc4ff2.tar.xz |
[PATCH] Check for populated zone in __drain_pages
Both process_zones() and drain_node_pages() check for populated zones
before touching pagesets. However, __drain_pages does not do so,
This may result in a NULL pointer dereference for pagesets in unpopulated
zones if a NUMA setup is combined with cpu hotplug.
Initially the unpopulated zone has the pcp pointers pointing to the boot
pagesets. Since the zone is not populated the boot pageset pointers will
not be changed during page allocator and slab bootstrap.
If a cpu is later brought down (first call to __drain_pages()) then the pcp
pointers for cpus in unpopulated zones are set to NULL since __drain_pages
does not first check for an unpopulated zone.
If the cpu is then brought up again then we call process_zones() which will
ignore the unpopulated zone. So the pageset pointers will still be NULL.
If the cpu is then again brought down then __drain_pages will attempt to
drain pages by following the NULL pageset pointer for unpopulated zones.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
0 files changed, 0 insertions, 0 deletions