kmemcheck updates for tip/kmemcheck
Hi Ingo,
A rather large update, most of it is implementing the correct REP MOVS/STOS handling on P4s. I've tested it on both 32-bit and 64-bit and everything seems good! Also included is the DMA API hooks which prevents false-positive reports from reads in DMA-able memory.
--
The following changes since commit d99de804af81f223445368b8cb40d44ff12ec89a:
Ingo Molnar (1):
Merge commit 'v2.6.27-rc3' into kmemcheck
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/vegard/kmemcheck.git for-tip2
Vegard Nossum (7):
kmemcheck: add DMA hooks
kmemcheck: work with sizes in terms of bytes instead of bits
kmemcheck: allow memory accesses that cross page boundaries
kmemcheck: add some more documentation
kmemcheck: add some comments
kmemcheck: save memory contents on use of uninitialized memory
kmemcheck: implement REP MOVS/STOS emulation
arch/x86/Kconfig.debug | 2 +- arch/x86/kernel/traps_32.c | 8 +- arch/x86/kernel/traps_64.c | 8 +- arch/x86/mm/kmemcheck/error.c | 25 +++- arch/x86/mm/kmemcheck/kmemcheck.c | 322 +++++++++++++++++++++++++++---------- arch/x86/mm/kmemcheck/opcode.c | 38 ++++-- arch/x86/mm/kmemcheck/opcode.h | 3 +- arch/x86/mm/kmemcheck/shadow.c | 76 ++-------- arch/x86/mm/kmemcheck/string.c | 4 + include/asm-x86/dma-mapping.h | 2 + include/asm-x86/kmemcheck.h | 6 + include/linux/kmemcheck.h | 16 ++ mm/kmemcheck.c | 6 + 13 files changed, 339 insertions(+), 177 deletions(-)
Thanks,
Vegard
Quoted 6 lines · Vegard Nossum
Hi Ingo,
A rather large update, most of it is implementing the correct REP MOVS/STOS handling on P4s. I've tested it on both 32-bit and 64-bit and everything seems good! Also included is the DMA API hooks which prevents false-positive reports from reads in DMA-able memory.
pulled, thanks Vegard. Great progress on a rather difficult aspect of kmemcheck!
Ingo