Re: [RFC] 2.5.8 sort kernel tables

Keith Owens (kaos@ocs.com.au)
Fri, 19 Apr 2002 02:09:03 +1000


On Thu, 18 Apr 2002 16:52:29 +0100,
Russell King <rmk@arm.linux.org.uk> wrote:
>On Fri, Apr 19, 2002 at 01:38:59AM +1000, Keith Owens wrote:
>> For example, arm #defines get8_unaligned_check which uses __ex_table.
>
>This doesn't cause your issue though. Its only used from code built into
>the kernel .text segment, never from any other segment. It isn't a
>#define in some random header file that may end up in the .init segment
>either.

You are missing the point. There are several macros that use
__ex_table. Unless it can be guaranteed that no current or future use
of *any* of those macros will be in an __init section then we must not
assume that the exception table is sorted.

Exception table is not the only one that is assumed to be sorted,
get8_unaligned_check is not the only macro that uses __ex_table. Both
are examples of tables and code where we assume, but do not validate, a
sorted table.

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