From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3y6VNt1MHzzDqtT for ; Wed, 4 Oct 2017 20:05:34 +1100 (AEDT) Date: Wed, 4 Oct 2017 11:05:26 +0200 From: Petr Mladek To: Sergey Senozhatsky Cc: Steven Rostedt , Tony Luck , Fenghua Yu , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , James Bottomley , Helge Deller , Andrew Morton , Jessica Yu , Alexei Starovoitov , linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv3 3/7] ia64: Add .opd based function descriptor dereference Message-ID: <20171004090526.GE20084@pathway.suse.cz> References: <20170930025319.987-1-sergey.senozhatsky@gmail.com> <20170930025319.987-4-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170930025319.987-4-sergey.senozhatsky@gmail.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat 2017-09-30 11:53:15, Sergey Senozhatsky wrote: > We are moving towards separate kernel and module function descriptor > dereference callbacks. This patch enables it for IA64. > > For pointers that belong to the kernel > - Added __start_opd and __end_opd pointers, to track the kernel > .opd section address range; > > - Added dereference_kernel_function_descriptor(). Now we > will dereference only function pointers that are within > [__start_opd, __end_opd]; > > For pointers that belong to a module > - Added dereference_module_function_descriptor() to handle module > function descriptor dereference. Now we will dereference only > pointers that are within [module->opd.start, module->opd.end]. > > Signed-off-by: Sergey Senozhatsky > Tested-by: Helge Deller # parisc64 > Tested-by: Santosh Sivaraj # powerpc64 > Acked-by: Michael Ellerman # powerpc64 > Tested-by: Tony Luck # ia64 Looks good to me. Reviewed-by: Petr Mladek Best Regards, Petr