diff options
| author | Norbert Slusarek <[email protected]> | 2021-02-05 12:14:05 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-02-06 23:03:31 +0000 |
| commit | 3d0bc44d39bca615b72637e340317b7899b7f911 (patch) | |
| tree | 406396f7f0faf47889c6c7c37b77029dc0e6fd31 /net/sctp/proc.c | |
| parent | net/vmw_vsock: fix NULL pointer dereference (diff) | |
| download | kernel-3d0bc44d39bca615b72637e340317b7899b7f911.tar.gz kernel-3d0bc44d39bca615b72637e340317b7899b7f911.zip | |
net/vmw_vsock: improve locking in vsock_connect_timeout()
A possible locking issue in vsock_connect_timeout() was recognized by
Eric Dumazet which might cause a null pointer dereference in
vsock_transport_cancel_pkt(). This patch assures that
vsock_transport_cancel_pkt() will be called within the lock, so a race
condition won't occur which could result in vsk->transport to be set to NULL.
Fixes: 380feae0def7 ("vsock: cancel packets when failing to connect")
Reported-by: Eric Dumazet <[email protected]>
Signed-off-by: Norbert Slusarek <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Link: https://lore.kernel.org/r/trinity-f8e0937a-cf0e-4d80-a76e-d9a958ba3ef1-1612535522360@3c-app-gmx-bap12
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/sctp/proc.c')
0 files changed, 0 insertions, 0 deletions
