Petr Pavlu
b3e5f33fbe
net/ipv6: Fix the RT cache flush via sysctl using a previous delay
...
[ Upstream commit 14a20e5b4ad998793c5f43b0330d9e1388446cf3 ]
The net.ipv6.route.flush system parameter takes a value which specifies
a delay used during the flush operation for aging exception routes. The
written value is however not used in the currently requested flush and
instead utilized only in the next one.
A problem is that ipv6_sysctl_rtcache_flush() first reads the old value
of net->ipv6.sysctl.flush_delay into a local delay variable and then
calls proc_dointvec() which actually updates the sysctl based on the
provided input.
Fix the problem by switching the order of the two operations.
Fixes: 4990509f19 ("[NETNS][IPV6]: Make sysctls route per namespace.")
Signed-off-by: Petr Pavlu <[email protected] >
Reviewed-by: David Ahern <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2024-07-05 09:08:17 +02:00
..
ila
netfilter
treewide: Remove uninitialized_var() usage
2023-06-09 10:29:01 +02:00
addrconf.c
ipv6: fix race condition between ipv6_get_ifaddr and ipv6_del_addr
2024-05-02 16:18:28 +02:00
addrconf_core.c
ipv6: Ensure natural alignment of const ipv6 loopback and router addresses
2024-02-23 08:25:04 +01:00
addrlabel.c
af_inet6.c
dccp: Call inet6_destroy_sock() via sk->sk_destruct().
2023-04-26 11:24:05 +02:00
ah6.c
anycast.c
calipso.c
datagram.c
esp6.c
net: ipv6: fix return value check in esp_remove_trailer
2023-10-25 11:53:21 +02:00
esp6_offload.c
xfrm: Linearize the skb after offloading if needed.
2023-06-28 10:18:38 +02:00
exthdrs.c
exthdrs_core.c
ipv6: Fix out-of-bounds access in ipv6_find_tlv()
2023-05-30 12:44:10 +01:00
exthdrs_offload.c
fib6_notifier.c
fib6_rules.c
ipv6: fib6_rules: avoid possible NULL dereference in fib6_rule_action()
2024-05-17 11:43:54 +02:00
fou6.c
icmp.c
icmp6: Fix null-ptr-deref of ip6_null_entry->rt6i_idev in icmp6_dev().
2023-07-27 08:37:31 +02:00
inet6_connection_sock.c
inet6_hashtables.c
ip6_checksum.c
ip6_fib.c
ipv6: fix possible race in __fib6_drop_pcpu_from()
2024-07-05 09:08:13 +02:00
ip6_flowlabel.c
treewide: Remove uninitialized_var() usage
2023-06-09 10:29:01 +02:00
ip6_gre.c
erspan: make sure erspan_base_hdr is present in skb->head
2024-04-13 12:51:36 +02:00
ip6_icmp.c
ip6_input.c
ip6_offload.c
ip6_offload.h
ip6_output.c
net-timestamp: extend SOF_TIMESTAMPING_OPT_ID to HW timestamps
2024-01-15 18:25:26 +01:00
ip6_tunnel.c
ip6_tunnel: fix NEXTHDR_FRAGMENT handling in ip6_tnl_parse_tlv_enc_lim()
2024-01-25 14:34:26 -08:00
ip6_udp_tunnel.c
ip6_vti.c
ip6_vti: fix slab-use-after-free in decode_session6
2023-08-30 16:27:16 +02:00
ip6mr.c
ip6mr: Fix skb_under_panic in ip6mr_cache_report()
2023-08-11 11:53:57 +02:00
ipcomp6.c
ipv6_sockglue.c
Kconfig
Makefile
mcast.c
mcast_snoop.c
mip6.c
ndisc.c
ipv6: adjust ndisc_is_useropt() to also return true for PIO
2023-08-16 18:19:22 +02:00
netfilter.c
output_core.c
ping.c
ping6: Fix send to link-local addresses with VRF.
2023-06-21 15:44:11 +02:00
proc.c
protocol.c
raw.c
ipv{4,6}/raw: fix output xfrm lookup wrt protocol
2023-06-05 08:17:33 +02:00
reassembly.c
route.c
net/ipv6: Fix the RT cache flush via sysctl using a previous delay
2024-07-05 09:08:17 +02:00
seg6.c
ipv6: sr: fix invalid unregister error path
2024-06-16 13:28:38 +02:00
seg6_hmac.c
ipv6: sr: fix memleak in seg6_hmac_init_algo
2024-06-16 13:28:45 +02:00
seg6_iptunnel.c
ipv6: sr: block BH in seg6_output_core() and seg6_input_core()
2024-07-05 09:08:11 +02:00
seg6_local.c
sit.c
sit: update dev->needed_headroom in ipip6_tunnel_bind_dev()
2023-05-17 11:35:58 +02:00
syncookies.c
dccp/tcp: Call security_inet_conn_request() after setting IPv6 addresses.
2023-11-20 10:30:15 +01:00
sysctl_net_ipv6.c
tcp_ipv6.c
tcp: fix race in tcp_v6_syn_recv_sock()
2024-07-05 09:08:17 +02:00
tcpv6_offload.c
tunnel6.c
udp.c
udp: preserve the connected status if only UDP cmsg
2024-05-02 16:18:37 +02:00
udp_impl.h
tcp/udp: Call inet6_destroy_sock() in IPv6 sk->sk_destruct().
2023-04-26 11:24:05 +02:00
udp_offload.c
udplite.c
udplite: Fix NULL pointer dereference in __sk_mem_raise_allocated().
2023-05-30 12:44:09 +01:00
xfrm6_input.c
xfrm: Preserve vlan tags for transport mode software GRO
2024-05-17 11:43:53 +02:00
xfrm6_output.c
xfrm6_policy.c
xfrm6: fix inet6_dev refcount underflow problem
2023-10-25 11:53:25 +02:00
xfrm6_protocol.c
xfrm6_state.c
xfrm6_tunnel.c