summaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2013-01-23 22:45:48 +0100
committerPekka Enberg <penberg@kernel.org>2013-04-05 13:23:06 +0200
commit7cccd80b4397699902aced1ad3d692d384aaab77 (patch)
tree010bad7b7e3d3969f6050406b448fbcbc57cdca0 /mm/slab.c
parentslub: Do not dereference NULL pointer in node_match (diff)
downloadlinux-7cccd80b4397699902aced1ad3d692d384aaab77.tar.xz
linux-7cccd80b4397699902aced1ad3d692d384aaab77.zip
slub: tid must be retrieved from the percpu area of the current processor
As Steven Rostedt has pointer out: rescheduling could occur on a different processor after the determination of the per cpu pointer and before the tid is retrieved. This could result in allocation from the wrong node in slab_alloc(). The effect is much more severe in slab_free() where we could free to the freelist of the wrong page. The window for something like that occurring is pretty small but it is possible. Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'mm/slab.c')
0 files changed, 0 insertions, 0 deletions