Re: [PATCH 3/3] Assert notifier_block and notifier_call are not ininit section

From: Randy.Dunlap
Date: Tue Apr 25 2006 - 17:00:50 EST


On Tue, 25 Apr 2006 13:38:22 -0700 (PDT) Linus Torvalds wrote:

>
>
> On Tue, 25 Apr 2006, Alan Stern wrote:
> >
> > What about loadable modules? Is their code never loaded into memory that
> > used to be part of an init section?
>
> Their code might _physically_ reside in a re-allocation of an init
> section, but will have a virtual address far away (and it would be the
> virtual address that you'd see if you took the address of a function).

and the freed init data area is poisoned (in 386, x86_64, powerpc, and
sparc64).

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