Git Product home page Git Product logo

Comments (3)

ramosian-glider avatar ramosian-glider commented on May 8, 2024

Most of the code is arch-agnostic. You'll probably need to port the following stuff:

  • calls to functions from kmsan_entry.c from arch/x86/entry/entry_64.S
  • hooks for copy_{to,from}_user() in uaccess.h
  • 847e109 ("kmsan: x86: sync metadata pages on page fault")
  • enable CONFIG_GENERIC_CSUM (and probably other configs that replace handwritten assembly routines with C code)

I don't have an ARM64 device at hand to test the port, but I'm happy to review and take decent patches, feel free to send pull requests.

I also encourage you to use a more recent LLVM revision (I'm building KMSAN with a 10.0.0 trunk)

from kmsan.

OpenStacksh avatar OpenStacksh commented on May 8, 2024

What does clang need to modify to support arm64? Right now the instrumentation pass supports x86_64 only.

from kmsan.

ramosian-glider avatar ramosian-glider commented on May 8, 2024

I believe we are now in a far better position to support ARM64 (not ARM32, sorry).
Clang's MemorySanitizer pass supports it long ago, so one just needs some driver changes to allow using KMSAN with aarch64.
As for the kernel part, the patches to be released in 6.1 are split in a way that should make porting quite straightforward.
I might give it a shot in 2023, but patches are always welcome.

from kmsan.

Related Issues (20)

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.