google / kernel-sanitizers

Linux Kernel Sanitizers, fast bug-detectors for the Linux kernel
https://google.github.io/kernel-sanitizers/
442 stars 87 forks source link

[kfence] Support ARM64 #47

Closed ramosian-glider closed 4 years ago

ramosian-glider commented 4 years ago

Most of the code is arch-agnostic, but page protection may need to be ported to ARM64

melver commented 4 years ago

We have a prototype (https://github.com/google/kasan/pull/123), but we should still try to figure out how to make it work with the static pool.

melver commented 4 years ago

Since the last comment here, we have a version using alloc_pages(). We've been trying to get a static-pool.

FTR; With input from Mark, Alex provides some more insights into static pool for arm64: https://lkml.kernel.org/r/CAG_fn=VOR-3LgmLY-T2Fy6K_VYFgCHK0Hv+Y-atrvrVZ4mQE=Q@mail.gmail.com

melver commented 4 years ago

We abandoned the static pool entirely, and the current arm64 version won't receive major changes.