From: Paolo Abeni <pab...@redhat.com> Date: Tue, 5 Mar 2019 13:49:39 +0100
> If a non local multicast packet reaches ip_route_input_rcu() while > the ingress device 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. > > Reported-by: Tianhao Zhao <tiz...@redhat.com> > Fixes: e58e41596811 ("net: Enable support for VRF with ipv4 multicast") > Signed-off-by: Paolo Abeni <pab...@redhat.com> Please adjust your commit log message based upon David Ahern's feedback, thank you.