Re: [PATCH] vhost: avoid potential null pointer access

2023-08-30 Thread Li Feng
Sorry, ignore this patch, there is a rebase error. I will fix it in V2. > On 30 Aug 2023, at 4:47 PM, Li Feng wrote: > > If the user calls rte_vhost_vring_call() on a ring that has been > invalidated, we will encounter SEGV. > > We should check the pointer firstly before accessing it. > > Sig

[PATCH] vhost: avoid potential null pointer access

2023-08-30 Thread Li Feng
If the user calls rte_vhost_vring_call() on a ring that has been invalidated, we will encounter SEGV. We should check the pointer firstly before accessing it. Signed-off-by: Li Feng --- lib/vhost/vhost.c | 7 --- lib/vhost/vhost.h | 12 ++-- 2 files changed, 14 insertions(+), 5 del