Files
linux/drivers/infiniband/core
Myungho Jung 9dd5053c8c RDMA/cma: Rollback source IP address if failing to acquire device
commit 5fc01fb846 upstream.

If cma_acquire_dev_by_src_ip() returns error in addr_handler(), the
device state changes back to RDMA_CM_ADDR_BOUND but the resolved source
IP address is still left. After that, if rdma_destroy_id() is called
after rdma_listen(), the device is freed without removed from
listen_any_list in cma_cancel_operation(). Revert to the previous IP
address if acquiring device fails.

Reported-by: syzbot+f3ce716af730c8f96637@syzkaller.appspotmail.com
Signed-off-by: Myungho Jung <mhjungk@gmail.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-27 14:14:42 +09:00
..
2018-07-30 20:49:04 -06:00
2018-06-12 16:19:22 -07:00
2018-06-18 11:22:54 -06:00
2016-05-13 13:37:18 -04:00
2018-10-16 11:32:40 -04:00
2018-10-16 12:47:40 -04:00
2018-09-25 14:47:33 -06:00