1. 30 Aug, 2021 31 commits
  2. 28 Aug, 2021 5 commits
  3. 27 Aug, 2021 4 commits
    • Dridi Boukelmoune's avatar
      vrt: Make sure VRT_Rollback() has a snapshot · 8e36cb70
      Dridi Boukelmoune authored
      Otherwise we would entirely unravel the task workspace.
      8e36cb70
    • Dridi Boukelmoune's avatar
      travis: Workspace emulator coverage · f237ed15
      Dridi Boukelmoune authored
      f237ed15
    • Dridi Boukelmoune's avatar
      circleci: Workspace emulator coverage · 5770abc3
      Dridi Boukelmoune authored
      5770abc3
    • Dridi Boukelmoune's avatar
      ws_emu: Introduce the workspace emulator · cfa0983d
      Dridi Boukelmoune authored
      The goal of the workspace emulator is to replicate the regular workspace
      behavior with individual allocations and make it work transparently.
      
      It's the successor of the workspace sanitizer from #3320 with notable
      differences:
      
      - enabled at configure time instead of run time
      - in a separate source file instead of mixed in
      - using sparse allocations instead of built-in red zones
      
      This means that the workspace emulator can be combined with regular
      sanitizer, in particular asan and lsan. If available, asan's public
      interface is used to mitigate the possible overflow of a reservation
      after some of it was released.
      
      Even without sanitizers, the fact that we integrate with jemalloc by
      default and enable its abort and junk options in varnishtest is enough
      to detect a use-after-free in some cases.
      
      With sanitizers though, the workspace emulator can observe #3550.
      
      One drawback is that the logic is split in two files, and some functions
      are identical in the two files. It might be possible to split cache_ws.c
      into something like cache_ws_alloc.c and cache_ws_util.c for example.
      
      Closes #3320
      Refs #3550
      Refs #3600
      cfa0983d