Home Home > GIT Browse > SLE12-SP4-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2019-05-14 10:50:05 +0200
committerMichal Kubecek <mkubecek@suse.cz>2019-05-14 10:50:05 +0200
commitff1bb48c92f51772dd83daaee42403a95b575d0f (patch)
tree664fd960dce47a0ee13b0a5e1c9ee289a7ec32dc
parentc5a0cf2830ab50702aa5974a735676089864bc63 (diff)
net: rds: force to destroy connection if t_sock is NULL in
rds_tcp_kill_sock() (CVE-2019-11815 bsc#1134537). suse-commit: 1f4fdb28a491c19dc519fd0c20ffcd87465dc3da
-rw-r--r--net/rds/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index b598c81aef69..9bee2f9ca11e 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -509,7 +509,7 @@ static void rds_tcp_kill_sock(struct net *net)
list_for_each_entry_safe(tc, _tc, &rds_tcp_conn_list, t_tcp_node) {
struct net *c_net = read_pnet(&tc->t_cpath->cp_conn->c_net);
- if (net != c_net || !tc->t_sock)
+ if (net != c_net)
continue;
if (!list_has_conn(&tmp_list, tc->t_cpath->cp_conn)) {
list_move_tail(&tc->t_tcp_node, &tmp_list);