Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1214018
| From | Andrey Ryabinin <ryabinin.a.a@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/4] efi/runtime-wrappers, kasan: don't sanitize runtime wrappers. |
| Date | 2015-08-26 18:20 +0200 |
| Message-ID | <q1LAD-2ow-33@gated-at.bofh.it> (permalink) |
| References | <q1LAC-2ow-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
ARM64 maps efi runtime services in userspace addresses which don't have KASAN shadow. So dereferencing these addresses in efi_call_virt() will cause crash if this code instrumented. Signed-off-by: Andrey Ryabinin <ryabinin.a.a@gmail.com> --- drivers/firmware/efi/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/firmware/efi/Makefile b/drivers/firmware/efi/Makefile index 6fd3da9..413fcf2 100644 --- a/drivers/firmware/efi/Makefile +++ b/drivers/firmware/efi/Makefile @@ -1,6 +1,14 @@ # # Makefile for linux kernel # + +# +# ARM64 maps efi runtime services in userspace addresses +# which don't have KASAN shadow. So dereference of these addresses +# in efi_call_virt() will cause crash if this code instrumented. +# +KASAN_SANITIZE_runtime-wrappers.o := n + obj-$(CONFIG_EFI) += efi.o vars.o reboot.o obj-$(CONFIG_EFI_VARS) += efivars.o obj-$(CONFIG_EFI_ESRT) += esrt.o -- 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/4] KASAN/ARM64 EFI fixes Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-26 18:20 +0200
[PATCH 4/4] libfdt, kasan: don't instrument libfdt. Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-26 18:20 +0200
[PATCH 2/4] efi/runtime-wrappers, kasan: don't sanitize runtime wrappers. Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-26 18:20 +0200
[PATCH 1/4] x86, efi, kasan: #undef memset/memcpy/memmove per arch. Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-26 18:20 +0200
Re: [PATCH 1/4] x86, efi, kasan: #undef memset/memcpy/memmove per arch. Ingo Molnar <mingo@kernel.org> - 2015-08-28 08:30 +0200
Re: [PATCH 1/4] x86, efi, kasan: #undef memset/memcpy/memmove per arch. Leif Lindholm <leif.lindholm@linaro.org> - 2015-08-28 10:40 +0200
Re: [PATCH 1/4] x86, efi, kasan: #undef memset/memcpy/memmove per arch. Ingo Molnar <mingo@kernel.org> - 2015-08-28 12:00 +0200
[PATCH v2] x86, efi, kasan: #undef memset/memcpy/memmove per arch. Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-28 13:20 +0200
Re: [PATCH v2] x86, efi, kasan: #undef memset/memcpy/memmove per arch. Matt Fleming <matt@codeblueprint.co.uk> - 2015-08-28 16:50 +0200
Re: [PATCH v2] x86, efi, kasan: #undef memset/memcpy/memmove per arch. Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-28 17:00 +0200
[PATCH 3/4] arm64/efi-stub, kasan: don't instrument efi-stub. Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2015-08-26 18:20 +0200
csiph-web