Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Sep 2010 17:26:41 +0000 (UTC)
From:      Matthew D Fleming <mdf@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/share/man/man9 memguard.9 src/sys/kern kern_malloc.c src/sys/vm memguard.c memguard.h vm_extern.h vm_kern.c
Message-ID:  <201009101728.o8AHSXZn012930@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mdf         2010-09-10 17:26:41 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    share/man/man9       memguard.9 
    sys/kern             kern_malloc.c 
    sys/vm               memguard.c memguard.h vm_extern.h 
                         vm_kern.c 
  Log:
  SVN rev 212427 on 2010-09-10 17:26:41Z by mdf
  
  MFC r211194, r211229, r212058, r212063: memguard(9) rewrite
  
  r211194:
  
  Rework memguard(9) to reserve significantly more KVA to detect
  use-after-free over a longer time.  Also release the backing pages of
  a guarded allocation at free(9) time to reduce the overhead of using
  memguard(9).  Allow setting and varying the malloc type at run-time.
  Add knobs to allow:
  
   - randomly guarding memory
   - adding un-backed KVA guard pages to detect underflow and overflow
   - a lower limit on the size of allocations that are guarded
  
  r211229:
  
  Fix compile.  It seemed better to have memguard.c include opt_vm.h in
  case future compile-time knobs were added that it wants to use.
  Also add include guards and forward declarations to vm/memguard.h.
  
  r212058:
  
  The realloc case for memguard(9) will copy too many bytes when
  reallocating to a smaller-sized allocation.  Fix this issue.
  
  r212063:
  
  Have memguard(9) crash with an easier-to-debug message on double-free.
  
  Revision   Changes    Path
  1.5.10.2   +87 -31    src/share/man/man9/memguard.9
  1.172.2.2  +17 -21    src/sys/kern/kern_malloc.c
  1.7.2.2    +327 -264  src/sys/vm/memguard.c
  1.3.10.2   +26 -5     src/sys/vm/memguard.h
  1.86.2.5   +1 -0      src/sys/vm/vm_extern.h
  1.141.2.2  +27 -8     src/sys/vm/vm_kern.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009101728.o8AHSXZn012930>