mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
net: ping: do not abuse udp_poll()
Alexander reported various KASAN messages triggered in recent kernels The problem is that ping sockets should not use udp_poll() in the first place, and recent changes in UDP stack finally exposed this old bug. Fixes:c319b4d76b("net: ipv4: add IPPROTO_ICMP socket kind") Fixes:6d0bfe2261("net: ipv6: Add IPv6 support to the ping socket.") Signed-off-by: Eric Dumazet <[email protected]> Reported-by: Sasha Levin <[email protected]> Cc: Solar Designer <[email protected]> Cc: Vasiliy Kulikov <[email protected]> Cc: Lorenzo Colitti <[email protected]> Acked-By: Lorenzo Colitti <[email protected]> Tested-By: Lorenzo Colitti <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b07ac98946
commit
77d4b1d369
4 changed files with 4 additions and 3 deletions
|
|
@ -1043,7 +1043,7 @@ static struct inet_protosw inetsw_array[] =
|
|||
.type = SOCK_DGRAM,
|
||||
.protocol = IPPROTO_ICMP,
|
||||
.prot = &ping_prot,
|
||||
.ops = &inet_dgram_ops,
|
||||
.ops = &inet_sockraw_ops,
|
||||
.flags = INET_PROTOSW_REUSE,
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue