Giter Site home page Giter Site logo

chaogaoucr / snap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sslab-gatech/snap

0.0 0.0 0.0 272.44 MB

Shell 0.21% JavaScript 0.01% Ruby 0.01% C++ 0.08% Python 0.13% Perl 0.11% C 96.64% Scala 0.77% Clojure 0.01% Tcl 0.01% VHDL 0.02% Verilog 0.13% Assembly 1.08% Awk 0.01% XSLT 0.04% CSS 0.01% UnrealScript 0.01% TeX 0.01% ANTLR 0.01% SystemVerilog 0.75%

snap's Introduction

Hardware Support to Improve Fuzzing Performance and Precision

SNAP is a customized hardware platform that implements hardware primitives to enhance the performance and precision of coverage-guided fuzzing. SNAP was implemented on top of the RISC-V BOOM core and was prototyped in the FireSim platform that runs on cloud FPGAs (Amazon EC2 F1).

To run SNAP, you would need to replace the existing HW design directory (generator) with the SNAP's one and build a new HW design that will be mapped to FPGA instances. While all the necessary instructions to run FPGA instances are provided in the FireSim’s documentation, we add some detailed steps that might not be clearly indicated in the documentation.

Initial Setup/Installation for FireSim

Please refer to the FireSim documentation.

Setting up the FireSim Repo

When you set up a manager instance during the initial setup process, check out a specific tag, 1.9.0.

git clone https://github.com/firesim/firesim.git
cd firesim
git checkout 1.9.0 # command to check out a specific tag
./build-setup.sh fast

Replacing the Existing "generator" Directory.

git clone https://github.com/sslab-gatech/SNAP.git .
rm -rf ~/firesim/generator
cp -rf ./SNAP/generator ~/firesim/

Building a New HW Design for SNAP

  1. In ~/firesim/deploy/config_build.ini,
  • Under [afibuild], add a bucket name:
s3bucketname=firesim-snap
  • Under [builds], add a build recipe name (comment out other things).
firesim-boom-singlecore-no-nic-l2-llc4mb-ddr3-snap
  • Undr [agfistoshare], add a agfi name (comment out other things).
firesim-boom-singlecore-no-nic-l2-llc4mb-ddr3-snap
  1. In ~/firesim/deploy/config_build_recipes.ini,
  • Add a build recipe.
[firesim-boom-singlecore-no-nic-l2-llc4mb-ddr3-snap]
DESIGN=FireSim
TARGET_CONFIG=DDR3FRFCFSLLC4MB_FireSimLargeBoomConfig
PLATFORM_CONFIG=F75MHz_BaseF1Config
instancetype=f1.2xlarge
deploytriplet=None
  1. Build a new HW design (This will take a long time, ~10 hours).
firesim buildafi

After completed, you will get a new agfi number for your new HW design.
Refer to the documentation for more details.

Running FireSim Simulations with SNAP

  1. In ~/firesim/deploy/config_runtime.ini,
  • Change the default HW config.
defaulthwconfig=firesim-boom-singlecore-no-nic-l2-llc4mb-ddr3-snap
  1. In ~/firesim/deploy/config_hwdb.ini,
  • Add a new HW database.
[firesim-boom-singlecore-no-nic-l2-llc4mb-ddr3-snap]
agfi=agfi-062b20613c52a2313 # replace with your agfi after HW build completes
deploytripletoverride=None
customruntimeconfig=None
  1. Launch FPGA instance(s) following the documentation.

  2. After an FPGA instance is launched, insert modules into the kernel.

# insmod cmap.ko
# insmod lbq.ko
  1. Run binaries to trace!

Publications

@inproceedings{ding:snap,
  title        = {{Hardware Support to Improve Fuzzing Performance and Precision (to appear)}},
  author       = {Ren Ding and Yonghae Kim and Fan Sang and Wen Xu and Gururaj Saileshwar and Taesoo Kim},
  booktitle    = {Proceedings of the 28th ACM Conference on Computer and Communications Security (CCS)},
  month        = nov,
  year         = 2021,
  address      = {Seoul, South Korea},
}

snap's People

Contributors

rding0207 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.