Skip to contentSkip to conversation

kmemcheck updates for tip/kmemcheck

GIT PULL Vegard Nossum 2 participants 2 messages Aug 29, 2008 – Sep 6, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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