From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753470AbcADLUj (ORCPT ); Mon, 4 Jan 2016 06:20:39 -0500 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:35555 "EHLO e06smtp11.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753435AbcADLUf (ORCPT ); Mon, 4 Jan 2016 06:20:35 -0500 X-IBM-Helo: d06dlp01.portsmouth.uk.ibm.com X-IBM-MailFrom: heiko.carstens@de.ibm.com X-IBM-RcptTo: linux-alpha@vger.kernel.org;linux-ia64@vger.kernel.org;linux-kernel@vger.kernel.org;linux-s390@vger.kernel.org Date: Mon, 4 Jan 2016 12:20:26 +0100 From: Heiko Carstens To: Ard Biesheuvel Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, x86@kernel.org, hpa@zytor.com, mingo@redhat.com, schwidefsky@de.ibm.com, mattst88@gmail.com, ink@jurassic.park.msu.ru, rth@twiddle.net, tony.luck@intel.com, fenghua.yu@intel.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, akpm@linux-foundation.org, mark.rutland@arm.com, marc.zyngier@arm.com Subject: Re: [PATCH 0/6] generic relative extable support Message-ID: <20160104112026.GC4179@osiris> References: <1451837157-447-1-git-send-email-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1451837157-447-1-git-send-email-ard.biesheuvel@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16010411-0041-0000-0000-0000070C43B2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 03, 2016 at 05:05:51PM +0100, Ard Biesheuvel wrote: > 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). > > Note that the s390 patch applies on top of the following patch: > > http://article.gmane.org/gmane.linux.kernel/2117036 > > which fixes a bug I spotted while working on this code. Since that probably > needs to go to -stable, I broke it out and posted it separately. > > Ard Biesheuvel (6): > extable: add support for relative extables to search and sort routines > 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 > arm64: switch to relative exception tables For the s390 bits: Acked-by: Heiko Carstens