On Thu, Jun 06, 2019 at 10:25:23AM +0000, Ajay Kaher wrote: > > I think in this kernel the mm handling code for IB is in three > > different drivers, it probably needs to be fixed too? > > Thanks Jason for pointing this. > > Crossed checked the locking of mmap_sem in IB driver code of 4.9 to 4.14 with >5.0 > and found it requires to handle at following locations of 4.9 and 4.14: > mlx4_ib_disassociate_ucontext() of drivers/infiniband/hw/mlx5/main.c: > mlx5_ib_disassociate_ucontext() of drivers/infiniband/hw/mlx4/main.c > > To fix at above location, would you like me to modify the original > patch or submit in another patch. I think it is a backporting thing, so you should put the new work in this patch? I'm not sure. I'm also surprised hns isn't in the above list of drivers, but maybe hns didn't have this support in these kernels.. Jason