diff options
author | Steve Rutherford <srutherford@google.com> | 2020-04-16 22:11:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-01 14:14:42 +0300 |
commit | 2c0356665fd0f6161a9284a61c06974ac82af7a7 (patch) | |
tree | 42dfa82b0139e2c08dd5053f31c4b8afa1c7145e /fs/block_dev.c | |
parent | 99e4fecd18d6d26c96cec5b03880d63924b77cfe (diff) | |
download | linux-2c0356665fd0f6161a9284a61c06974ac82af7a7.tar.xz |
KVM: Remove CREATE_IRQCHIP/SET_PIT2 race
[ Upstream commit 7289fdb5dcdbc5155b5531529c44105868a762f2 ]
Fixes a NULL pointer dereference, caused by the PIT firing an interrupt
before the interrupt table has been initialized.
SET_PIT2 can race with the creation of the IRQchip. In particular,
if SET_PIT2 is called with a low PIT timer period (after the creation of
the IOAPIC, but before the instantiation of the irq routes), the PIT can
fire an interrupt at an uninitialized table.
Signed-off-by: Steve Rutherford <srutherford@google.com>
Signed-off-by: Jon Cargille <jcargill@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Message-Id: <20200416191152.259434-1-jcargill@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions