cache coherence problem
benh at kernel.crashing.org
Wed Nov 19 11:35:06 EST 2003
> newly mapped in blank pages,
> If you mean zeroed pages for blanked, I believe that it is wrong.
> The reason being that 0 is an invalid instruction so that the code
> would trap in any case.
> Maybe I'm wrong, but I seem to remember this as an optimization
> that Paulus implemented some time ago.
And that we had to undo because glibc relied on it, not invalidating
cache lines in some conditions assuming newly mapped zeroed pages
are delivered icache-clean by the kernel.
One of the arguments of the glibc folks for not fixing that was that
it would be a security hole to let stale icache content leak, so the
kernel has to invalidate them anyway.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev