diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-11-22 15:46:05 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-23 23:45:15 -0500 |
commit | f4195d1eac954a67adf112dd53404560cc55b942 (patch) | |
tree | 24c560dbc1ff6913630583db925d07ae292f55b1 /kernel | |
parent | 3c25a860d17b7378822f35d8c9141db9507e3beb (diff) | |
download | op-kernel-dev-f4195d1eac954a67adf112dd53404560cc55b942.zip op-kernel-dev-f4195d1eac954a67adf112dd53404560cc55b942.tar.gz |
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 'kernel')
0 files changed, 0 insertions, 0 deletions