summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorAndrey Ryabinin2015-04-16 01:15:05 +0200
committerLinus Torvalds2015-04-16 01:35:20 +0200
commit923936157b158f36bd6a3d86496dce82b1a957de (patch)
tree4a78fc384c220efad52d250b49795b535fbc2db0 /mm/memory.c
parentmm/cma_debug.c: remove blank lines before DEFINE_SIMPLE_ATTRIBUTE() (diff)
downloadkernel-qcow2-linux-923936157b158f36bd6a3d86496dce82b1a957de.tar.gz
kernel-qcow2-linux-923936157b158f36bd6a3d86496dce82b1a957de.tar.xz
kernel-qcow2-linux-923936157b158f36bd6a3d86496dce82b1a957de.zip
mm/mempool.c: kasan: poison mempool elements
Mempools keep allocated objects in reserved for situations when ordinary allocation may not be possible to satisfy. These objects shouldn't be accessed before they leave the pool. This patch poison elements when get into the pool and unpoison when they leave it. This will let KASan to detect use-after-free of mempool's elements. Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com> Tested-by: David Rientjes <rientjes@google.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Dmitry Chernenkov <drcheren@gmail.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Alexander Potapenko <glider@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions