[parisc-linux] User space locks -- what's wrong

James Bottomley James.Bottomley at SteelEye.com
Mon Jun 5 11:40:45 MDT 2006


On Mon, 2006-06-05 at 12:49 -0400, John David Anglin wrote:
> It's crossed my mind that locking could break if there is a memory
> aliasing issue,

This should never happen, since all our mmap areas are allocated on the
congruence boundary.  DaveM recently pointed out that mremap can violate
the congruence rules on sparc.  This could theoretically also happen on
pa, but only if you're enlarging below, which is an unusual case.

I did catch a few congruence errors when I redid the cache flushing via
tmpalias space, but it all looked to be due to kernel processes which
don't allocate correctly anyway ... and would never take user locks.
But I should probably get back and try to identify all the processes
with this problem.

James





More information about the parisc-linux mailing list