diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2010-02-08 11:16:24 +0000 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2010-02-17 21:39:08 +0200 |
commit | 81fc03909a80bead8f553287a2b749a1d29dca64 (patch) | |
tree | 6c62a780be628ea551bf1e5854260ce94608c521 /Documentation | |
parent | 724e6d3fe8003c3f60bf404bf22e4e331327c596 (diff) | |
download | blackbird-op-linux-81fc03909a80bead8f553287a2b749a1d29dca64.tar.gz blackbird-op-linux-81fc03909a80bead8f553287a2b749a1d29dca64.zip |
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions