Re: [PATCH] xen: disable interrupts before saving in percpu
From: H. Peter Anvin
Date: Tue Feb 03 2009 - 21:25:37 EST
Jeremy Fitzhardinge wrote:
> H. Peter Anvin wrote:
>> Jeremy Fitzhardinge wrote:
>>
>>> xen_mc_batch has a small preempt race where it takes the address of a
>>> percpu variable immediately before disabling interrupts, thereby
>>> leaving a small window in which we may migrate to another cpu and save
>>> the flags in the wrong percpu variable. Disable interrupts before
>>> saving the old flags in a percpu.
>>>
>>
>> Applied to tip:core/xen, thanks!
>
> Can you push this Linusward too?
>
Just merged into tip:core/urgent, so it should end up in the next set of
pull requests.
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/