From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751580AbdKMJff (ORCPT ); Mon, 13 Nov 2017 04:35:35 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:44806 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbdKMJfd (ORCPT ); Mon, 13 Nov 2017 04:35:33 -0500 X-Google-Smtp-Source: AGs4zMZ9S921PWCUdCKHlmgSe562jTzkPcLnul5y0BCu9s43Cx4PrAihKbJ7JVv8JumYVa/TTDiZvw== Date: Mon, 13 Nov 2017 18:35:27 +0900 From: Sergey Senozhatsky To: Santosh Sivaraj Cc: Sergey Senozhatsky , Tony Luck , Fenghua Yu , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , James Bottomley , Andrew Morton , Jessica Yu , Petr Mladek , Steven Rostedt , linux-ia64@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [PATCHv4 3/6] powerpc64: Add .opd based function descriptor dereference Message-ID: <20171113093527.GA24353@jagdpanzerIV> References: <20171109234830.5067-1-sergey.senozhatsky@gmail.com> <20171109234830.5067-4-sergey.senozhatsky@gmail.com> <20171113071149.crpthceuvtxtzj2s@santosiv.in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171113071149.crpthceuvtxtzj2s@santosiv.in.ibm.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (11/13/17 12:41), Santosh Sivaraj wrote: > * Sergey Senozhatsky wrote (on 2017-11-10 08:48:27 +0900): > > > We are moving towards separate kernel and module function descriptor > > dereference callbacks. This patch enables it for powerpc64. > > > > 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 > > --- > > arch/powerpc/include/asm/module.h | 3 +++ > > arch/powerpc/include/asm/sections.h | 12 ++++++++++++ > > arch/powerpc/kernel/module_64.c | 14 ++++++++++++++ > > arch/powerpc/kernel/vmlinux.lds.S | 2 ++ > > 4 files changed, 31 insertions(+) > > > > Looks good on powerpc. If you wish: > > Tested-by: Santosh Sivaraj # for powerpc thanks! -ss