summaryrefslogtreecommitdiffstats
path: root/fs/cifs/nterr.h
diff options
context:
space:
mode:
authorHeyi Guo <guoheyi@huawei.com>2019-08-27 12:26:50 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-06 10:22:22 +0200
commitab8ecc278dc8f6a63bd7a34387c65c600b2ab77a (patch)
treeada005ad7a71f05418ecac875ef991650466a312 /fs/cifs/nterr.h
parentdb1841a2dd4c84f390c3e0ed15d6a4ea601433e9 (diff)
downloadlinux-stable-ab8ecc278dc8f6a63bd7a34387c65c600b2ab77a.tar.gz
linux-stable-ab8ecc278dc8f6a63bd7a34387c65c600b2ab77a.tar.bz2
linux-stable-ab8ecc278dc8f6a63bd7a34387c65c600b2ab77a.zip
KVM: arm/arm64: vgic: Fix potential deadlock when ap_list is long
[ Upstream commit d4a8061a7c5f7c27a2dc002ee4cb89b3e6637e44 ] If the ap_list is longer than 256 entries, merge_final() in list_sort() will call the comparison callback with the same element twice, causing a deadlock in vgic_irq_cmp(). Fix it by returning early when irqa == irqb. Cc: stable@vger.kernel.org # 4.7+ Fixes: 8e4447457965 ("KVM: arm/arm64: vgic-new: Add IRQ sorting") Signed-off-by: Zenghui Yu <yuzenghui@huawei.com> Signed-off-by: Heyi Guo <guoheyi@huawei.com> [maz: massaged commit log and patch, added Fixes and Cc-stable] Signed-off-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/cifs/nterr.h')
0 files changed, 0 insertions, 0 deletions