Re: Re: [PATCH] net/mlx5: Fix a potential use after free in mlx5e_ktls_del_rx

2021-03-23 Thread lyl2019
nux-r...@vger.kernel.org, > linux-kernel@vger.kernel.org > 主题: Re: [PATCH] net/mlx5: Fix a potential use after free in mlx5e_ktls_del_rx > > On 2021-03-22 16:21, Lv Yunlong wrote: > > My static analyzer tool reported a potential uaf in > > mlx5e_ktls_del_rx. In th

Re: [PATCH] net/mlx5: Fix a potential use after free in mlx5e_ktls_del_rx

2021-03-23 Thread Maxim Mikityanskiy
On 2021-03-22 16:21, Lv Yunlong wrote: My static analyzer tool reported a potential uaf in mlx5e_ktls_del_rx. In this function, if the condition cancel_work_sync(>work) is true, and then priv_rx could be freed. But priv_rx is used later. I'm unfamiliar with how this function works. Maybe the

[PATCH] net/mlx5: Fix a potential use after free in mlx5e_ktls_del_rx

2021-03-22 Thread Lv Yunlong
My static analyzer tool reported a potential uaf in mlx5e_ktls_del_rx. In this function, if the condition cancel_work_sync(>work) is true, and then priv_rx could be freed. But priv_rx is used later. I'm unfamiliar with how this function works. Maybe the maintainer forgot to add return after