linux/arch/x86/mm/kmemcheck
Catalin Marinas 81fc03909a kmemcheck: Test the full object in kmemcheck_is_obj_initialized()
This is a fix for bug #14845 (bugzilla.kernel.org). The update_checksum()
function in mm/kmemleak.c calls kmemcheck_is_obj_initialised() before scanning
an object. When KMEMCHECK_PARTIAL_OK is enabled, this function returns true.
However, the crc32_le() reads smaller intervals (32-bit) for which
kmemleak_is_obj_initialised() may be false leading to a kmemcheck warning.

Note that kmemcheck_is_obj_initialized() is currently only used by
kmemleak before scanning a memory location.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Christian Casteyde <casteyde.christian@free.fr>
Cc: Vegard Nossum <vegardno@ifi.uio.no>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
2010-02-17 21:39:08 +02:00
..
error.c x86, kmemcheck: Use KERN_WARNING for error reporting 2009-12-28 10:28:35 +01:00
error.h kmemcheck: add the kmemcheck core 2009-06-13 15:37:30 +02:00
kmemcheck.c kmemcheck: Test the full object in kmemcheck_is_obj_initialized() 2010-02-17 21:39:08 +02:00
Makefile kmemcheck: add opcode self-testing at boot 2009-06-15 15:49:22 +02:00
opcode.c kmemcheck: move 64-bit ifdef out of kmemcheck_opcode_decode() 2009-06-15 12:39:59 +02:00
opcode.h kmemcheck: add the kmemcheck core 2009-06-13 15:37:30 +02:00
pte.c kmemcheck: add the kmemcheck core 2009-06-13 15:37:30 +02:00
pte.h kmemcheck: add the kmemcheck core 2009-06-13 15:37:30 +02:00
selftest.c kmemcheck: add opcode self-testing at boot 2009-06-15 15:49:22 +02:00
selftest.h kmemcheck: add opcode self-testing at boot 2009-06-15 15:49:22 +02:00
shadow.c kmemcheck: Test the full object in kmemcheck_is_obj_initialized() 2010-02-17 21:39:08 +02:00
shadow.h kmemcheck: Test the full object in kmemcheck_is_obj_initialized() 2010-02-17 21:39:08 +02:00