[PATCH] vhost: Fix the crash caused by accessing the released memory

2024-06-24 Thread zhaoxinxin
The rte_vhost_driver_unregister() vhost_user_read_cb() vhost_user_client_reconnect() can be called at the same time by 3 threads. when memory of vsocket is freed in rte_vhost_driver_unregister(), then vhost_user_read_cb() maybe add vsocket to reconn_list, the invalid memory of vsocket is accessed i

[PATCH] vhost: Fix the crash caused by accessing the released memory

2024-06-19 Thread zhaoxinxin
in vhost_user_client_reconnect(). The core trace is: Program terminated with signal 11, Segmentation fault. The fix is to perform a delete operation again after releasing the memory Signed-off-by: zhaoxinxin <15957197...@163.com> --- lib/vhost/socket.c | 2 ++ 1 file changed, 2 inse

[PATCH] vhost: Fix the crash caused by accessing the released memory

2024-06-19 Thread zhaoxinxin
in vhost_user_client_reconnect(). The core trace is: Program terminated with signal 11, Segmentation fault. The fix is to perform a delete operation again after releasing the memory Signed-off-by: zhaoxinxin <15957197...@163.com> --- lib/vhost/socket.c | 2 ++ 1 file changed, 2 inse

[PATCH] vhost: Fix the crash caused by accessing the released memory

2024-06-18 Thread zhaoxinxin
in vhost_user_client_reconnect(). The core trace is: Program terminated with signal 11, Segmentation fault. The fix is to perform a delete operation again after releasing the memory Signed-off-by: zhaoxinxin <15957197...@163.com> --- lib/vhost/socket.c | 2 ++ 1 file chan

[PATCH] vhost: Fix the crash caused by accessing the released memory

2024-06-17 Thread zhaoxinxin
accessed in vhost_user_client_reconnect(). The core trace is: Program terminated with signal 11, Segmentation fault. The fix is to perform a delete operation again after releasing the memory Signed-off-by: zhaoxinxin <15957197...@163.com> --- lib/vhost/socket.c | 2 ++ 1 file chan