GithubHelp home page GithubHelp logo

hedayati / hodor Goto Github PK

View Code? Open in Web Editor NEW
21.0 6.0 5.0 221.84 MB

Hodor-PKU

License: MIT License

Makefile 0.26% C 96.28% Objective-C 0.31% Assembly 1.46% C++ 1.33% Shell 0.09% Perl 0.13% Awk 0.01% Python 0.07% GDB 0.01% sed 0.01% Yacc 0.02% Lex 0.01% UnrealScript 0.01% SmPL 0.01% Gherkin 0.01% XS 0.01% Roff 0.01% Clojure 0.01% M4 0.01%
protected-library intel-pku mpk kernel-bypass hodor pku hodor-pku

hodor's Introduction

Overview

Hodor is a project from University of Rochester with the goal of isolating data-plane libraries from the applications that use them and enabling sharing of system services. This repository is an implementation of Hodor-PKU which uses Intel Protection Keys for User-space (PKU) for isolation.

This work was published on ATC'19:

Hodor: Intra-Process Isolation for High-Throughput Data Plane Libraries https://www.usenix.org/conference/atc19/presentation/hedayati-hodor

Requirements

Hodor-PKU requires processors with PKU feature (tested on Skylake-SP).

How to Run Hodor-PKU

After cloning the repository, you need to configure, build and boot into the Hodor kernel (if you plan to run inside a VM, hodor-pku-vm.config may be good configuration to start from):

git clone https://github.com/hedayati/hodor
cd hodor/linux-4.15
mkdir -p ~/builds
make O=~/builds/linux-hodor allyesconfig
cp ../hodor-pku-vm.config ~/builds/linux-hodor/.config
cd ~/builds/linux-hodor
make menuconfig
make -jX bzImage modules
sudo make modules_install install
sudo vim /boot/grub2/grub.cfg
# add "nosmep nosmap" as boot parameters

At this step you should be able to build the module, the library and tests:

make

and, load the module:

sudo insmod kern/hodor.ko

To ensure everything woks, run bench_trampoline:

cd tests
sudo LD_LIBRARY_PATH=. ./bench_trampoline

Look at example and apps to see how Hodor can be instructed to load a protected library.

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.