Re: Rusty's module talk at the Kernel Summit

From: Keith Owens (kaos@ocs.com.au)
Date: Wed Jul 03 2002 - 18:09:10 EST


On Wed, 3 Jul 2002 08:53:03 -0700,
"Adam J. Richter" <adam@yggdrasil.com> wrote:
> I don't know enough about the formats of these tables right now
>to really understand the best way to handle them, but I suspect that
>the simplest approach might be a mechanism where copy_*_user and the like
>could generate assembler that does a .pushsection to a different section
>depending on the current section, so you could have "__ex_table" and
>".init.__ex_table", etc.

Unfortunately there is no way to get the current section name from
code. I looked for one when I was trying to solve the __devexit
dangling pointer problem.

> Come to think of it, if the core kernel's .text.init pages could
>later be vmalloc'ed for module .text section, then I think you may have
>found a potential kernel bug.

AFAICT that cannot occur. The freed kernel .text.init pages are used
for kmalloc, not vmalloc.

-
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/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:11 EST