From: Sergey Senozhatsky <sergey.senozhatsky.work@gmail•com>
To: Santosh Sivaraj <santosh@fossix•org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail•com>,
Tony Luck <tony.luck@intel•com>,
Fenghua Yu <fenghua.yu@intel•com>, Helge Deller <deller@gmx•de>,
Benjamin Herrenschmidt <benh@kernel•crashing.org>,
Paul Mackerras <paulus@samba•org>,
Michael Ellerman <mpe@ellerman•id.au>,
James Bottomley <jejb@parisc-linux•org>,
Andrew Morton <akpm@linux-foundation•org>,
Jessica Yu <jeyu@kernel•org>, Petr Mladek <pmladek@suse•com>,
Steven Rostedt <rostedt@goodmis•org>,
linux-ia64@vger•kernel.org, linux-parisc@vger•kernel.org,
linuxppc-dev@lists•ozlabs.org, linux-kernel@vger•kernel.org,
Sergey Senozhatsky <sergey.senozhatsky.work@gmail•com>
Subject: Re: [PATCHv4 3/6] powerpc64: Add .opd based function descriptor dereference
Date: Mon, 13 Nov 2017 18:35:27 +0900 [thread overview]
Message-ID: <20171113093527.GA24353@jagdpanzerIV> (raw)
In-Reply-To: <20171113071149.crpthceuvtxtzj2s@santosiv.in.ibm.com>
On (11/13/17 12:41), Santosh Sivaraj wrote:
> * Sergey Senozhatsky <sergey.senozhatsky@gmail•com> 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 <sergey.senozhatsky@gmail•com>
> > ---
> > 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 <santosh@fossix•org> # for powerpc
thanks!
-ss
next prev parent reply other threads:[~2017-11-13 9:35 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 23:48 [PATCHv4 0/6] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers Sergey Senozhatsky
2017-11-09 23:48 ` [PATCHv4 1/6] sections: split dereference_function_descriptor() Sergey Senozhatsky
2017-11-09 23:48 ` [PATCHv4 2/6] ia64: Add .opd based function descriptor dereference Sergey Senozhatsky
2017-11-09 23:48 ` [PATCHv4 3/6] powerpc64: " Sergey Senozhatsky
2017-11-13 7:11 ` Santosh Sivaraj
2017-11-13 9:35 ` Sergey Senozhatsky [this message]
2017-11-09 23:48 ` [PATCHv4 4/6] parisc64: " Sergey Senozhatsky
2017-11-09 23:48 ` [PATCHv4 5/6] symbol lookup: introduce dereference_symbol_descriptor() Sergey Senozhatsky
2017-11-10 18:09 ` Luck, Tony
2017-11-11 4:49 ` Sergey Senozhatsky
2017-11-28 15:44 ` Petr Mladek
2017-12-06 4:36 ` Sergey Senozhatsky
2017-12-06 10:32 ` Petr Mladek
2017-12-06 10:46 ` Sergey Senozhatsky
2017-11-09 23:48 ` [PATCHv4 6/6] checkpatch: add pF/pf deprecation warning Sergey Senozhatsky
2017-11-10 18:11 ` [PATCHv4 0/6] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers Luck, Tony
2017-11-11 4:41 ` Sergey Senozhatsky
2017-11-13 17:17 ` Helge Deller
2017-11-14 1:29 ` Sergey Senozhatsky
2017-11-28 15:47 ` Petr Mladek
2017-11-29 7:24 ` Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171113093527.GA24353@jagdpanzerIV \
--to=sergey.senozhatsky.work@gmail$(echo .)com \
--cc=akpm@linux-foundation$(echo .)org \
--cc=benh@kernel$(echo .)crashing.org \
--cc=deller@gmx$(echo .)de \
--cc=fenghua.yu@intel$(echo .)com \
--cc=jejb@parisc-linux$(echo .)org \
--cc=jeyu@kernel$(echo .)org \
--cc=linux-ia64@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-parisc@vger$(echo .)kernel.org \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=mpe@ellerman$(echo .)id.au \
--cc=paulus@samba$(echo .)org \
--cc=pmladek@suse$(echo .)com \
--cc=rostedt@goodmis$(echo .)org \
--cc=santosh@fossix$(echo .)org \
--cc=sergey.senozhatsky@gmail$(echo .)com \
--cc=tony.luck@intel$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox