From: Christian Borntraeger Date: Wed, 6 Aug 2014 14:17:58 +0000 (+0200) Subject: KVM: s390: Fix user triggerable bug in dead code X-Git-Tag: fixes-v3.17-rc4~13^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=614a80e474b227cace52fd6e3c790554db8a396e;p=pandora-kernel.git KVM: s390: Fix user triggerable bug in dead code In the early days, we had some special handling for the KVM_EXIT_S390_SIEIC exit, but this was gone in 2009 with commit d7b0b5eb3000 (KVM: s390: Make psw available on all exits, not just a subset). Now this switch statement is just a sanity check for userspace not messing with the kvm_run structure. Unfortunately, this allows userspace to trigger a kernel BUG. Let's just remove this switch statement. Signed-off-by: Christian Borntraeger Reviewed-by: Cornelia Huck Reviewed-by: David Hildenbrand Cc: stable@vger.kernel.org --- Reading git-diff-tree failed