Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1206517
| From | Andrey Ryabinin <ryabinin.a.a@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v6 1/2] x86/kasan: define KASAN_SHADOW_OFFSET per architecture |
| Date | 2015-08-13 07:40 +0200 |
| Message-ID | <pWTp8-2nL-13@gated-at.bofh.it> (permalink) |
| References | <pWTp7-2nL-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Current definition of KASAN_SHADOW_OFFSET in include/linux/kasan.h will not work for upcomming arm64, so move it to the arch header. Signed-off-by: Andrey Ryabinin <ryabinin.a.a@gmail.com> --- arch/x86/include/asm/kasan.h | 3 +++ include/linux/kasan.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/kasan.h b/arch/x86/include/asm/kasan.h index 74a2a8d..1410b56 100644 --- a/arch/x86/include/asm/kasan.h +++ b/arch/x86/include/asm/kasan.h @@ -1,6 +1,9 @@ #ifndef _ASM_X86_KASAN_H #define _ASM_X86_KASAN_H +#include <linux/const.h> +#define KASAN_SHADOW_OFFSET _AC(CONFIG_KASAN_SHADOW_OFFSET, UL) + /* * Compiler uses shadow offset assuming that addresses start * from 0. Kernel addresses don't start from 0, so shadow diff --git a/include/linux/kasan.h b/include/linux/kasan.h index 5486d77..6fb1c7d 100644 --- a/include/linux/kasan.h +++ b/include/linux/kasan.h @@ -10,7 +10,6 @@ struct vm_struct; #ifdef CONFIG_KASAN #define KASAN_SHADOW_SCALE_SHIFT 3 -#define KASAN_SHADOW_OFFSET _AC(CONFIG_KASAN_SHADOW_OFFSET, UL) #include <asm/kasan.h> #include <linux/sched.h> -- 2.4.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/2] x86/KASAN updates for 4.3 Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-13 07:40 +0200
[PATCH v6 1/2] x86/kasan: define KASAN_SHADOW_OFFSET per architecture Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-13 07:40 +0200
[PATCH v6 2/2] x86/kasan, mm: introduce generic kasan_populate_zero_shadow() Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-13 07:40 +0200
Re: [PATCH 0/2] x86/KASAN updates for 4.3 Ingo Molnar <mingo@kernel.org> - 2015-08-13 09:00 +0200
Re: [PATCH 0/2] x86/KASAN updates for 4.3 Ingo Molnar <mingo@kernel.org> - 2015-08-13 10:20 +0200
Re: [PATCH 0/2] x86/KASAN updates for 4.3 Will Deacon <will.deacon@arm.com> - 2015-08-13 11:10 +0200
Re: [PATCH 0/2] x86/KASAN updates for 4.3 Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-13 13:10 +0200
Re: [PATCH 0/2] x86/KASAN updates for 4.3 Will Deacon <will.deacon@arm.com> - 2015-08-13 13:30 +0200
Re: [PATCH 0/2] x86/KASAN updates for 4.3 Will Deacon <will.deacon@arm.com> - 2015-08-13 19:30 +0200
csiph-web