summaryrefslogtreecommitdiff
path: root/include/linux/atalk.h
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2019-03-06 12:42:53 +0300
committerDavid S. Miller <davem@davemloft.net>2019-03-06 21:23:18 +0300
commit22c74764aa2943ecdf9f07c900d8a9c8ba6c9265 (patch)
tree44693948394b290d37255d46367355fef53eb8bd /include/linux/atalk.h
parentf4772dee101c7ac66e395d07b3140d457901fa18 (diff)
downloadlinux-22c74764aa2943ecdf9f07c900d8a9c8ba6c9265.tar.xz
ipv4/route: fail early when inet dev is missing
If a non local multicast packet reaches ip_route_input_rcu() while the ingress device IPv4 private data (in_dev) is NULL, we end up doing a NULL pointer dereference in IN_DEV_MFORWARD(). Since the later call to ip_route_input_mc() is going to fail if !in_dev, we can fail early in such scenario and avoid the dangerous code path. v1 -> v2: - clarified the commit message, no code changes Reported-by: Tianhao Zhao <tizhao@redhat.com> Fixes: e58e41596811 ("net: Enable support for VRF with ipv4 multicast") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/atalk.h')
0 files changed, 0 insertions, 0 deletions