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 /arch/x86/math-emu | |
parent | 724e6d3fe8003c3f60bf404bf22e4e331327c596 (diff) | |
download | kernel_samsung_smdk4412-81fc03909a80bead8f553287a2b749a1d29dca64.zip kernel_samsung_smdk4412-81fc03909a80bead8f553287a2b749a1d29dca64.tar.gz kernel_samsung_smdk4412-81fc03909a80bead8f553287a2b749a1d29dca64.tar.bz2 |
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 'arch/x86/math-emu')
0 files changed, 0 insertions, 0 deletions