Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1319557
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 resend 6/6] arm64: switch to relative exception tables |
| Date | 2016-01-27 20:50 +0100 |
| Message-ID | <qVEgl-6M-81@gated-at.bofh.it> (permalink) |
| References | <qVvZn-2he-5@gated-at.bofh.it> <qVvZo-2he-21@gated-at.bofh.it> <qVE6C-8tR-5@gated-at.bofh.it> <qVE6C-8tR-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, 27 Jan 2016 20:39:23 +0100 Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote: > On 27 January 2016 at 20:35, Andrew Morton <akpm@linux-foundation.org> wrote: > > On Wed, 27 Jan 2016 11:55:23 +0100 Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote: > > > >> Instead of using absolute addresses for both the exception location > >> and the fixup, use offsets relative to the exception table entry values. > >> Not only does this cut the size of the exception table in half, it is > >> also a prerequisite for KASLR, since absolute exception table entries > >> are subject to dynamic relocation, which is incompatible with the sorting > >> of the exception table that occurs at build time. > >> > >> This patch also introduces the _ASM_EXTABLE preprocessor macro (which > >> exists on x86 as well) and its _asm_extable assembly counterpart, as > >> shorthands to emit exception table entries. > > > > checkpatch speaketh truth: > > > > ERROR: #define of 'ARCH_HAS_RELATIVE_EXTABLE' is wrong - use Kconfig variables or standard guards instead > > #113: FILE: arch/arm64/include/asm/uaccess.h:56: > > That may be true, but it extends an established pattern of #defines in > the various uaccess.h versions, i.e., ARCH_HAS_SORT_EXTABLE, and > ARCH_HAS_SEARCH_EXTABLE True. But now we have two things to fix, not one ;) Whatever. Later.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 resend 0/6] generic relative extable support Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-27 12:00 +0100
[PATCH v2 resend 5/6] ia64/extable: use generic search and sort routines Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-27 12:00 +0100
[PATCH v2 resend 1/6] extable: add support for relative extables to search and sort routines Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-27 12:00 +0100
[PATCH v2 resend 3/6] s390/extable: use generic search and sort routines Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-27 12:00 +0100
[PATCH v2 resend 6/6] arm64: switch to relative exception tables Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-27 12:00 +0100
Re: [PATCH v2 resend 6/6] arm64: switch to relative exception tables Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-27 20:40 +0100
Re: [PATCH v2 resend 6/6] arm64: switch to relative exception tables Andrew Morton <akpm@linux-foundation.org> - 2016-01-27 20:50 +0100
Re: [PATCH v2 resend 6/6] arm64: switch to relative exception tables Andrew Morton <akpm@linux-foundation.org> - 2016-01-27 20:40 +0100
[PATCH v2 resend 2/6] alpha/extable: use generic search and sort routines Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-27 12:00 +0100
csiph-web