* [PATCH v3 0/4] generic relative extable support
@ 2016-03-10 14:43 Ard Biesheuvel
2016-03-10 22:07 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Ard Biesheuvel @ 2016-03-10 14:43 UTC (permalink / raw)
To: linux-ia64
This is basically a resend of the remaining relative extable rework patches
that were queued for v4.6 in Andrew's tree for a couple of weeks, and then
subsequently dropped due to conflicts with the arm64 and x86 subtrees in -next.
Since the core patch that these remaining patches depend on is now queued in
the arm64 tree for inclusion in v4.6, I have rebased this series onto
next-20160310 so that they may be requeued and hopefully merged late during the
next merge window. Alternatively, they could be picked up by each maintainer
separately since they are all independent. Queueing them for v4.7 is likely
to result in conflicts again, so I think that would be the least preferable
option.
Changes since v2:
- dropped core patch and arm64 patches since they are already en route
- fixed up a purely contextual conflict in the x86 patch, the functional
changes were completely independent
---- v2 blurb ----
There are currently four architectures (x86, ia64, alpha and s390) whose
user-access exception tables are relative to the table entry address rather
than absolute. Each of these architectures has its own search_extable() and
sort_extable() implementation, which are not only mostly identical to each
other, but also deviate very little from the generic absolute implementations
in lib/extable.c that they override.
So before making arm64 the fifth architecture that reimplements this, let's
refactor the existing code so that all of these architectures use common code
for searching and sorting the relative extables. Archs may set
ARCH_HAS_RELATIVE_EXTABLE to indicate that the table consists of a pair of
relative ints, and may define swap_ex_entry_fixup() if the fixup member needs
special treatment in the swapping step of the sorting routine (such as alpha).
Changes since v1:
- introduce the _ASM_EXTABLE() cpp macro for arm64, and replace all open coded
exception table entries with it, including an instance I missed in v1 in
asm/word-at-a-time.h (suggested by hpa)
- added acks to from arch maintainers
Ard Biesheuvel (4):
alpha/extable: use generic search and sort routines
s390/extable: use generic search and sort routines
x86/extable: use generic search and sort routines
ia64/extable: use generic search and sort routines
arch/alpha/include/asm/uaccess.h | 10 +-
arch/alpha/mm/Makefile | 2 +-
arch/alpha/mm/extable.c | 92 -----------------
arch/ia64/include/asm/uaccess.h | 8 +-
arch/ia64/mm/extable.c | 97 +-----------------
arch/s390/include/asm/uaccess.h | 8 +-
arch/s390/mm/Makefile | 2 +-
arch/s390/mm/extable.c | 85 ---------------
arch/x86/include/asm/uaccess.h | 5 +-
arch/x86/mm/extable.c | 108 --------------------
10 files changed, 17 insertions(+), 400 deletions(-)
delete mode 100644 arch/alpha/mm/extable.c
delete mode 100644 arch/s390/mm/extable.c
--
1.9.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3 0/4] generic relative extable support
2016-03-10 14:43 [PATCH v3 0/4] generic relative extable support Ard Biesheuvel
@ 2016-03-10 22:07 ` Andrew Morton
2016-03-11 0:41 ` Ard Biesheuvel
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2016-03-10 22:07 UTC (permalink / raw)
To: linux-ia64
On Thu, 10 Mar 2016 21:43:12 +0700 Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
> This is basically a resend of the remaining relative extable rework patches
> that were queued for v4.6 in Andrew's tree for a couple of weeks, and then
> subsequently dropped due to conflicts with the arm64 and x86 subtrees in -next.
>
> Since the core patch that these remaining patches depend on is now queued in
> the arm64 tree for inclusion in v4.6, I have rebased this series onto
> next-20160310 so that they may be requeued and hopefully merged late during the
> next merge window. Alternatively, they could be picked up by each maintainer
> separately since they are all independent. Queueing them for v4.7 is likely
> to result in conflicts again, so I think that would be the least preferable
> option.
Yup, these all look good to merge.
> ---- v2 blurb ----
> There are currently four architectures (x86, ia64, alpha and s390) whose
> user-access exception tables are relative to the table entry address rather
> than absolute. Each of these architectures has its own search_extable() and
> sort_extable() implementation, which are not only mostly identical to each
> other, but also deviate very little from the generic absolute implementations
> in lib/extable.c that they override.
>
> So before making arm64 the fifth architecture that reimplements this, let's
> refactor the existing code so that all of these architectures use common code
> for searching and sorting the relative extables. Archs may set
> ARCH_HAS_RELATIVE_EXTABLE to indicate that the table consists of a pair of
> relative ints, and may define swap_ex_entry_fixup() if the fixup member needs
> special treatment in the swapping step of the sorting routine (such as alpha).
>
I'll want to manually verify that the required patches are upstreamed.
I assume we're referring to a272858a3c1ecd4a ("extable: add support for
relative extables to search and sort routines") and related patches?
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v3 0/4] generic relative extable support
2016-03-10 22:07 ` Andrew Morton
@ 2016-03-11 0:41 ` Ard Biesheuvel
0 siblings, 0 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2016-03-11 0:41 UTC (permalink / raw)
To: linux-s390, linux-ia64, linux-alpha
On 11 March 2016 at 05:07, Andrew Morton <akpm@linux-foundation.org> wrote:
> On Thu, 10 Mar 2016 21:43:12 +0700 Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
[...]
>> ---- v2 blurb ----
>> There are currently four architectures (x86, ia64, alpha and s390) whose
>> user-access exception tables are relative to the table entry address rather
>> than absolute. Each of these architectures has its own search_extable() and
>> sort_extable() implementation, which are not only mostly identical to each
>> other, but also deviate very little from the generic absolute implementations
>> in lib/extable.c that they override.
>>
>> So before making arm64 the fifth architecture that reimplements this, let's
>> refactor the existing code so that all of these architectures use common code
>> for searching and sorting the relative extables. Archs may set
>> ARCH_HAS_RELATIVE_EXTABLE to indicate that the table consists of a pair of
>> relative ints, and may define swap_ex_entry_fixup() if the fixup member needs
>> special treatment in the swapping step of the sorting routine (such as alpha).
>>
>
> I'll want to manually verify that the required patches are upstreamed.
> I assume we're referring to a272858a3c1ecd4a ("extable: add support for
> relative extables to search and sort routines") and related patches?
>
Correct. As long as that single patch is in, these are good to go.
Thanks,
Ard.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-11 0:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10 14:43 [PATCH v3 0/4] generic relative extable support Ard Biesheuvel
2016-03-10 22:07 ` Andrew Morton
2016-03-11 0:41 ` Ard Biesheuvel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox