Re: [x86_64 MCE] [RFC] mce.c race condition (or: when evil hacks are the only options)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joshua Wise <jwise@...>
Cc: <akpm@...>, <linux-kernel@...>, Tim Hockin <thockin@...>, Mike Waychison <mikew@...>
Date: Thursday, July 12, 2007 - 5:20 pm

On Thursday 12 July 2007 22:24:36 Joshua Wise wrote:

Thanks for the analysis.

I guess at some point it would make sense to model the whole thing in spin or 
similar and find even the last race. Anyone interested? @)


I suspect the right fix is to get rid of collect_tscs(). 

One possible way would be to get the TSCs from the mce_log table
before the synchronization instead of asking the CPUs.

Or switch it over to the NMI supporting RCU that was recently posted.



The problem with a ring buffer is that it would lose old entries; but 
for machine checks you really want the first entries because
the later ones might be just junk.

-Andi
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [x86_64 MCE] [RFC] mce.c race condition (or: when evil h..., Andi Kleen, (Thu Jul 12, 5:20 pm)