Re: [PATCH 1/1] [v4.9.y] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux