]> Git Repo - linux.git/commit - mm/slub.c
SLUB: fix behavior if the text output of list_locations overflows PAGE_SIZE
authorChristoph Lameter <[email protected]>
Sun, 24 Jun 2007 00:16:32 +0000 (17:16 -0700)
committerLinus Torvalds <[email protected]>
Sun, 24 Jun 2007 15:59:11 +0000 (08:59 -0700)
commit849663430268db63a9c3c7467984e4e530ded901
tree376459d03c5be4757813c5d185e364307bbbbd39
parent1e27dbe7746f3bcbcf1f9a37f31df4b886e36ce3
SLUB: fix behavior if the text output of list_locations overflows PAGE_SIZE

If slabs are allocated or freed from a large set of call sites (typical for
the kmalloc area) then we may create more output than fits into a single
PAGE and sysfs only gives us one page.  The output should be truncated.
This patch fixes the checks to do the truncation properly.

Signed-off-by: Christoph Lameter <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slub.c
This page took 0.038585 seconds and 4 git commands to generate.