Re: [PATCH] infiniband: fix a possible use-after-free bug
From: Cong Wang
Date: Mon Jun 04 2018 - 12:31:01 EST
On Mon, Jun 4, 2018 at 9:23 AM, Gi-Oh Kim <gi-oh.kim@xxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> Your patch is reasonable to me.
> Can I ask a question for that?
> Could it be solved by asymmetric locking as following?
Maybe, if you are sure taking file->mut is safe in that place.
Can you double check atomic_inc_not_zero(&mc->ctx->ref)?
I am too far away from familiar with infiniband. ;)