Re: [PATCH 3/3] x86, extable: Handle early exceptions

H. Peter Anvin
2012-04-19T23:10:33Z

On 04/19/2012 03:58 PM, Linus Torvalds wrote:
>
> In fact, doing an "objdump" on the few modules I have, I didn't find a
> *single* exception table entry. Maybe I did something wrong? Isn't it
> the __ex_table in modules too?
>

It is, but I suspect a lot of modules don't end up with any exception
table entries, as the common forms of user space access are out of line.

I suspect that just finding the module we're in or not in before
searching its ex_table is probably good enough, but a global hash would
be better. That being said, some distros are complaining about the
amount of time it takes to load modules on boot...

-hpa