summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorJames Clark <james.clark@arm.com>2025-01-06 14:24:37 +0000
committerMarc Zyngier <maz@kernel.org>2025-01-12 12:50:11 +0000
commit38138762faffeb923d9f49efbcc09884f1530786 (patch)
treeddfd1ed9d1de65ede3fd5b7118a7f9972ecaf188 /tools/include
parentc4a6ed85455979ef3fbadc2f1bdf18734b0ecea6 (diff)
tools: arm64: Update sysreg.h header files
Created with the following: cp include/linux/kasan-tags.h tools/include/linux/ cp arch/arm64/include/asm/sysreg.h tools/arch/arm64/include/asm/ Update the tools copy of sysreg.h so that the next commit to add a new register doesn't have unrelated changes in it. Because the new version of sysreg.h includes kasan-tags.h, that file also now needs to be copied into tools. Acked-by: Mark Brown <broonie@kernel.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Signed-off-by: James Clark <james.clark@arm.com> Signed-off-by: James Clark <james.clark@linaro.org> Link: https://lore.kernel.org/r/20250106142446.628923-3-james.clark@linaro.org Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/linux/kasan-tags.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/include/linux/kasan-tags.h b/tools/include/linux/kasan-tags.h
new file mode 100644
index 0000000000000..4f85f562512cb
--- /dev/null
+++ b/tools/include/linux/kasan-tags.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_KASAN_TAGS_H
+#define _LINUX_KASAN_TAGS_H
+
+#define KASAN_TAG_KERNEL 0xFF /* native kernel pointers tag */
+#define KASAN_TAG_INVALID 0xFE /* inaccessible memory tag */
+#define KASAN_TAG_MAX 0xFD /* maximum value for random tags */
+
+#ifdef CONFIG_KASAN_HW_TAGS
+#define KASAN_TAG_MIN 0xF0 /* minimum value for random tags */
+#else
+#define KASAN_TAG_MIN 0x00 /* minimum value for random tags */
+#endif
+
+#endif /* LINUX_KASAN_TAGS_H */