Re: [PATCH 7/7] modpost: handle relocations mismatch in __ex_table.

From: Quentin Casasnovas
Date: Mon Apr 13 2015 - 09:32:06 EST


On Mon, Apr 13, 2015 at 08:48:56PM +0930, Rusty Russell wrote:
> Quentin Casasnovas <quentin.casasnovas@xxxxxxxxxx> writes:
> > __ex_table is a simple table section where each entry is a pair of
> > addresses - the first address is an address which can fault in kernel
> > space, and the second address points to where the kernel should jump to
> > when handling that fault. This is how copy_from_user() does not crash the
> > kernel if userspace gives a borked pointer for example.
>
> Warnings on 32-bit:
>
> [snip/]
>
> Fixed like so:

Thanks for the fixing, and nice catch on the "mistmatch" ;)
^

Quentin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/