diff options
| author | Andrey Konovalov <[email protected]> | 2018-12-28 08:30:54 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-12-28 20:11:44 +0000 |
| commit | 41eea9cd239c5b3fff726894f85c97f60e5799a3 (patch) | |
| tree | 1a22d8495f8f69d9baa8916d347e50178dc00a6c /lib/debugobjects.c | |
| parent | kasan: add hooks implementation for tag-based mode (diff) | |
| download | kernel-41eea9cd239c5b3fff726894f85c97f60e5799a3.tar.gz kernel-41eea9cd239c5b3fff726894f85c97f60e5799a3.zip | |
kasan, arm64: add brk handler for inline instrumentation
Tag-based KASAN inline instrumentation mode (which embeds checks of shadow
memory into the generated code, instead of inserting a callback) generates
a brk instruction when a tag mismatch is detected.
This commit adds a tag-based KASAN specific brk handler, that decodes the
immediate value passed to the brk instructions (to extract information
about the memory access that triggered the mismatch), reads the register
values (x0 contains the guilty address) and reports the bug.
Link: http://lkml.kernel.org/r/c91fe7684070e34dc34b419e6b69498f4dcacc2d.1544099024.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Andrey Ryabinin <[email protected]>
Reviewed-by: Dmitry Vyukov <[email protected]>
Acked-by: Will Deacon <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Mark Rutland <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
