OrangePi_CM5/net/netfilter
Zhengchao Shao 2c8d81bdb2 ipvs: fix WARNING in ip_vs_app_net_cleanup()
[ Upstream commit 5663ed63adb9619c98ab7479aa4606fa9b7a548c ]

During the initialization of ip_vs_app_net_init(), if file ip_vs_app
fails to be created, the initialization is successful by default.
Therefore, the ip_vs_app file doesn't be found during the remove in
ip_vs_app_net_cleanup(). It will cause WRNING.

The following is the stack information:
name 'ip_vs_app'
WARNING: CPU: 1 PID: 9 at fs/proc/generic.c:712 remove_proc_entry+0x389/0x460
Modules linked in:
Workqueue: netns cleanup_net
RIP: 0010:remove_proc_entry+0x389/0x460
Call Trace:
<TASK>
ops_exit_list+0x125/0x170
cleanup_net+0x4ea/0xb00
process_one_work+0x9bf/0x1710
worker_thread+0x665/0x1080
kthread+0x2e4/0x3a0
ret_from_fork+0x1f/0x30
</TASK>

Fixes: 457c4cbc5a ("[NET]: Make /proc/net per network namespace")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-10 18:14:18 +01:00
..
ipset netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
ipvs ipvs: fix WARNING in ip_vs_app_net_cleanup() 2022-11-10 18:14:18 +01:00
Kconfig netfilter: conntrack: NF_CONNTRACK_PROCFS should no longer default to y 2022-09-05 10:28:58 +02:00
Makefile
…
core.c netfilter: fix use-after-free in __nf_register_net_hook() 2022-03-08 19:09:32 +01:00
nf_conncount.c
…
nf_conntrack_acct.c
…
nf_conntrack_amanda.c
…
nf_conntrack_broadcast.c
…
nf_conntrack_core.c netfilter: conntrack: don't increment invalid counter on NF_REPEAT 2022-02-01 17:25:45 +01:00
nf_conntrack_ecache.c
…
nf_conntrack_expect.c
…
nf_conntrack_extend.c
…
nf_conntrack_ftp.c
…
nf_conntrack_h323_asn1.c
…
nf_conntrack_h323_main.c
…
nf_conntrack_h323_types.c
…
nf_conntrack_helper.c
…
nf_conntrack_irc.c netfilter: nf_conntrack_irc: Tighten matching on DCC message 2022-09-28 11:10:30 +02:00
nf_conntrack_labels.c
…
nf_conntrack_netbios_ns.c
…
nf_conntrack_netlink.c netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
nf_conntrack_pptp.c
…
nf_conntrack_proto.c netfilter: conntrack: unregister ipv4 sockopts on error unwind 2021-06-10 13:39:13 +02:00
nf_conntrack_proto_dccp.c netfilter: Fix fall-through warnings for Clang 2021-09-22 12:28:03 +02:00
nf_conntrack_proto_generic.c
…
nf_conntrack_proto_gre.c
…
nf_conntrack_proto_icmp.c
…
nf_conntrack_proto_icmpv6.c
…
nf_conntrack_proto_sctp.c netfilter: conntrack: don't refresh sctp entries in closed state 2022-02-23 12:01:05 +01:00
nf_conntrack_proto_tcp.c netfilter: nf_conntrack_tcp: preserve liberal flag in tcp options 2022-04-08 14:40:28 +02:00
nf_conntrack_proto_udp.c netfilter: conntrack: set on IPS_ASSURED if flows enters internal stream state 2021-11-18 14:04:01 +01:00
nf_conntrack_sane.c
…
nf_conntrack_seqadj.c
…
nf_conntrack_sip.c netfilter: nf_conntrack_sip: fix ct_sip_walk_headers 2022-09-28 11:10:29 +02:00
nf_conntrack_snmp.c
…
nf_conntrack_standalone.c
…
nf_conntrack_tftp.c
…
nf_conntrack_timeout.c
…
nf_conntrack_timestamp.c
…
nf_dup_netdev.c
…
nf_flow_table_core.c netfilter: conntrack: annotate data-races around ct->timeout 2021-12-14 11:32:37 +01:00
nf_flow_table_inet.c
…
nf_flow_table_ip.c
…
nf_flow_table_offload.c netfilter: flowtable: fix IPv6 tunnel addr match 2021-12-01 09:19:02 +01:00
nf_internals.h
…
nf_log.c
…
nf_log_common.c
…
nf_log_netdev.c
…
nf_nat_amanda.c
…
nf_nat_core.c
…
nf_nat_ftp.c
…
nf_nat_helper.c
…
nf_nat_irc.c
…
nf_nat_masquerade.c netfilter: nf_nat_masquerade: defer conntrack walk to work queue 2021-10-17 10:43:32 +02:00
nf_nat_proto.c
…
nf_nat_redirect.c
…
nf_nat_sip.c
…
nf_nat_tftp.c
…
nf_queue.c netfilter: nf_queue: handle socket prefetch 2022-03-08 19:09:33 +01:00
nf_sockopt.c
…
nf_synproxy_core.c lsm,selinux: pass flowi_common instead of flowi to the LSM hooks 2022-06-09 10:21:09 +02:00
nf_tables_api.c netfilter: nf_tables: release flow rule object from commit path 2022-11-10 18:14:18 +01:00
nf_tables_core.c netfilter: nft_cmp: optimize comparison for 16-bytes 2022-08-31 17:15:18 +02:00
nf_tables_offload.c netfilter: nf_tables: bail out early if hardware offload is not supported 2022-06-14 18:32:40 +02:00
nf_tables_trace.c netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
nfnetlink.c
…
nfnetlink_acct.c netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
nfnetlink_cthelper.c netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
nfnetlink_cttimeout.c netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
nfnetlink_log.c netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
nfnetlink_osf.c netfilter: nfnetlink_osf: fix possible bogus match in nf_osf_find() 2022-09-28 11:10:30 +02:00
nfnetlink_queue.c netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
nft_bitwise.c netfilter: nf_tables: upfront validation of data via nft_data_init() 2022-08-31 17:15:18 +02:00
nft_byteorder.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
nft_chain_filter.c
…
nft_chain_nat.c
…
nft_chain_route.c
…
nft_cmp.c netfilter: nf_tables: upfront validation of data via nft_data_init() 2022-08-31 17:15:18 +02:00
nft_compat.c netfilter: add helper function to set up the nfnetlink header and use it 2022-08-25 11:38:11 +02:00
nft_connlimit.c
…
nft_counter.c
…
nft_ct.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
nft_dup_netdev.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_dynset.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_exthdr.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
nft_fib.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
nft_fib_inet.c
…
nft_fib_netdev.c
…
nft_flow_offload.c
…
nft_fwd_netdev.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_hash.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
nft_immediate.c netfilter: nf_tables: upfront validation of data via nft_data_init() 2022-08-31 17:15:18 +02:00
nft_limit.c
…
nft_log.c
…
nft_lookup.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
nft_masq.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_meta.c netfilter: use get_random_u32 instead of prandom 2022-06-29 08:59:46 +02:00
nft_nat.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_numgen.c netfilter: use get_random_u32 instead of prandom 2022-06-29 08:59:46 +02:00
nft_objref.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_osf.c netfilter: nft_osf: restrict osf to ipv4, ipv6 and inet families 2022-08-31 17:15:18 +02:00
nft_payload.c netfilter: nft_payload: do not truncate csum_offset and csum_type 2022-08-31 17:15:17 +02:00
nft_queue.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_quota.c
…
nft_range.c netfilter: nf_tables: upfront validation of data via nft_data_init() 2022-08-31 17:15:18 +02:00
nft_redir.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_reject.c
…
nft_reject_inet.c
…
nft_rt.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
nft_set_bitmap.c
…
nft_set_hash.c netfilter: nft_dynset: restore set element counter when failing to update 2022-07-07 17:52:18 +02:00
nft_set_pipapo.c netfilter: nft_set_pipapo: release elements in clone from abort path 2022-07-12 16:32:17 +02:00
nft_set_pipapo.h netfilter: nft_set_pipapo_avx2: Add irq_fpu_usable() check, fallback to non-AVX2 version 2021-06-03 09:00:28 +02:00
nft_set_pipapo_avx2.c nft_set_pipapo: Fix bucket load in AVX2 lookup routine for six 8-bit groups 2021-12-14 11:32:34 +01:00
nft_set_pipapo_avx2.h
…
nft_set_rbtree.c netfilter: nft_set_rbtree: overlap detection with element re-addition after deletion 2022-05-09 09:05:02 +02:00
nft_socket.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
nft_synproxy.c netfilter: nft_synproxy: unregister hooks on init error path 2022-02-23 12:01:01 +01:00
nft_tproxy.c netfilter: nftables: add nft_parse_register_load() and use it 2022-06-29 08:59:46 +02:00
nft_tunnel.c netfilter: nft_tunnel: restrict it to netdev family 2022-08-31 17:15:18 +02:00
nft_xfrm.c netfilter: nftables: add nft_parse_register_store() and use it 2022-06-29 08:59:46 +02:00
utils.c
…
x_tables.c
…
xt_AUDIT.c
…
xt_CHECKSUM.c
…
xt_CLASSIFY.c
…
xt_CONNSECMARK.c
…
xt_CT.c
…
xt_DSCP.c
…
xt_HL.c
…
xt_HMARK.c
…
xt_IDLETIMER.c netfilter: xt_IDLETIMER: fix panic that occurs when timer_type has garbage value 2021-10-27 09:56:47 +02:00
xt_LED.c
…
xt_LOG.c
…
xt_MASQUERADE.c
…
xt_NETMAP.c
…
xt_NFLOG.c
…
xt_NFQUEUE.c
…
xt_RATEEST.c
…
xt_REDIRECT.c
…
xt_SECMARK.c netfilter: xt_SECMARK: add new revision to fix structure layout 2021-05-19 10:13:06 +02:00
xt_TCPMSS.c
…
xt_TCPOPTSTRIP.c
…
xt_TEE.c
…
xt_TPROXY.c
…
xt_TRACE.c
…
xt_addrtype.c
…
xt_bpf.c
…
xt_cgroup.c
…
xt_cluster.c
…
xt_comment.c
…
xt_connbytes.c
…
xt_connlabel.c
…
xt_connlimit.c
…
xt_connmark.c
…
xt_conntrack.c
…
xt_cpu.c
…
xt_dccp.c
…
xt_devgroup.c
…
xt_dscp.c
…
xt_ecn.c
…
xt_esp.c
…
xt_hashlimit.c
…
xt_helper.c
…
xt_hl.c
…
xt_ipcomp.c
…
xt_iprange.c
…
xt_ipvs.c
…
xt_l2tp.c
…
xt_length.c
…
xt_limit.c
…
xt_mac.c
…
xt_mark.c
…
xt_multiport.c
…
xt_nat.c
…
xt_nfacct.c
…
xt_osf.c
…
xt_owner.c
…
xt_physdev.c
…
xt_pkttype.c
…
xt_policy.c
…
xt_quota.c
…
xt_rateest.c
…
xt_realm.c
…
xt_recent.c
…
xt_repldata.h
…
xt_sctp.c
…
xt_set.c
…
xt_socket.c
…
xt_state.c
…
xt_statistic.c
…
xt_string.c
…
xt_tcpmss.c
…
xt_tcpudp.c
…
xt_time.c
…
xt_u32.c
…