diff options
author | Dan Carpenter <[email protected]> | 2023-10-27 15:12:54 +0300 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2023-11-01 09:31:16 -0400 |
commit | e07754e0a1ea2d63fb29574253d1fd7405607343 (patch) | |
tree | 13eebdfea0eaf734901829b35598818af45a3f31 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | b2c8b644fac1087dfe69a1762c04df090178a5ae (diff) |
vhost-vdpa: fix use after free in vhost_vdpa_probe()
The put_device() calls vhost_vdpa_release_dev() which calls
ida_simple_remove() and frees "v". So this call to
ida_simple_remove() is a use after free and a double free.
Fixes: ebe6a354fa7e ("vhost-vdpa: Call ida_simple_remove() when failed")
Signed-off-by: Dan Carpenter <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions