• Xin Long's avatar
    ipvs: call ip_vs_dst_notifier earlier than ipv6_dev_notf · 3d7eec16
    Xin Long authored
    [ Upstream commit 2a31e4bd9ad255ee40809b5c798c4b1c2b09703b ]
    
    ip_vs_dst_event is supposed to clean up all dst used in ipvs'
    destinations when a net dev is going down. But it works only
    when the dst's dev is the same as the dev from the event.
    
    Now with the same priority but late registration,
    ip_vs_dst_notifier is always called later than ipv6_dev_notf
    where the dst's dev is set to lo for NETDEV_DOWN event.
    
    As the dst's dev lo is not the same as the dev from the event
    in ip_vs_dst_event, ip_vs_dst_notifier doesn't actually work.
    Also as these dst have to wait for dest_trash_timer to clean
    them up. It would cause some non-permanent kernel warnings:
    
      unregister_netdevice: waiting for br0 to become free. Usage count = 3
    
    To fix it, call ip_vs_dst_notifier earlier than ipv6_dev_notf
    by increasing its priority to ADDRCONF_NOTIFY_PRIORITY + 5.
    
    Note that for ipv4 route fib_netdev_notifier doesn't set dst's
    dev to lo in NETDEV_DOWN event, so this fix is only needed when
    IP_VS_IPV6 is defined.
    
    Fixes: 7a4f0761 ("IPVS: init and cleanup restructuring")
    Reported-by: 's avatarLi Shuang <shuali@redhat.com>
    Signed-off-by: 's avatarXin Long <lucien.xin@gmail.com>
    Acked-by: 's avatarJulian Anastasov <ja@ssi.bg>
    Acked-by: 's avatarSimon Horman <horms@verge.net.au>
    Signed-off-by: 's avatarPablo Neira Ayuso <pablo@netfilter.org>
    Signed-off-by: 's avatarSasha Levin <sashal@kernel.org>
    3d7eec16
