diff options
author | Sean Rees <[email protected]> | 2017-02-08 14:30:59 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-02-08 15:41:43 -0800 |
commit | a810007afe239d59c1115fcaa06eb5b480f876e9 (patch) | |
tree | 25bbc5efa479af7cb1ca2defeeffb2040600a2fd /tools/perf/util/trace-event-scripting.c | |
parent | 4d59b6ccf000862beed6fc0765d3209f98a8d8a2 (diff) |
mm/slub.c: fix random_seq offset destruction
Commit 210e7a43fa90 ("mm: SLUB freelist randomization") broke USB hub
initialisation as described in
https://bugzilla.kernel.org/show_bug.cgi?id=177551.
Bail out early from init_cache_random_seq if s->random_seq is already
initialised. This prevents destroying the previously computed
random_seq offsets later in the function.
If the offsets are destroyed, then shuffle_freelist will truncate
page->freelist to just the first object (orphaning the rest).
Fixes: 210e7a43fa90 ("mm: SLUB freelist randomization")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Sean Rees <[email protected]>
Reported-by: <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Thomas Garnier <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions