From: Michael S. Tsirkin Date: Sun, 19 Sep 2010 17:02:31 +0000 (+0200) Subject: KVM: fix irqfd assign/deassign race X-Git-Tag: v2.6.36-rc6~49^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bbfb2653177a00f70e57e53625502d43804fed0;p=pandora-kernel.git KVM: fix irqfd assign/deassign race I think I see the following (theoretical) race: During irqfd assign, we drop irqfds lock before we schedule inject work. Therefore, deassign running on another CPU could cause shutdown and flush to run before inject, causing user after free in inject. A simple fix it to schedule inject under the lock. Signed-off-by: Michael S. Tsirkin Acked-by: Gregory Haskins Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed