Re: [patch 4/5] xen: Validate online cpus in set_affinity

From: David Vrabel
Date: Wed Mar 05 2014 - 05:38:09 EST


On 04/03/14 20:43, Thomas Gleixner wrote:
> The user space interface does not filter out offline cpus. It merily
> verifies that the mask contains at least one online cpu. So the
> selector in the irq chip implementation needs to make sure to pick
> only an online cpu because otherwise:
>
> Offline Core 1
> Set affinity to 0xe
> Selector will pick first set bit, i.e. core 1

Reviewed-by: David Vrabel <david.vrabel@xxxxxxxxxx>

Thanks.

David
--
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/