diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-05-28 14:31:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-24 14:12:41 +0300 |
commit | 1cd0c7d732b9e59449ef57daf245bbfafa956601 (patch) | |
tree | 9663e651c1a1d5ea7f4134029f30be405e65fd10 /fs/ext4 | |
parent | e63303e63cdcc3ae6fd51c39e3400f58c43fee55 (diff) | |
download | linux-1cd0c7d732b9e59449ef57daf245bbfafa956601.tar.xz |
KVM: irqfd: fix race between EPOLLHUP and irq_bypass_register_consumer
commit 9432a3175770e06cb83eada2d91fac90c977cb99 upstream.
A comment warning against this bug is there, but the code is not doing what
the comment says. Therefore it is possible that an EPOLLHUP races against
irq_bypass_register_consumer. The EPOLLHUP handler schedules irqfd_shutdown,
and if that runs soon enough, you get a use-after-free.
Reported-by: syzbot <syzkaller@googlegroups.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions