linux-stable/drivers/infiniband/core
Parav Pandit e3a8c7b5d7 IB/core: Fix missing RDMA cgroups release in case of failure to register device
commit 2fb4f4eadd upstream.

During IB device registration process, if query_device() fails or if
ib_core fails to registers sysfs entries, rdma cgroup cleanup is
skipped.

Cc: <stable@vger.kernel.org> # v4.2+
Fixes: 4be3a4fa51 ("IB/core: Fix kernel crash during fail to initialize device")
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-15 10:54:33 +01:00
..
addr.c IB/core: Fix use workqueue without WQ_MEM_RECLAIM 2017-12-20 10:10:35 +01:00
agent.c
agent.h
cache.c
cgroup.c
cm.c IB/cm: Fix memory corruption in handling CM request 2017-11-30 08:40:54 +00:00
cm_msgs.h
cma.c RDMA/cma: Make sure that PSN is not over max allowed 2018-02-25 11:07:57 +01:00
cma_configfs.c
core_priv.h RDMA/netlink: Fix locking around __ib_get_device_by_index 2018-03-03 10:24:34 +01:00
cq.c
device.c IB/core: Fix missing RDMA cgroups release in case of failure to register device 2018-03-15 10:54:33 +01:00
fmr_pool.c
iwcm.c RDMA/netlink: Fix general protection fault 2018-02-25 11:07:46 +01:00
iwcm.h
iwpm_msg.c RDMA/iwpm: Properly mark end of NL messages 2017-09-29 11:32:42 -04:00
iwpm_util.c RDMA/iwpm: Properly mark end of NL messages 2017-09-29 11:32:42 -04:00
iwpm_util.h
mad.c IB/core: Avoid crash on pkey enforcement failed in received MADs 2017-11-30 08:40:55 +00:00
mad_priv.h
mad_rmpp.c
mad_rmpp.h
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mr_pool.c
multicast.c
netlink.c RDMA/netlink: OOPs in rdma_nl_rcv_msg() from misinterpreted flag 2017-10-25 14:54:43 -04:00
nldev.c RDMA/netlink: Fix locking around __ib_get_device_by_index 2018-03-03 10:24:34 +01:00
opa_smi.h
packer.c
rdma_core.c IB/uverbs: Improve lockdep_check 2018-03-15 10:54:28 +01:00
rdma_core.h IB/core: Add new ioctl interface 2017-08-31 08:35:09 -04:00
roce_gid_mgmt.c
rw.c rdma core: Add rdma_rw_mr_payload() 2017-09-05 15:15:30 -04:00
sa.h
sa_query.c
security.c IB/core: Verify that QP is security enabled in create and destroy 2018-01-02 20:31:04 +01:00
smi.c
smi.h
sysfs.c IB/core: Fix two kernel warnings triggered by rxe registration 2018-02-22 15:42:14 +01:00
ucm.c
ucma.c RDMA/ucma: Check that user doesn't overflow QP state 2018-03-15 10:54:28 +01:00
ud_header.c
umem.c IB/core: disable memory registration of filesystem-dax vmas 2017-12-05 11:26:29 +01:00
umem_odp.c IB/umem: update to new mmu_notifier semantic 2017-08-31 16:12:59 -07:00
umem_rbtree.c lib/interval_tree: fast overlap detection 2017-09-08 18:26:49 -07:00
user_mad.c IB/umad: Fix use of unprotected device pointer 2018-02-22 15:42:14 +01:00
uverbs.h IB/core: Expose ioctl interface through experimental Kconfig 2017-08-31 08:35:14 -04:00
uverbs_cmd.c RDMA/uverbs: Sanitize user entered port numbers prior to access it 2018-02-28 10:19:40 +01:00
uverbs_ioctl.c IB/core: Add new ioctl interface 2017-08-31 08:35:09 -04:00
uverbs_ioctl_merge.c IB/core: Add uverbs merge trees functionality 2017-08-31 08:35:10 -04:00
uverbs_main.c RDMA/uverbs: Protect from command mask overflow 2018-02-28 10:19:40 +01:00
uverbs_marshall.c
uverbs_std_types.c IB/core: Avoid a potential OOPs for an unused optional parameter 2018-02-22 15:42:15 +01:00
verbs.c IB/core: Verify that QP is security enabled in create and destroy 2018-01-02 20:31:04 +01:00