Re: use-after-free in srpt_enable_tpg()

From: lizhijian@xxxxxxxxxxx
Date: Tue Jul 26 2022 - 23:24:50 EST


Bart,


On 05/07/2022 12:34, Bart Van Assche wrote:
>
> A potential solution could be to decouple the lifetimes of the data structures used for configfs (struct se_wwn and struct srpt_tpg) and the data structures associated with RDMA objects (struct srpt_port). If nobody else beats me to this I will try to find the time to implement this approach.

I saw your approach this morning, i will have a look and tests later.

Thanks
Zhijian