From 27405674c5a31245316a08032db58b31cc3c4602 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 11 Jul 2023 13:13:07 +0200 Subject: [PATCH] net: fix potential recursion over allocation --- kernel/mars_net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/mars_net.c b/kernel/mars_net.c index 1b370edc..bcafb833 100644 --- a/kernel/mars_net.c +++ b/kernel/mars_net.c @@ -212,6 +212,7 @@ void _set_socketopts(struct socket *sock, struct mars_tcp_params *params, bool i } sock->sk->sk_rcvtimeo = sock->sk->sk_sndtimeo = params->tcp_timeout * HZ; sock->sk->sk_reuse = SK_CAN_REUSE; + sock->sk->sk_allocation = GFP_NOIO; _setsockopt(sock, SOL_SOCKET, SO_SNDBUFFORCE, params->tcp_window_size); _setsockopt(sock, SOL_SOCKET, SO_RCVBUFFORCE, params->tcp_window_size); #ifdef CONFIG_MARS_IPv4_TOS