mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
Revert "net: fix crash in tcp_nuke_addr()"
This reverts commit 08f7c4280c.
This commit is contained in:
committed by
Amit Pundir
parent
99bbdddee0
commit
cf84d75f72
@@ -3305,19 +3305,8 @@ restart:
|
||||
sk_nulls_for_each(sk, node, &tcp_hashinfo.ehash[bucket].chain) {
|
||||
struct inet_sock *inet = inet_sk(sk);
|
||||
|
||||
if (sk->sk_state == TCP_TIME_WAIT) {
|
||||
/*
|
||||
* Sockets that are in TIME_WAIT state are
|
||||
* instances of lightweight inet_timewait_sock,
|
||||
* we should simply skip them (or we'll try to
|
||||
* access non-existing fields and crash).
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
|
||||
if (sysctl_ip_dynaddr && sk->sk_state == TCP_SYN_SENT)
|
||||
continue;
|
||||
|
||||
if (sock_flag(sk, SOCK_DEAD))
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user