linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* race between kmap shootdown and cache maintenance
@ 2010-02-05 18:13 Gary King
  2010-02-07 15:30 ` Russell King - ARM Linux
  0 siblings, 1 reply; 9+ messages in thread
From: Gary King @ 2010-02-05 18:13 UTC (permalink / raw)
  To: linux-arm-kernel

I have seen some instability with highmem enabled on Tegra 2 systems (Cortex A9 SMP), where ocassionally the kernel will panic with unservicable page faults from flush_dcache_page, at an address half-way through a kmapped page.

I think this patch addresses the root cause: the cache maintenance code doesn't increase the reference count of the kmap, so another thread may kunmap the last reference and zap the corresponding PTE.

- Gary

Gary King
gking at nvidia.com




-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100205/2785f794/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001--ARM-highmem-fix-race-between-cache-flush-and-kmap.patch
Type: application/octet-stream
Size: 2027 bytes
Desc: 0001--ARM-highmem-fix-race-between-cache-flush-and-kmap.patch
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100205/2785f794/attachment-0001.obj>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-02-18  4:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05 18:13 race between kmap shootdown and cache maintenance Gary King
2010-02-07 15:30 ` Russell King - ARM Linux
2010-02-08 21:57   ` Gary King
2010-02-09  3:35     ` Nicolas Pitre
2010-02-09  4:00       ` Gary King
2010-02-09  4:40         ` Nicolas Pitre
2010-02-13  1:08           ` Gary King
2010-02-18  2:00             ` Arve Hjønnevåg
2010-02-18  4:18               ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).