ipmr_get_route()
Subsystems (2)
David S. Miller
maintainerThis is very broken.
It gets called only by rt_fill_info() to get multicast routing information from ipmr.c, the skb it passes in is the rtnetlink message.
But look at what ipmr_get_route() actually does. If the cache entry cannot be found, it tries to build an IPV4 packet using this packet to resolve the missing cache entry!
I think we don't crash here only because most of the time the user has not specified an explicit input interface in the route lookup request, and therefore skb->dev is NULL when ipmr_get_route() takes a look at it.
Nevertheless things are seriously busted here. Any takers to fix this thing up? :-)