diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-03-20 21:10:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-03 12:02:37 -0700 |
commit | f8a954ced934f77f2987e4b16a1881419bd6fbf3 (patch) | |
tree | ceb67cc34c6d6c2b9c4381632b7769b8fd5abce9 /virt/kvm/iommu.c | |
parent | 92dbca18848fcc88661cd8a8ec17fd59ecc430cc (diff) |
switch mnt_hash to hlist
commit 38129a13e6e71f666e0468e99fdd932a687b4d7e upstream.
fixes RCU bug - walking through hlist is safe in face of element moves,
since it's self-terminating. Cyclic lists are not - if we end up jumping
to another hash chain, we'll loop infinitely without ever hitting the
original list head.
[fix for dumb braino folded]
Spotted by: Max Kellermann <mk@cm4all.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt/kvm/iommu.c')
0 files changed, 0 insertions, 0 deletions