Hannes Frederic Sowa
01ba16d6ec
ipv6: reset dst.expires value when clearing expire flag
...
On receiving a packet too big icmp error we update the expire value by
calling rt6_update_expires. This function uses dst_set_expires which is
implemented that it can only reduce the expiration value of the dst entry.
If we insert new routing non-expiry information into the ipv6 fib where
we already have a matching rt6_info we only clear the RTF_EXPIRES flag
in rt6i_flags and leave the dst.expires value as is.
When new mtu information arrives for that cached dst_entry we again
call dst_set_expires. This time it won't update the dst.expire value
because we left the dst.expire value intact from the last update. So
dst_set_expires won't touch dst.expires.
Fix this by resetting dst.expires when clearing the RTF_EXPIRE flag.
dst_set_expires checks for a zero expiration and updates the
dst.expires.
In the past this (not updating dst.expires) was necessary because
dst.expire was placed in a union with the dst_entry *from reference
and rt6_clean_expires did assign NULL to it. This split happend in
ecd9883724 ("ipv6: fix race condition
regarding dst->expires and dst->from").
Reported-by: Steinar H. Gunderson <[email protected] >
Reported-by: Valentijn Sessink <[email protected] >
Cc: YOSHIFUJI Hideaki <[email protected] >
Acked-by: Eric Dumazet <[email protected] >
Tested-by: Valentijn Sessink <[email protected] >
Signed-off-by: Hannes Frederic Sowa <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2013-10-25 19:26:59 -04:00
..
9p
for-linus-3.12-merge minor 9p fixes and tweaks for 3.12 merge window
2013-09-11 12:34:13 -07:00
bluetooth
Bluetooth: Introduce a new HCI_RFKILLED flag
2013-09-18 12:37:27 -05:00
caif
irda
iucv
netfilter
netfilter: synproxy: fix BUG_ON triggered by corrupt TCP packets
2013-09-30 12:44:38 +02:00
netns
nfc
phonet
sctp
net: sctp: reorder sctp_globals to reduce cacheline usage
2013-08-29 14:55:54 -04:00
tc_act
act_api.h
addrconf.h
IPv6 NAT: Do not drop DNATed 6to4/6rd packets
2013-09-28 15:56:15 -04:00
af_ieee802154.h
af_rxrpc.h
af_unix.h
af_vsock.h
ah.h
arp.h
atmclip.h
ax25.h
ax88796.h
busy_poll.h
net: add cpu_relax to busy poll loop
2013-08-28 17:45:48 -04:00
cfg80211-wext.h
cfg80211.h
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
2013-08-29 14:08:24 -04:00
checksum.h
cipso_ipv4.h
net: fix cipso packet validation when !NETLABEL
2013-10-19 18:55:42 -04:00
cls_cgroup.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2013-09-05 14:54:29 -07:00
codel.h
compat.h
datalink.h
dcbevent.h
dcbnl.h
dn.h
dn_dev.h
dn_fib.h
dn_neigh.h
dn_nsp.h
dn_route.h
dsa.h
dsfield.h
dst.h
net: dst: provide accessor function to dst->xfrm
2013-10-17 15:24:44 -04:00
dst_ops.h
esp.h
ethoc.h
fib_rules.h
firewire.h
flow.h
flow_keys.h
garp.h
gen_stats.h
genetlink.h
genl: Hold reference on correct module while netlink-dump.
2013-08-28 17:19:17 -04:00
gre.h
gro_cells.h
icmp.h
ieee80211_radiotap.h
ieee802154.h
ieee802154_netdev.h
if_inet6.h
net: ipv6: mld: fix v1/v2 switchback timeout to rfc3810, 9.12.
2013-09-04 14:53:20 -04:00
inet6_connection_sock.h
inet6_hashtables.h
inet_common.h
inet_connection_sock.h
inet_ecn.h
inet_frag.h
inet_hashtables.h
inet_sock.h
inet_timewait_sock.h
inetpeer.h
ip.h
ip: generate unique IP identificator if local fragmentation is allowed
2013-09-19 14:11:15 -04:00
ip6_checksum.h
ip6_fib.h
ipv6: reset dst.expires value when clearing expire flag
2013-10-25 19:26:59 -04:00
ip6_route.h
ipv6: fill rt6i_gateway with nexthop address
2013-10-21 18:37:01 -04:00
ip6_tunnel.h
tunnels: harmonize cleanup done on skb on xmit path
2013-09-04 00:27:25 -04:00
ip_fib.h
ip_tunnels.h
tunnels: harmonize cleanup done on skb on xmit path
2013-09-04 00:27:25 -04:00
ip_vs.h
ipvs: make the service replacement more robust
2013-09-18 14:39:03 -05:00
ipcomp.h
ipconfig.h
ipv6.h
ipv6: move ip6_dst_hoplimit() into core kernel
2013-08-31 22:29:59 -04:00
ipx.h
iw_handler.h
lapb.h
lib80211.h
llc.h
llc_c_ac.h
llc_c_ev.h
llc_c_st.h
llc_conn.h
llc_if.h
llc: Use normal etherdevice.h tests
2013-09-03 22:34:47 -04:00
llc_pdu.h
llc_s_ac.h
llc_s_ev.h
llc_s_st.h
llc_sap.h
mac80211.h
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
2013-08-29 14:08:24 -04:00
mac802154.h
mac802154: correct a typo in ieee802154_alloc_device() prototype
2013-10-21 18:56:23 -04:00
mip6.h
mld.h
net: ipv6: mld: get rid of MLDV2_MRC and simplify calculation
2013-09-04 14:53:20 -04:00
mrp.h
mrp: add periodictimer to allow retries when packets get lost
2013-09-23 16:53:52 -04:00
ndisc.h
ipv6: don't call fib6_run_gc() until routing is ready
2013-09-11 17:04:09 -04:00
neighbour.h
net_namespace.h
net: Delay default_device_exit_batch until no devices are unregistering v2
2013-09-28 15:09:15 -07:00
net_ratelimit.h
netdma.h
netevent.h
netlabel.h
netlink.h
netprio_cgroup.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2013-09-05 14:54:29 -07:00
netrom.h
nexthop.h
nl802154.h
p8022.h
ping.h
pkt_cls.h
pkt_sched.h
qdisc: allow setting default queuing discipline
2013-08-31 00:32:32 -04:00
protocol.h
psnap.h
raw.h
rawv6.h
red.h
regulatory.h
request_sock.h
rose.h
route.h
xfrm: introduce helper for safe determination of mtu
2013-08-14 13:09:07 +02:00
rtnetlink.h
sch_generic.h
qdisc: make args to qdisc_create_default const
2013-08-31 18:09:45 -04:00
scm.h
secure_seq.h
net: net_secret should not depend on TCP
2013-09-28 15:19:40 -07:00
slhc_vj.h
snmp.h
sock.h
net: fix unsafe set_memory_rw from softirq
2013-10-07 15:16:45 -04:00
stp.h
tcp.h
tcp: Change return value of tcp_rcv_established()
2013-09-04 00:27:28 -04:00
tcp_memcontrol.h
tcp_states.h
timewait_sock.h
transp_v6.h
udp.h
udplite.h
vsock_addr.h
vxlan.h
vxlan: Notify drivers for listening UDP port changes
2013-09-05 12:44:30 -04:00
wext.h
wimax.h
wpan-phy.h
x25.h
x25device.h
xfrm.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2013-09-05 14:58:52 -04:00