Dotan Barak
ba97088faa
net/rds: Fix error handling in rds_ib_add_one()
...
[ Upstream commit d64bf89a75b65f83f06be9fb8f978e60d53752db ]
rds_ibdev:ipaddr_list and rds_ibdev:conn_list are initialized
after allocation some resources such as protection domain.
If allocation of such resources fail, then these uninitialized
variables are accessed in rds_ib_dev_free() in failure path. This
can potentially crash the system. The code has been updated to
initialize these variables very early in the function.
Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Sudhakar Dindukurti <sudhakar.dindukurti@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-07 18:53:23 +02:00
..
af_rds.c
RDS: Add support for SO_TIMESTAMP for incoming messages
2016-03-02 14:13:17 -05:00
bind.c
rds: fix refcount bug in rds_sock_addref
2019-02-12 19:45:00 +01:00
cong.c
RDS: split out connection specific state from rds_connection to rds_conn_path
2016-06-14 23:50:41 -07:00
connection.c
RDS: TCP: Enable multipath RDS for TCP
2016-07-15 11:36:58 -07:00
ib.c
net/rds: Fix error handling in rds_ib_add_one()
2019-10-07 18:53:23 +02:00
ib.h
RDS: add __printf format attribute to error reporting functions
2016-08-08 16:16:21 -07:00
ib_cm.c
rds: ib: Fix missing call to rds_ib_dev_put in rds_ib_setup_qp
2018-11-10 07:42:50 -08:00
ib_fmr.c
net: rds: exchange of 8K and 1M pool
2019-05-02 09:32:05 +02:00
ib_frmr.c
RDS: IB: fix 'passing zero to ERR_PTR()' warning
2018-09-15 09:43:00 +02:00
ib_mr.h
RDS: IB: Support Fastreg MR (FRMR) memory registration mode
2016-03-02 14:13:19 -05:00
ib_rdma.c
net: rds: fix memory leak in rds_ib_flush_mr_pool
2019-06-11 12:22:46 +02:00
ib_recv.c
RDS: TCP: make receive path use the rds_conn_path
2016-07-01 16:45:17 -04:00
ib_ring.c
ib_send.c
RDS: RDMA: Fix the composite message user notification
2017-10-08 10:26:02 +02:00
ib_stats.c
RDS: IB: add mr reused stats
2016-03-02 14:13:19 -05:00
ib_sysctl.c
info.c
info.h
Kconfig
RDS: Drop stale iWARP RDMA transport
2016-03-02 14:13:17 -05:00
loop.c
rds: avoid unenecessary cong_update in loop transport
2018-07-22 14:27:39 +02:00
loop.h
Makefile
rds: debug messages are enabled by default
2016-10-29 15:55:57 -04:00
message.c
RDS: TCP: Enable multipath RDS for TCP
2016-07-15 11:36:58 -07:00
page.c
RDS: memory allocated must be align to 8
2016-04-07 16:58:27 -04:00
rdma.c
RDS: null pointer dereference in rds_atomic_free_op
2018-01-17 09:38:53 +01:00
rdma_transport.c
RDS: split out connection specific state from rds_connection to rds_conn_path
2016-06-14 23:50:41 -07:00
rdma_transport.h
RDS: Drop stale iWARP RDMA transport
2016-03-02 14:13:17 -05:00
rds.h
rds: avoid unenecessary cong_update in loop transport
2018-07-22 14:27:39 +02:00
rds_single_path.h
RDS: split out connection specific state from rds_connection to rds_conn_path
2016-06-14 23:50:41 -07:00
recv.c
rds: avoid unenecessary cong_update in loop transport
2018-07-22 14:27:39 +02:00
send.c
rds: MP-RDS may use an invalid c_path
2018-04-20 08:21:07 +02:00
stats.c
sysctl.c
net: rds: fix coding style issues
2016-06-18 21:34:09 -07:00
tcp.c
net: rds: force to destroy connection if t_sock is NULL in rds_tcp_kill_sock().
2019-04-17 08:36:44 +02:00
tcp.h
rds: tcp: atomically purge entries from rds_tcp_conn_list during netns delete
2018-02-25 11:05:43 +01:00
tcp_connect.c
RDS: TCP: Enable multipath RDS for TCP
2016-07-15 11:36:58 -07:00
tcp_listen.c
rds: tcp: Sequence teardown of listen and acceptor sockets to avoid races
2017-12-14 09:28:20 +01:00
tcp_recv.c
RDS: TCP: make receive path use the rds_conn_path
2016-07-01 16:45:17 -04:00
tcp_send.c
RDS: TCP: Enable multipath RDS for TCP
2016-07-15 11:36:58 -07:00
tcp_stats.c
threads.c
RDS: TCP: Enable multipath RDS for TCP
2016-07-15 11:36:58 -07:00
transport.c
net: rds: fix coding style issues
2016-06-18 21:34:09 -07:00