aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/cm.c
diff options
context:
space:
mode:
authorMyungho Jung <mhjungk@gmail.com>2019-01-09 22:27:31 -0800
committerJason Gunthorpe <jgg@mellanox.com>2019-01-14 15:28:26 -0700
commit5fc01fb846bce8fa6d5f95e2625b8ce0f8e86810 (patch)
treed218643d77b75d76abe8ad6cb9749b9c9c873c2c /drivers/infiniband/hw/cxgb4/cm.c
parentRDMA/bnxt_re: fix a size calculation (diff)
downloadlinux-dev-5fc01fb846bce8fa6d5f95e2625b8ce0f8e86810.tar.xz
linux-dev-5fc01fb846bce8fa6d5f95e2625b8ce0f8e86810.zip
RDMA/cma: Rollback source IP address if failing to acquire device
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>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/cm.c')
0 files changed, 0 insertions, 0 deletions