Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b713b43 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

tcp: Disable killing of time_wait sockets in tcp_nuke_addr



tcp_nuke_addr removes all sockets in TCP state CONNECTED
and TIME_WAIT by parsing a hash list of sockets.
When parsing through this list, accessing TIME_WAIT sockets
leads to a crash since the sk meta data is probably not valid.

Fix this by bypassing TIME_WAIT sockets in tcp_nuke_addr.

Change-Id: Iafe9fafd406f1afe97f02cc55095ceb5bd3b4722
Signed-off-by: default avatarSe Wang Oh <sewango@codeaurora.org>
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 861a4ae9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment