Drivers: hv: vmbus: Initialize unload_event statically
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Tue, 20 Apr 2021 01:43:50 +0000 (03:43 +0200)
committerWei Liu <wei.liu@kernel.org>
Tue, 20 Apr 2021 19:40:17 +0000 (19:40 +0000)
commit8c2d5e0640e53c14b6240e9bf1e32a2226e6e6ca
treef8e4d1c4f267e9a092d17105f848fe93831ca393
parentb635ccc1ec26b9b6e2cb1495c3d9d903e0b4f95a
Drivers: hv: vmbus: Initialize unload_event statically

If a malicious or compromised Hyper-V sends a spurious message of type
CHANNELMSG_UNLOAD_RESPONSE, the function vmbus_unload_response() will
call complete() on an uninitialized event, and cause an oops.

Reported-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20210420014350.2002-1-parri.andrea@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/channel_mgmt.c
drivers/hv/connection.c