linux/net
Lance Richardson 00a677b683 ip6_gre: fix flowi6_proto value in ip6gre_xmit_other()
[ Upstream commit db32e4e49c ]

Similar to commit 3be07244b7 ("ip6_gre: fix flowi6_proto value in
xmit path"), set flowi6_proto to IPPROTO_GRE for output route lookup.

Up until now, ip6gre_xmit_other() has set flowi6_proto to a bogus value.
This affected output route lookup for packets sent on an ip6gretap device
in cases where routing was dependent on the value of flowi6_proto.

Since the correct proto is already set in the tunnel flowi6 template via
commit 252f3f5a11 ("ip6_gre: Set flowi6_proto as IPPROTO_GRE in xmit
path."), simply delete the line setting the incorrect flowi6_proto value.

Suggested-by: Jiri Benc <jbenc@redhat.com>
Fixes: c12b395a46 ("gre: Support GRE over IPv6")
Reviewed-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-04-18 07:55:46 +02:00
..
6lowpan 6lowpan: Allow 6LoWPAN to be modular 2014-08-07 11:44:18 -07:00
9p 9p: forgetting to cancel request on interrupted zero-copy RPC 2015-08-04 14:41:41 -04:00
802 net: set name_assign_type in alloc_netdev() 2014-07-15 16:12:48 -07:00
8021q net: better IFF_XMIT_DST_RELEASE support 2014-10-07 13:22:11 -04:00
appletalk Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-07-16 14:09:34 -07:00
atm net: better IFF_XMIT_DST_RELEASE support 2014-10-07 13:22:11 -04:00
ax25 net: add validation for the socket syscall protocol argument 2016-01-15 18:41:51 -05:00
batman-adv batman-adv: Reduce refcnt of removed router when updating route 2016-07-12 08:48:06 -04:00
bluetooth Bluetooth: make hci_test_bit's addr const 2017-02-08 09:43:03 +01:00
bridge netfilter: Fix switch statement warnings with recent gcc. 2017-02-08 09:43:03 +01:00
caif net: caif: fix misleading indentation 2017-02-08 09:43:03 +01:00
can can: Fix kernel panic at security_sock_rcv_skb 2017-04-18 07:55:43 +02:00
ceph libceph: verify authorize reply on connect 2017-01-15 09:49:52 -05:00
core net: use a work queue to defer net_disable_timestamp() work 2017-04-18 07:55:43 +02:00
dcb dcbnl : Disable software interrupts before taking dcb_lock 2014-11-16 14:50:52 -05:00
dccp ipv6: add complete rcu protection around np->opt 2015-12-14 12:19:26 -05:00
decnet decnet: Do not build routes to devices without decnet private data. 2016-07-12 08:48:07 -04:00
dns_resolver Merge commit 'v3.16' into next 2014-10-01 00:44:04 +10:00
dsa net: dsa: slave: Fix autoneg for phys on switch MDIO bus 2014-11-06 15:06:28 -05:00
ethernet net: Add function for parsing the header length out of linear ethernet frames 2014-09-05 17:47:02 -07:00
hsr net/hsr: Remove left-over never-true conditional code. 2014-07-11 15:04:40 -07:00
ieee802154 Merge tag 'master-2014-10-02' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next 2014-10-05 21:34:39 -04:00
ipv4 tcp: fix a compile error in DBGUNDO() 2017-04-18 07:55:46 +02:00
ipv6 ip6_gre: fix flowi6_proto value in ip6gre_xmit_other() 2017-04-18 07:55:46 +02:00
ipx ipx: fix locking regression in ipx_sendmsg and ipx_recvmsg 2014-11-20 22:57:03 -05:00
irda net/irda: fix NULL pointer dereference on memory allocation failure 2016-08-22 12:23:18 -04:00
iucv iucv: Convert pr_warning to pr_warn 2014-09-10 12:40:10 -07:00
key af_key: remove unnecessary break after return 2014-07-15 16:27:00 -07:00
l2tp l2tp: do not use udp_ioctl() 2017-04-18 07:55:44 +02:00
lapb net/lapb: re-send packets on timeout 2013-09-23 16:52:45 -04:00
llc net: fix infoleak in llc 2016-07-12 08:48:13 -04:00
mac80211 mac80211: discard multicast and 4-addr A-MSDUs 2016-11-23 22:56:41 -05:00
mac802154 mac802154: fix typo IEEE802515 to IEEE802154 2016-02-09 22:57:31 -05:00
mpls mpls: Allow mpls_gso to be built as module 2014-10-31 15:47:21 -04:00
netfilter netfilter; Add some missing default cases to switch statements in nft_reject. 2017-02-08 09:43:04 +01:00
netlabel netlabel: add address family checks to netlbl_{sock,req}_delattr() 2016-08-22 12:22:58 -04:00
netlink netlink: Fix dump skb leak/double free 2016-07-12 08:48:21 -04:00
netrom netrom: use linux/uaccess.h 2014-10-17 23:52:54 -04:00
nfc NFC: nci: Add support for proprietary RF Protocols 2014-09-24 02:02:24 +02:00
openvswitch openvswitch: Zero flows on allocation. 2015-10-27 09:33:03 -04:00
packet packet: fix race condition in packet_set_ring 2016-12-23 10:39:29 -05:00
phonet phonet: properly unshare skbs in phonet_rcv() 2016-02-15 15:42:44 -05:00
rds RDS: verify the underlying transport exists before creating a connection 2016-01-22 12:24:42 -05:00
rfkill rfkill: fix rfkill_fop_read wait_event usage 2016-02-15 15:42:34 -05:00
rose NET: ROSE: Don't dereference NULL neighbour pointer. 2015-07-05 10:12:48 -04:00
rxrpc rxrpc: bogus MSG_PEEK test in rxrpc_recvmsg() 2015-03-24 08:22:20 -04:00
sched netem: Segment GSO packets on enqueue 2016-07-12 08:48:12 -04:00
sctp sctp: avoid BUG_ON on sctp_wait_for_sndbuf 2017-04-18 07:55:44 +02:00
sunrpc SUNRPC: fix refcounting problems with auth_gss messages. 2017-01-15 09:49:51 -05:00
tipc net/tipc: initialize security state for new connection socket 2015-09-27 12:18:54 -04:00
unix Revert "af_unix: Fix splice-bind deadlock" 2017-04-18 07:55:43 +02:00
vmw_vsock VSOCK: do not disconnect socket when peer has shutdown SEND only 2016-07-12 08:48:15 -04:00
wimax wimax: convert printk to pr_foo() 2014-10-07 20:28:44 -04:00
wireless nl80211: validate number of probe response CSA counters 2016-10-05 22:40:20 -04:00
x25 net: fix a kernel infoleak in x25 module 2016-07-12 08:48:16 -04:00
xfrm xfrm: Fix crash observed during device unregistration and decryption 2016-07-12 08:47:41 -04:00
compat.c net: compat: Update get_compat_msghdr() to match copy_msghdr_from_user() behaviour 2015-03-24 08:22:21 -04:00
Kconfig bpf: split eBPF out of NET 2014-10-27 19:09:59 -04:00
Makefile 6lowpan: introduce new net/6lowpan directory 2014-07-12 01:53:30 +02:00
nonet.c llseek: automatically add .llseek fop 2010-10-15 15:53:27 +02:00
socket.c net: Fix use after free in the recvmmsg exit path 2016-07-12 08:47:36 -04:00
sysctl_net.c net: Update the sysctl permissions handler to test effective uid/gid 2013-10-07 15:57:56 -04:00