Re: [PATCH 3/5] powerpc64: Add .opd based function descriptor dereference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "Naveen N. Rao" <naveen.n.rao@xxxxxxxxxxxxxxxxxx>, Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
- Subject: Re: [PATCH 3/5] powerpc64: Add .opd based function descriptor dereference
- From: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
- Date: Tue, 19 Sep 2017 20:22:37 +1000
- Cc: Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, "James E . J . Bottomley" <jejb@xxxxxxxxxxxxxxxx>, Helge Deller <deller@xxxxxx>, Petr Mladek <pmladek@xxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linux-parisc@xxxxxxxxxxxxxxx, Alexei Starovoitov <ast@xxxxxxxxxx>, Steven Rostedt <rostedt@xxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Jessica Yu <jeyu@xxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linuxppc-dev@xxxxxxxxxxxxxxxx, Nicholas Piggin <npiggin@xxxxxxxxx>
- In-reply-to: <20170916094345.d332z3odceqiyrll@naverao1-tp.localdomain>
- References: <20170916035347.19705-1-sergey.senozhatsky@gmail.com> <20170916035347.19705-4-sergey.senozhatsky@gmail.com> <20170916094345.d332z3odceqiyrll@naverao1-tp.localdomain>
- User-agent: Notmuch/0.21 (https://notmuchmail.org)
"Naveen N. Rao" <naveen.n.rao@xxxxxxxxxxxxxxxxxx> writes:
> On 2017/09/16 12:53PM, Sergey Senozhatsky wrote:
>> 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].
>
> Would it be simpler to just use kernel_text_address() and dereference
> everything else? See commit 83e840c770f2c5 ("powerpc64/elfv1: Only
> dereference function descriptor for non-text symbols") for a related
> patch.
Yeah that would be a lot simpler and probably work perfectly well.
cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]