summaryrefslogtreecommitdiffstats
path: root/mm/vmacache.c
diff options
context:
space:
mode:
authorJohn Sperbeck <jsperbeck@google.com>2017-01-10 16:58:24 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-10 18:31:55 -0800
commitc4e490cf148e85ead0d1b1c2caaba833f1d5b29f (patch)
tree9e6fc52e9ec0013941e765c9c6f5daeb6b3f56d8 /mm/vmacache.c
parentb09ab054b69b07077bd3292f67e777861ac796e5 (diff)
downloadblackbird-obmc-linux-c4e490cf148e85ead0d1b1c2caaba833f1d5b29f.tar.gz
blackbird-obmc-linux-c4e490cf148e85ead0d1b1c2caaba833f1d5b29f.zip
mm/slab.c: fix SLAB freelist randomization duplicate entries
This patch fixes a bug in the freelist randomization code. When a high random number is used, the freelist will contain duplicate entries. It will result in different allocations sharing the same chunk. It will result in odd behaviours and crashes. It should be uncommon but it depends on the machines. We saw it happening more often on some machines (every few hours of running tests). Fixes: c7ce4f60ac19 ("mm: SLAB freelist randomization") Link: http://lkml.kernel.org/r/20170103181908.143178-1-thgarnie@google.com Signed-off-by: John Sperbeck <jsperbeck@google.com> Signed-off-by: Thomas Garnier <thgarnie@google.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmacache.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud