Paolo Abeni 9c48060141 udp: fix jump label misuse
The commit 60fb9567bf30 ("udp: implement complete book-keeping for
encap_needed") introduced a severe misuse of jump label APIs, which
syzbot, as reported by Eric, was able to exploit.

When multiple sockets/process can concurrently request (and than
disable) the udp encap, we need to track the activation counter with
*_inc()/*_dec() jump label variants, or we can experience bad things
at disable time.

Fixes: 60fb9567bf30 ("udp: implement complete book-keeping for encap_needed")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-11-16 23:01:56 -08:00
..
2018-07-24 14:10:42 -07:00
2018-08-29 08:02:43 +02:00
2018-05-11 00:10:56 +02:00
2018-07-24 14:10:43 -07:00
2016-12-25 17:21:23 +01:00
2018-05-16 07:24:30 +02:00
2018-06-22 13:43:27 +09:00
2018-11-16 23:01:56 -08:00