Skip to content
  1. Mar 12, 2013
  2. Mar 11, 2013
    • Reid Kleckner's avatar
      [msan] intercept dlopen and clear shadow for it · c9d382b5
      Reid Kleckner authored
      Summary:
      The loader does not call mmap() through the PLT because it has to
      bootstrap the process before libc is present.  Hooking dlopen() isn't
      enough either because the loader runs module initializers before
      returning, and they could run arbitrary msan instrumented code.
      
      If msandr is present, then we can intercept the mmaps from dlopen at the
      syscall layer and clear the shadow there.  If msandr is missing, we
      clear the shadow after dlopen() and hope any initializers are trivial.
      
      Reviewers: eugenis
      
      CC: kcc, llvm-commits
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D509
      
      llvm-svn: 176818
      c9d382b5
  3. Jan 30, 2013
  4. Jan 22, 2013
  5. Jan 10, 2013
  6. Dec 26, 2012
  7. Dec 11, 2012
Loading