Re: [PATCH net] net/rds: An rds_sock is added too early to the hash table

2019-09-11 Thread David Miller
From: Ka-Cheong Poon Date: Wed, 11 Sep 2019 02:58:05 -0700 > In rds_bind(), an rds_sock is added to the RDS bind hash table before > rs_transport is set. This means that the socket can be found by the > receive code path when rs_transport is NULL. And the receive code > path de-references rs_tr

[PATCH net] net/rds: An rds_sock is added too early to the hash table

2019-09-11 Thread Ka-Cheong Poon
In rds_bind(), an rds_sock is added to the RDS bind hash table before rs_transport is set. This means that the socket can be found by the receive code path when rs_transport is NULL. And the receive code path de-references rs_transport for congestion update check. This can cause a panic. An rds