android_kernel_oneplus_msm8998/drivers/hv
K. Y. Srinivasan eaee7976cf Drivers: hv: util: Pass the channel information during the init call
commit b9830d120cbe155863399f25eaef6aa8353e767f upstream.

Pass the channel information to the util drivers that need to defer
reading the channel while they are processing a request. This would address
the following issue reported by Vitaly:

Commit 3cace4a61610 ("Drivers: hv: utils: run polling callback always in
interrupt context") removed direct *_transaction.state = HVUTIL_READY
assignments from *_handle_handshake() functions introducing the following
race: if a userspace daemon connects before we get first non-negotiation
request from the server hv_poll_channel() won't set transaction state to
HVUTIL_READY as (!channel) condition will fail, we set it to non-NULL on
the first real request from the server.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reported-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-20 09:52:38 +02:00
..
channel.c Drivers: hv: get rid of timeout in vmbus_open() 2017-04-27 09:09:32 +02:00
channel_mgmt.c Drivers: hv: vmbus: avoid scheduling in interrupt context in vmbus_initiate_unload() 2016-09-15 08:27:46 +02:00
connection.c Drivers: hv: vmbus: Reduce the delay between retries in vmbus_post_msg() 2017-04-27 09:09:32 +02:00
hv.c Drivers: hv: vmbus: fix build warning 2018-02-25 11:03:46 +01:00
hv_balloon.c Drivers: hv: balloon: account for gaps in hot add regions 2017-04-27 09:09:34 +02:00
hv_fcopy.c Drivers: hv: util: Pass the channel information during the init call 2018-10-20 09:52:38 +02:00
hv_kvp.c Drivers: hv: util: Pass the channel information during the init call 2018-10-20 09:52:38 +02:00
hv_snapshot.c Drivers: hv: util: Pass the channel information during the init call 2018-10-20 09:52:38 +02:00
hv_util.c Drivers: hv: util: Pass the channel information during the init call 2018-10-20 09:52:38 +02:00
hv_utils_transport.c Drivers: hv: util: catch allocation errors 2016-09-15 08:27:40 +02:00
hv_utils_transport.h Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
hyperv_vmbus.h Drivers: hv: avoid vfree() on crash 2017-03-26 12:13:18 +02:00
Kconfig
Makefile Drivers: hv: util: introduce hv_utils_transport abstraction 2015-05-24 12:17:41 -07:00
ring_buffer.c Drivers: hv_vmbus: Fix signal to host condition 2015-08-05 11:44:29 -07:00
vmbus_drv.c Drivers: hv: avoid vfree() on crash 2017-03-26 12:13:18 +02:00