Sowmini Varadhan
f10b4cff98
rds: tcp: atomically purge entries from rds_tcp_conn_list during netns delete
...
The rds_tcp_kill_sock() function parses the rds_tcp_conn_list
to find the rds_connection entries marked for deletion as part
of the netns deletion under the protection of the rds_tcp_conn_lock.
Since the rds_tcp_conn_list tracks rds_tcp_connections (which
have a 1:1 mapping with rds_conn_path), multiple tc entries in
the rds_tcp_conn_list will map to a single rds_connection, and will
be deleted as part of the rds_conn_destroy() operation that is
done outside the rds_tcp_conn_lock.
The rds_tcp_conn_list traversal done under the protection of
rds_tcp_conn_lock should not leave any doomed tc entries in
the list after the rds_tcp_conn_lock is released, else another
concurrently executiong netns delete (for a differnt netns) thread
may trip on these entries.
Reported-by: syzbot <[email protected] >
Signed-off-by: Sowmini Varadhan <[email protected] >
Acked-by: Santosh Shilimkar <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2017-12-01 15:25:15 -05:00
..
af_rds.c
RDS: validate the requested traces user input against max supported
2017-01-06 22:14:26 -05:00
bind.c
RDS: make rhashtable_params const
2017-08-28 11:30:02 -07:00
cong.c
connection.c
rds: tcp: correctly sequence cleanup on netns deletion.
2017-12-01 15:25:15 -05:00
ib.c
RDS: IB: Limit the scope of has_fr/has_fmr variables
2017-10-05 21:16:33 -07:00
ib.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-11-04 09:26:51 +09:00
ib_cm.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2017-03-15 11:59:10 -07:00
ib_fmr.c
net/rds/ib_fmr.c: use kmalloc_array_node()
2017-11-15 18:21:02 -08:00
ib_frmr.c
ib_mr.h
rds: ib: add the static type to the function
2017-03-13 23:20:05 -07:00
ib_rdma.c
RDS: IB: Initialize max_items based on underlying device attributes
2017-10-05 21:16:33 -07:00
ib_recv.c
rds: ib: Fix NULL pointer dereference in debug code
2017-11-10 14:54:47 +09:00
ib_ring.c
ib_send.c
rds: Fix inaccurate accounting of unsignaled wrs
2017-10-26 17:35:57 +09:00
ib_stats.c
ib_sysctl.c
info.c
info.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
Kconfig
loop.c
loop.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
message.c
net, rds: convert rds_message.m_refcount from atomic_t to refcount_t
2017-07-04 22:35:18 +01:00
page.c
rdma.c
net, rds: convert rds_mr.r_refcount from atomic_t to refcount_t
2017-07-04 22:35:17 +01:00
rdma_transport.c
rdma_transport.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
rds.h
rds: tcp: correctly sequence cleanup on netns deletion.
2017-12-01 15:25:15 -05:00
rds_single_path.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
2017-11-02 11:10:55 +01:00
recv.c
net, rds: convert rds_incoming.i_refcount from atomic_t to refcount_t
2017-07-04 22:35:17 +01:00
send.c
rds: Fix incorrect statistics counting
2017-09-07 20:07:13 -07:00
stats.c
sysctl.c
tcp.c
rds: tcp: atomically purge entries from rds_tcp_conn_list during netns delete
2017-12-01 15:25:15 -05:00
tcp.h
rds: tcp: atomically purge entries from rds_tcp_conn_list during netns delete
2017-12-01 15:25:15 -05:00
tcp_connect.c
rds: cancel send/recv work before queuing connection shutdown
2017-07-16 19:07:35 -07:00
tcp_listen.c
rds: tcp: use sock_create_lite() to create the accept socket
2017-07-08 11:16:16 +01:00
tcp_recv.c
RDS: add receive message trace used by application
2017-01-02 14:02:59 -08:00
tcp_send.c
rds: cancel send/recv work before queuing connection shutdown
2017-07-16 19:07:35 -07:00
tcp_stats.c
threads.c
rds: cancel send/recv work before queuing connection shutdown
2017-07-16 19:07:35 -07:00
transport.c
rds: remove unnecessary returned value check
2017-03-03 09:51:22 -08:00