aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorStefano Garzarella <[email protected]>2021-02-08 14:44:54 +0000
committerJakub Kicinski <[email protected]>2021-02-08 21:27:46 +0000
commitce7536bc7398e2ae552d2fabb7e0e371a9f1fe46 (patch)
treec0b4ee4ca792efce5a8df27e236b3c9f4a4274dc /tools/perf/util/annotate.c
parentnet: fix iteration for sctp transport seq_files (diff)
downloadkernel-ce7536bc7398e2ae552d2fabb7e0e371a9f1fe46.tar.gz
kernel-ce7536bc7398e2ae552d2fabb7e0e371a9f1fe46.zip
vsock/virtio: update credit only if socket is not closed
If the socket is closed or is being released, some resources used by virtio_transport_space_update() such as 'vsk->trans' may be released. To avoid a use after free bug we should only update the available credit when we are sure the socket is still open and we have the lock held. Fixes: 06a8fc78367d ("VSOCK: Introduce virtio_vsock_common.ko") Signed-off-by: Stefano Garzarella <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions