RE: [PATCH rdma-next] RDMA/core: Fix use after free and refcnt leak on ndev in_device in iwarp_query_port

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

 



> Subject: [PATCH rdma-next] RDMA/core: Fix use after free and refcnt leak on ndev
> in_device in iwarp_query_port
> 
> If an iWARP driver is probed and removed while there are no ips set for the device,
> it will lead to a reference count leak on the inet device of the netdevice.
> 
> In addition, the netdevice was accessed after already calling netdev_put, which
> could lead to using the netdev after already freed.
> 
> Fixes: 4929116bdf72 ("RDMA/core: Add common iWARP query port")
> Signed-off-by: Ariel Elior <ariel.elior@xxxxxxxxxxx>
> Signed-off-by: Michal Kalderon <michal.kalderon@xxxxxxxxxxx>
> ---

Looks ok. Thanks!

Reviewed-by: Shiraz Saleem <shiraz.saleem@xxxxxxxxx>



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux