Giter Club home page Giter Club logo

enable_rdfsbase's Introduction

SECURITY NOTICE: This kernel module is intended for evaluation only, NOT in production! Enabling rdfsbase-family instructions in the way shown in this kernel module creates a full unpriviledged root hole in the Linux kernel. The Linux kernel community is actively working on a patchset that does rdfsbase enabling in a secure way. And hopefully, we shall see the patchset merged in the near future. For more information, see a LWN post on FSGSBASE patch series and discussions about the patchset on Linux mailing list.

Introduction

This is a Linux kernel module that enables RDFSBASE, WRFSBASE, RDGSBASE, WRGSBASE instructions on x86. These instructions are disabled by default on Linux. They can be enabled by setting the 16th bit of CR4, i.e., CR4.FSGSBASE.

How to Build

To compile the kernel module, run the following command

make

To enable RDFSBASE instruction and its friends until the next OS reboot, run the following command

make install

To disable RDFSBASE instruction and its friends until the next OS reboot, run the following command

make uninstall

How to Install

To enable RDFSBASE permanently (i.e., enabled even after the next OS reboot), run

./install.sh

To uninstall, run

./uninstall.sh

Kernel Compatibility

This code has been tested with Linux kernel 4.15. It may or may not work with newer or older versions of Linux kernel.

enable_rdfsbase's People

Contributors

tatetian avatar jiazhang0 avatar uudiin avatar dingelish avatar

Watchers

James Cloos 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.