linux_dsm_epyc7002/net/vmw_vsock
Stefano Garzarella 039fcccaed vsock: avoid to assign transport if its initialization fails
If transport->init() fails, we can't assign the transport to the
socket, because it's not initialized correctly, and any future
calls to the transport callbacks would have an unexpected behavior.

Fixes: c0cfa2d8a7 ("vsock: add multi-transports support")
Reported-and-tested-by: syzbot+e2e5c07bf353b2f79daa@syzkaller.appspotmail.com
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-11-21 11:37:16 -08:00
..
af_vsock_tap.c
af_vsock.c vsock: avoid to assign transport if its initialization fails 2019-11-21 11:37:16 -08:00
diag.c
hyperv_transport.c vsock: prevent transport modules unloading 2019-11-14 18:12:18 -08:00
Kconfig
Makefile
virtio_transport_common.c vsock: add multi-transports support 2019-11-14 18:12:18 -08:00
virtio_transport.c vsock: prevent transport modules unloading 2019-11-14 18:12:18 -08:00
vmci_transport_notify_qstate.c
vmci_transport_notify.c
vmci_transport_notify.h vsock: remove include/linux/vm_sockets.h file 2019-11-14 18:12:17 -08:00
vmci_transport.c vsock: prevent transport modules unloading 2019-11-14 18:12:18 -08:00
vmci_transport.h vsock: handle buffer_size sockopts in the core 2019-11-14 18:12:18 -08:00
vsock_addr.c