Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1304355
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v7 1/3] x86: Add classes to exception tables |
| Date | 2016-01-08 11:40 +0100 |
| Message-ID | <qOCCB-5pr-13@gated-at.bofh.it> (permalink) |
| References | (4 earlier) <qO0GZ-4Es-1@gated-at.bofh.it> <qO0H2-4Es-33@gated-at.bofh.it> <qO2fL-5vA-1@gated-at.bofh.it> <qOhHQ-7YB-27@gated-at.bofh.it> <qOulI-7ZL-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Jan 07, 2016 at 05:45:26PM -0800, Luck, Tony wrote:
> On Thu, Jan 07, 2016 at 01:11:31PM +0100, Borislav Petkov wrote:
> > Anyway, here's what I have, it boots fine in a guest.
> >
> > Btw, it seems I'm coming down with the cold and all that above could be
> > hallucinations so please double-check me.
>
> Hardly any hallucinations ... here's an update with the changes
> I mentioned in earlier e-mail. Boots on actual h/w.
Cool, thanks for fixing it up. Looks good to me. Feel free to make it
into a proper patch and add it to your series... unless you want me to
do it.
Just one small question below:
> diff --git a/arch/x86/mm/extable.c b/arch/x86/mm/extable.c
> index 903ec1e9c326..01098ad010dd 100644
> --- a/arch/x86/mm/extable.c
> +++ b/arch/x86/mm/extable.c
> @@ -3,6 +3,8 @@
> #include <linux/sort.h>
> #include <asm/uaccess.h>
>
> +typedef int (*ex_handler_t)(const struct exception_table_entry *, struct pt_regs *, int);
> +
> static inline unsigned long
> ex_insn_addr(const struct exception_table_entry *x)
> {
> @@ -14,10 +16,39 @@ ex_fixup_addr(const struct exception_table_entry *x)
> return (unsigned long)&x->fixup + x->fixup;
> }
>
> -int fixup_exception(struct pt_regs *regs)
> +int ex_handler_default(const struct exception_table_entry *fixup,
> + struct pt_regs *regs, int trapnr)
> {
> - const struct exception_table_entry *fixup;
> - unsigned long new_ip;
> + regs->ip = ex_fixup_addr(fixup);
> + return 1;
> +}
> +EXPORT_SYMBOL(ex_handler_default);
Why not EXPORT_SYMBOL_GPL() ?
We do not care about external modules.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v7 1/3] x86: Add classes to exception tables Tony Luck <tony.luck@intel.com> - 2016-01-05 01:20 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Borislav Petkov <bp@alien8.de> - 2016-01-06 13:40 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables "Luck, Tony" <tony.luck@intel.com> - 2016-01-06 18:40 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Linus Torvalds <torvalds@linux-foundation.org> - 2016-01-06 18:50 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Andy Lutomirski <luto@amacapital.net> - 2016-01-06 19:00 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Borislav Petkov <bp@alien8.de> - 2016-01-06 19:10 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Andy Lutomirski <luto@amacapital.net> - 2016-01-06 19:10 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Borislav Petkov <bp@alien8.de> - 2016-01-06 20:50 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Borislav Petkov <bp@alien8.de> - 2016-01-07 13:20 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables "Luck, Tony" <tony.luck@intel.com> - 2016-01-07 19:30 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables "Luck, Tony" <tony.luck@intel.com> - 2016-01-08 02:50 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Borislav Petkov <bp@alien8.de> - 2016-01-08 11:40 +0100
RE: [PATCH v7 1/3] x86: Add classes to exception tables "Luck, Tony" <tony.luck@intel.com> - 2016-01-08 17:30 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Borislav Petkov <bp@alien8.de> - 2016-01-08 18:30 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Brian Gerst <brgerst@gmail.com> - 2016-01-08 23:30 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables "Luck, Tony" <tony.luck@intel.com> - 2016-01-08 06:40 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Borislav Petkov <bp@alien8.de> - 2016-01-08 11:50 +0100
Re: [PATCH v7 1/3] x86: Add classes to exception tables Borislav Petkov <bp@alien8.de> - 2016-01-06 13:40 +0100
csiph-web