inet: control sockets should not use current thread task_frag
authorEric Dumazet <edumazet@google.com>
Tue, 3 Jan 2023 19:27:36 +0000 (19:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Jan 2023 04:38:25 +0000 (20:38 -0800)
commit1ac88557447088ccd15eb2f2520ce46d463c8e0b
tree41368d4ff67356ed2fe36418fb0f026185277d50
parent2c02d41d71f90a5168391b6a5f2954112ba2307c
inet: control sockets should not use current thread task_frag

Because ICMP handlers run from softirq contexts,
they must not use current thread task_frag.

Previously, all sockets allocated by inet_ctl_sock_create()
would use the per-socket page fragment, with no chance of
recursion.

Fixes: 98123866fcf3 ("Treewide: Stop corrupting socket's task_frag")
Reported-by: syzbot+bebc6f1acdf4cbb79b03@syzkaller.appspotmail.com
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Benjamin Coddington <bcodding@redhat.com>
Acked-by: Guillaume Nault <gnault@redhat.com>
Link: https://lore.kernel.org/r/20230103192736.454149-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/af_inet.c