From: Thomas Gleixner Date: Tue, 4 Mar 2014 20:43:40 +0000 (+0000) Subject: xen: Validate online cpus in set_affinity X-Git-Tag: v3.15-rc1~152^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=753fbd23f5e59ea9dc0cabe0a684d32100a4af02;p=pandora-kernel.git xen: Validate online cpus in set_affinity 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 Signed-off-by: Thomas Gleixner Reviewed-by: David Vrabel Cc: Peter Zijlstra Cc: Konrad Rzeszutek Wilk Cc: Xen Link: http://lkml.kernel.org/r/20140304203100.978031089@linutronix.de Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed