Commit 8bc2fa04 authored by Eric Dumazet's avatar Eric Dumazet Committed by Wang Liang
Browse files

tcp: do not export tcp_twsk_purge()

stable inclusion
from stable-v6.6.48
commit f0974e6bc385f0e53034af17abbb86ac0246ef1c
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAOXZW
CVE: CVE-2024-44991

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f0974e6bc385f0e53034af17abbb86ac0246ef1c



--------------------------------

commit c51db4ac10d57c366f9a92121e3889bfc6c324cd upstream.

After commit 1eeb50435739 ("tcp/dccp: do not care about
families in inet_twsk_purge()") tcp_twsk_purge() is
no longer potentially called from a module.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarWang Liang <wangliang74@huawei.com>
parent 9a9b87ed
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -378,7 +378,6 @@ void tcp_twsk_purge(struct list_head *net_exit_list)
		}
	}
}
EXPORT_SYMBOL_GPL(tcp_twsk_purge);

/* Warning : This function is called without sk_listener being locked.
 * Be sure to read socket fields once, as their value could change under us.