Re: [PATH -mm] Fix a race condtion of oops_in_progress

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Huang Ying
Date: Tuesday, August 19, 2008 - 6:42 pm

On Tue, 2008-08-19 at 02:41 -0700, Andrew Morton wrote:
[...]

Yes. But the advantage is that we can use atomic_t in almost all header
files. I already have a patch for this.


The possibility of race is fairly low in real life. Multiple OOPS on
difference CPU occur simultaneously? But its possibility increases
significantly for kernel panic related regression testing. Recently, I
am working on a kernel MCE regression testing suite, where panic may be
triggered on multiple CPU simultaneously as the result of MCE. I can
observe the race condition at quite high possibility.


There is an issue of this solution, the oops_in_process is assigned
directly on some architecture. Although we can add a function such as
oops_in_progress_set(int val), it seems like a hack.

Best Regards,
Huang Ying


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

Messages in current thread:
[PATH -mm] Fix a race condtion of oops_in_progress, Huang Ying, (Sun Aug 17, 7:03 pm)
Re: [PATH -mm] Fix a race condtion of oops_in_progress, Andrew Morton, (Mon Aug 18, 9:06 pm)
Re: [PATH -mm] Fix a race condtion of oops_in_progress, Huang Ying, (Mon Aug 18, 10:38 pm)
Re: [PATH -mm] Fix a race condtion of oops_in_progress, Andrew Morton, (Mon Aug 18, 10:46 pm)
Re: [PATH -mm] Fix a race condtion of oops_in_progress, Andrew Morton, (Tue Aug 19, 2:41 am)
Re: [PATH -mm] Fix a race condtion of oops_in_progress, Huang Ying, (Tue Aug 19, 6:42 pm)