]> git.baikalelectronics.ru Git - kernel.git/commit
udp: fix possible user after free in error handler
authorPaolo Abeni <pabeni@redhat.com>
Thu, 21 Feb 2019 16:44:00 +0000 (17:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Feb 2019 00:05:11 +0000 (16:05 -0800)
commit4db860d74543f02a82ee47c06f6cdaf4bcf066a0
treea3c10fb8d15b866a0812ed3d3460f09d52968978
parent7ca1cde0883584595d28e3d9bed59acb869ebe79
udp: fix possible user after free in error handler

Similar to the previous commit, this addresses the same issue for
ipv4: use a single fetch operation and use the correct rcu
annotation.

Fixes: f3e334d06c5d ("udp: Support for error handlers of tunnels with arbitrary destination port")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c