summaryrefslogtreecommitdiff
path: root/net/tipc/udp_media.c
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2015-11-22 07:46:05 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-11-24 04:45:15 (GMT)
commitf4195d1eac954a67adf112dd53404560cc55b942 (patch)
tree24c560dbc1ff6913630583db925d07ae292f55b1 /net/tipc/udp_media.c
parent3c25a860d17b7378822f35d8c9141db9507e3beb (diff)
downloadlinux-f4195d1eac954a67adf112dd53404560cc55b942.tar.xz
tipc: avoid packets leaking on socket receive queue
Even if we drain receive queue thoroughly in tipc_release() after tipc socket is removed from rhashtable, it is possible that some packets are in flight because some CPU runs receiver and did rhashtable lookup before we removed socket. They will achieve receive queue, but nobody delete them at all. To avoid this leak, we register a private socket destructor to purge receive queue, meaning releasing packets pending on receive queue will be delayed until the last reference of tipc socket will be released. Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/udp_media.c')
0 files changed, 0 insertions, 0 deletions