diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2018-06-25 15:41:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-27 03:11:03 +0200 |
commit | c809195f5523dd4d09403bbb1c9732d548aa0d1e (patch) | |
tree | c1a071753c2b5d6d8808996f1705969f7b6ab410 /net/rds/loop.h | |
parent | Merge branch 'lan78xx-minor-fixes' (diff) | |
download | linux-c809195f5523dd4d09403bbb1c9732d548aa0d1e.tar.xz linux-c809195f5523dd4d09403bbb1c9732d548aa0d1e.zip |
rds: clean up loopback rds_connections on netns deletion
The RDS core module creates rds_connections based on callbacks
from rds_loop_transport when sending/receiving packets to local
addresses.
These connections will need to be cleaned up when they are
created from a netns that is not init_net, and that netns is deleted.
Add the changes aligned with the changes from
commit ebeeb1ad9b8a ("rds: tcp: use rds_destroy_pending() to synchronize
netns/module teardown and rds connection/workq management") for
rds_loop_transport
Reported-and-tested-by: syzbot+4c20b3866171ce8441d2@syzkaller.appspotmail.com
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/loop.h')
-rw-r--r-- | net/rds/loop.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rds/loop.h b/net/rds/loop.h index 469fa4b2da4f..bbc8cdd030df 100644 --- a/net/rds/loop.h +++ b/net/rds/loop.h @@ -5,6 +5,8 @@ /* loop.c */ extern struct rds_transport rds_loop_transport; +int rds_loop_net_init(void); +void rds_loop_net_exit(void); void rds_loop_exit(void); #endif |