Name
Last commit
Last update
..
ipset Loading commit data...
ipvs Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
core.c Loading commit data...
nf_conntrack_acct.c Loading commit data...
nf_conntrack_amanda.c Loading commit data...
nf_conntrack_broadcast.c Loading commit data...
nf_conntrack_core.c Loading commit data...
nf_conntrack_ecache.c Loading commit data...
nf_conntrack_expect.c Loading commit data...
nf_conntrack_extend.c Loading commit data...
nf_conntrack_ftp.c Loading commit data...
nf_conntrack_h323_asn1.c Loading commit data...
nf_conntrack_h323_main.c Loading commit data...
nf_conntrack_h323_types.c Loading commit data...
nf_conntrack_helper.c Loading commit data...
nf_conntrack_irc.c Loading commit data...
nf_conntrack_l3proto_generic.c Loading commit data...
nf_conntrack_labels.c Loading commit data...
nf_conntrack_netbios_ns.c Loading commit data...
nf_conntrack_netlink.c Loading commit data...
nf_conntrack_pptp.c Loading commit data...
nf_conntrack_proto.c Loading commit data...
nf_conntrack_proto_dccp.c Loading commit data...
nf_conntrack_proto_generic.c Loading commit data...
nf_conntrack_proto_gre.c Loading commit data...
nf_conntrack_proto_sctp.c Loading commit data...
nf_conntrack_proto_tcp.c Loading commit data...
nf_conntrack_proto_udp.c Loading commit data...
nf_conntrack_proto_udplite.c Loading commit data...
nf_conntrack_sane.c Loading commit data...
nf_conntrack_seqadj.c Loading commit data...
nf_conntrack_sip.c Loading commit data...
nf_conntrack_snmp.c Loading commit data...
nf_conntrack_standalone.c Loading commit data...
nf_conntrack_tftp.c Loading commit data...
nf_conntrack_timeout.c Loading commit data...
nf_conntrack_timestamp.c Loading commit data...
nf_dup_netdev.c Loading commit data...
nf_internals.h Loading commit data...
nf_log.c Loading commit data...
nf_log_common.c Loading commit data...
nf_nat_amanda.c Loading commit data...
nf_nat_core.c Loading commit data...
nf_nat_ftp.c Loading commit data...
nf_nat_helper.c Loading commit data...
nf_nat_irc.c Loading commit data...
nf_nat_proto_common.c Loading commit data...
nf_nat_proto_dccp.c Loading commit data...
nf_nat_proto_sctp.c Loading commit data...
nf_nat_proto_tcp.c Loading commit data...
nf_nat_proto_udp.c Loading commit data...
nf_nat_proto_udplite.c Loading commit data...
nf_nat_proto_unknown.c Loading commit data...
nf_nat_redirect.c Loading commit data...
nf_nat_sip.c Loading commit data...
nf_nat_tftp.c Loading commit data...
nf_queue.c Loading commit data...
nf_sockopt.c Loading commit data...
nf_synproxy_core.c Loading commit data...
nf_tables_api.c Loading commit data...
nf_tables_core.c Loading commit data...
nf_tables_inet.c Loading commit data...
nf_tables_netdev.c Loading commit data...
nf_tables_trace.c Loading commit data...
nfnetlink.c Loading commit data...
nfnetlink_acct.c Loading commit data...
nfnetlink_cthelper.c Loading commit data...
nfnetlink_cttimeout.c Loading commit data...
nfnetlink_log.c Loading commit data...
nfnetlink_queue.c Loading commit data...
nft_bitwise.c Loading commit data...
nft_byteorder.c Loading commit data...
nft_cmp.c Loading commit data...
nft_compat.c Loading commit data...
nft_counter.c Loading commit data...
nft_ct.c Loading commit data...
nft_dup_netdev.c Loading commit data...
nft_dynset.c Loading commit data...
nft_exthdr.c Loading commit data...
nft_fwd_netdev.c Loading commit data...
nft_hash.c Loading commit data...
nft_immediate.c Loading commit data...
nft_limit.c Loading commit data...
nft_log.c Loading commit data...
nft_lookup.c Loading commit data...
nft_masq.c Loading commit data...
nft_meta.c Loading commit data...
nft_nat.c Loading commit data...
nft_numgen.c Loading commit data...
nft_payload.c Loading commit data...
nft_queue.c Loading commit data...
nft_quota.c Loading commit data...
nft_range.c Loading commit data...
nft_redir.c Loading commit data...
nft_reject.c Loading commit data...
nft_reject_inet.c Loading commit data...
nft_set_hash.c Loading commit data...
nft_set_rbtree.c Loading commit data...
x_tables.c Loading commit data...
xt_AUDIT.c Loading commit data...
xt_CHECKSUM.c Loading commit data...
xt_CLASSIFY.c Loading commit data...
xt_CONNSECMARK.c Loading commit data...
xt_CT.c Loading commit data...
xt_DSCP.c Loading commit data...
xt_HL.c Loading commit data...
xt_HMARK.c Loading commit data...
xt_IDLETIMER.c Loading commit data...
xt_LED.c Loading commit data...
xt_LOG.c Loading commit data...
xt_NETMAP.c Loading commit data...
xt_NFLOG.c Loading commit data...
xt_NFQUEUE.c Loading commit data...
xt_RATEEST.c Loading commit data...
xt_REDIRECT.c Loading commit data...
xt_SECMARK.c Loading commit data...
xt_TCPMSS.c Loading commit data...
xt_TCPOPTSTRIP.c Loading commit data...
xt_TEE.c Loading commit data...
xt_TPROXY.c Loading commit data...
xt_TRACE.c Loading commit data...
xt_addrtype.c Loading commit data...
xt_bpf.c Loading commit data...
xt_cgroup.c Loading commit data...
xt_cluster.c Loading commit data...
xt_comment.c Loading commit data...
xt_connbytes.c Loading commit data...
xt_connlabel.c Loading commit data...
xt_connlimit.c Loading commit data...
xt_connmark.c Loading commit data...
xt_conntrack.c Loading commit data...
xt_cpu.c Loading commit data...
xt_dccp.c Loading commit data...
xt_devgroup.c Loading commit data...
xt_dscp.c Loading commit data...
xt_ecn.c Loading commit data...
xt_esp.c Loading commit data...
xt_hashlimit.c Loading commit data...
xt_helper.c Loading commit data...
xt_hl.c Loading commit data...
xt_ipcomp.c Loading commit data...
xt_iprange.c Loading commit data...
xt_ipvs.c Loading commit data...
xt_l2tp.c Loading commit data...
xt_length.c Loading commit data...
xt_limit.c Loading commit data...
xt_mac.c Loading commit data...
xt_mark.c Loading commit data...
xt_multiport.c Loading commit data...
xt_nat.c Loading commit data...
xt_nfacct.c Loading commit data...
xt_osf.c Loading commit data...
xt_owner.c Loading commit data...
xt_physdev.c Loading commit data...
xt_pkttype.c Loading commit data...
xt_policy.c Loading commit data...
xt_quota.c Loading commit data...
xt_rateest.c Loading commit data...
xt_realm.c Loading commit data...
xt_recent.c Loading commit data...
xt_repldata.h Loading commit data...
xt_sctp.c Loading commit data...
xt_set.c Loading commit data...
xt_socket.c Loading commit data...
xt_state.c Loading commit data...
xt_statistic.c Loading commit data...
xt_string.c Loading commit data...
xt_tcpmss.c Loading commit data...
xt_tcpudp.c Loading commit data...
xt_time.c Loading commit data...
xt_u32.c Loading commit data...