]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] Hole in IA64 TLB flushing from system threads
authorJack Steiner <steiner@sgi.com>
Thu, 22 Dec 2005 19:45:41 +0000 (13:45 -0600)
committerTony Luck <tony.luck@intel.com>
Fri, 13 Jan 2006 22:10:06 +0000 (14:10 -0800)
commitfd894fc9a79a4403a71bb69777ae7db90e4aa061
tree4fe639274b651ea77c9130eae0ccca36e16d6d17
parent9926e6970a6291ba8b137898f34ff35410048da4
[IA64] Hole in IA64 TLB flushing from system threads

I originally thought this was an bug only in the SN code, but I think I
also see a hole in the generic IA64 tlb code. (Separate patch was sent
for the SN problem).

It looks like there is a bug in the TLB flushing code. During context switch,
kernel threads (kswapd, for example) inherit the mm of the task that was
previously running on the cpu. Normally, this is ok because the previous context
is still loaded into the RR registers. However, if the owner of the mm
migrates to another cpu, changes it's context number, and references a
page before kswapd issues a tlb_purge for that same page, the purge will be
done with a stale context number (& RR registers).

Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/mm/tlb.c