]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv4: Pass original device to ip_rcv_finish_core
authorDavid Ahern <dsahern@gmail.com>
Mon, 25 Feb 2019 21:55:48 +0000 (13:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Mar 2019 06:10:14 +0000 (07:10 +0100)
commitb5780a251888fa930809d57fde656a58a6c934c1
tree2c703c99eb11089376d1467f72df6a5d22f508c5
parentb1567f7d8343156d6b079a8a614ddf885f88f148
ipv4: Pass original device to ip_rcv_finish_core

[ Upstream commit a1fd1ad2552fad9e649eeb85fd79301e2880a886 ]

ip_route_input_rcu expects the original ingress device (e.g., for
proper multicast handling). The skb->dev can be changed by l3mdev_ip_rcv,
so dev needs to be saved prior to calling it. This was the behavior prior
to the listify changes.

Fixes: 5fa12739a53d0 ("net: ipv4: listify ip_rcv_finish")
Cc: Edward Cree <ecree@solarflare.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ip_input.c