Re: [PATCH net] net: ping: do not abuse udp_poll()

From: David Miller
Date: Sun Jun 04 2017 - 22:58:30 EST


From: Eric Dumazet <eric.dumazet@xxxxxxxxx>
Date: Sat, 03 Jun 2017 09:29:25 -0700

> From: Eric Dumazet <edumazet@xxxxxxxxxx>
>
> 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: c319b4d76b9e ("net: ipv4: add IPPROTO_ICMP socket kind")
> Fixes: 6d0bfe226116 ("net: ipv6: Add IPv6 support to the ping socket.")
> Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>
> Reported-by: Sasha Levin <alexander.levin@xxxxxxxxxxx>

Applied and queued up for -stable.