aboutsummaryrefslogtreecommitdiff
path: root/arch/nios2/mm/fault.c
diff options
context:
space:
mode:
authorVlastimil Babka <[email protected]>2018-08-17 15:44:44 -0700
committerLinus Torvalds <[email protected]>2018-08-17 16:20:28 -0700
commit0882ff9190e3bc51e2d78c3aadd7c690eeaa91d5 (patch)
treea312187c110196abe88491dc2cb4f3228096a3c6 /arch/nios2/mm/fault.c
parent1f4aace60b0edc2d885aaa263abf4df42c8c65a8 (diff)
mm, slub: restore the original intention of prefetch_freepointer()
In SLUB, prefetch_freepointer() is used when allocating an object from cache's freelist, to make sure the next object in the list is cache-hot, since it's probable it will be allocated soon. Commit 2482ddec670f ("mm: add SLUB free list pointer obfuscation") has unintentionally changed the prefetch in a way where the prefetch is turned to a real fetch, and only the next->next pointer is prefetched. In case there is not a stream of allocations that would benefit from prefetching, the extra real fetch might add a useless cache miss to the allocation. Restore the previous behavior. Link: http://lkml.kernel.org/r/[email protected] Fixes: 2482ddec670f ("mm: add SLUB free list pointer obfuscation") Signed-off-by: Vlastimil Babka <[email protected]> Acked-by: Kees Cook <[email protected]> Cc: Daniel Micay <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: David Rientjes <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/nios2/mm/fault.c')
0 files changed, 0 insertions, 0 deletions