Coder Social home page Coder Social logo

jiankangren / fpga-hammer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amusant/fpga-hammer

0.0 2.0 0.0 4.9 MB

An OpenCL program to rowhammer Linux from the FPGA side

TeX 86.51% Makefile 0.77% Shell 0.84% C 5.13% Python 0.23% C++ 6.03% SystemVerilog 0.18% R 0.31%

fpga-hammer's Introduction

fpga-hammer

An OpenCL program to rowhammer Linux from the FPGA side.

This project aims at reproducing/characterizing rowhammer attack on recent SDRAM chips (~40nm). We use a popular SoCFPGA platform (DE1SoC). The SDRAM DDR3 memory on board is hammered from the FPGA. There is a configurable hardware block programmed in FPGA capable of hamering the SDRAM. The following parameters can be configured

Address Range

Refresh Interval

Activation Interval.

Data Pattern(RowStripe, Chekered adn Random).

The rowhammer fault injection is achieved by repeatedly opening and closing a SDRAM row (agressor) within the same bank. The neighbouring rows are discharged in this process. And if done sufficient number of times within the refresh interval it can flip bits in the neighbouring rows (victim). The agressor row itself is unchanged as its charge content is reinforced through read operation. The DDR chip tested is the ISSI IS43/46TR16256A, which is organised as two 256M x 16 chips with a total memory size of 1GB. The page size is 4KB, and the hammering addresses are calculated acocrdingly. We tried threee different patterns

RowStripe: Alternate rows of zero and one

Chekered: 0s and 1s organised as in chessboard.

Random: random strings of 0s and 1s.

As noted by the rowhammer paper(~smith) teh Rowstripe pattern gives the maximum number of errors. We vary the refresh Interval from 32ms to 128ms. The refresh interval in DDR3 standard is 64ms. The activation interval, i.e the time between two hammers is ~50 ns on average. This is the minimum due to DDR3 row cycle time constraint.

fpga-hammer's People

Contributors

amusant avatar

Watchers

 avatar  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.