Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 15 files:
- drivers/net/ipvlan/ipvlan_l3s.c
- net/bridge/br_netfilter_hooks.c, line 1288
- net/bridge/netfilter/ebtables.c, line 1354
- net/ipv4/netfilter/nf_defrag_ipv4.c
- net/ipv6/ila/ila_xlat.c, line 628
- net/ipv6/netfilter/nf_defrag_ipv6_hooks.c
- net/netfilter/core.c
- net/netfilter/ipvs/ip_vs_core.c, line 2464
- net/netfilter/nf_conntrack_proto.c
- net/netfilter/nf_nat_core.c, line 1289
- net/netfilter/nf_synproxy_core.c
- net/netfilter/x_tables.c, line 1670
- security/apparmor/lsm.c, line 2479
- security/selinux/hooks.c, line 7984
- security/smack/smack_netfilter.c, line 63
Smatch caller information:
security/smack/smack_netfilter.c smack_nf_unregister() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 4254948252882874368 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 1 | reg | 144 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &pernet_ops_rwsem |
net/bridge/netfilter/ebtables.c ebt_unregister_table_pre_exit() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 0 | net->proc_net->nlink | 0-4294967295 |
| PARAM_VALUE | 2 | hookcount | 0-32 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| STR_LEN | 0 | net | 3,6 |
| STR_LEN | 0 | net | 3,6 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &pernet_ops_rwsem | ||
| HALF_LOCKED2 | &pool->lock |
net/netfilter/ipvs/ip_vs_core.c ip_vs_unregister_hooks() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | reg | 3839196673185857536,5829182261274132480 |
| PARAM_VALUE | 2 | hookcount | 6 |
| BUF_SIZE | 1 | reg | 432 |
| BUF_SIZE | 1 | reg | 432 |
| BIT_INFO | 1 | reg | 0x104500008800c000,0x75e7fb69de5ac000 |
| BIT_INFO | 1 | reg | 0x104500008800c000,0x75e7fb69de5ac000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| HALF_LOCKED2 | &ipvs->service_mutex | ||
| HALF_LOCKED2 | &ipvs->service_mutex | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem |
net/netfilter/nf_nat_core.c nf_nat_unregister_fn() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| PARAM_VALUE | 2 | hookcount | 4 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 2 | hookcount | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &nf_nat_proto_mutex |
net/ipv6/netfilter/nf_defrag_ipv6_hooks.c defrag6_net_exit() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->nf.defrag_ipv6_users | 1-u32max |
| PARAM_VALUE | 1 | reg | 6937420488682422272 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 1 | reg | 144 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &pernet_ops_rwsem |
net/ipv6/netfilter/nf_defrag_ipv6_hooks.c nf_defrag_ipv6_disable() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->nf.defrag_ipv6_users | 0 |
| PARAM_VALUE | 1 | reg | 6937420488682422272 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| BUF_SIZE | 0 | net->key_domain | (-1),24 |
| BUF_SIZE | 0 | net->ucounts | (-1),184 |
| BUF_SIZE | 1 | reg | 144 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &defrag6_mutex | ||
| HALF_LOCKED2 | global &nf_ct_proto_mutex |
net/ipv6/ila/ila_xlat.c ila_xlat_pre_exit_net() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 0 | net->proc_net->nlink | 0-4294967295 |
| PARAM_VALUE | 1 | reg | 5970057695477473280 |
| PARAM_VALUE | 2 | hookcount | 1 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &pernet_ops_rwsem | ||
| HALF_LOCKED2 | &pool->lock |
net/netfilter/core.c nf_register_net_hooks() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | reg | 4096-ptr_max |
| PARAM_VALUE | 2 | hookcount | 1-u32max |
| BUF_SIZE | 0 | net | (-1)-s32max |
| BUF_SIZE | 0 | net | (-1)-s32max |
| BUF_SIZE | 0 | net->key_domain | (-1),24 |
| BUF_SIZE | 0 | net->ucounts | (-1),184 |
| BUF_SIZE | 1 | reg | (-1),72,144,288,432 |
| BUF_SIZE | 1 | reg | (-1),72,144,288,432 |
| CAPPED_DATA | 2 | hookcount | 1 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | reg | $1 |
| STR_LEN | 0 | net | (-1),8 |
| STR_LEN | 0 | net | (-1),8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 2 | hookcount | unit_array_size |
| HALF_LOCKED2 | &ipvs->service_mutex | ||
| HALF_LOCKED2 | &port->pnodes_lock | ||
| HALF_LOCKED2 | global &defrag4_mutex | ||
| HALF_LOCKED2 | global &defrag6_mutex | ||
| HALF_LOCKED2 | global &ebt_mutex | ||
| HALF_LOCKED2 | global &ila_mutex | ||
| HALF_LOCKED2 | global &nf_ct_proto_mutex | ||
| HALF_LOCKED2 | global &nf_nat_proto_mutex | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| HALF_LOCKED2 | global &synproxy_mutex |
net/netfilter/nf_synproxy_core.c nf_synproxy_ipv4_fini() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 4864522598456037376 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 1 | reg | 144 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &synproxy_mutex |
net/netfilter/nf_synproxy_core.c nf_synproxy_ipv6_fini() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 7190895488944836608 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 1 | reg | 144 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &synproxy_mutex |
net/bridge/br_netfilter_hooks.c brnf_exit_net() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 4982759987624984576 |
| PARAM_VALUE | 2 | hookcount | 6 |
| BUF_SIZE | 1 | reg | 432 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &pernet_ops_rwsem |
drivers/net/ipvlan/ipvlan_l3s.c ipvlan_ns_exit() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 3716693987652059136 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 1 | reg | 144 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &pernet_ops_rwsem |
drivers/net/ipvlan/ipvlan_l3s.c ipvlan_unregister_nf_hook() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 3716693987652059136 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 1 | reg | 144 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 2 | hookcount | unit_array_size |
| HALF_LOCKED2 | &port->pnodes_lock |
net/netfilter/x_tables.c xt_unregister_table_pre_exit() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 1-u64max |
| PARAM_VALUE | 2 | hookcount | 0-32 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| STR_LEN | 0 | net | 3,6,8 |
| STR_LEN | 0 | net | 3,6,8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &pernet_ops_rwsem |
security/apparmor/lsm.c apparmor_nf_unregister() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 7784681683124686848 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 1 | reg | 144 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &pernet_ops_rwsem |
net/netfilter/nf_conntrack_proto.c nf_ct_netns_do_put() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 7903348321304412160 |
| PARAM_VALUE | 2 | hookcount | 4 |
| BUF_SIZE | 0 | net | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | net | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | net->key_domain | (-1),24 |
| BUF_SIZE | 0 | net->ucounts | (-1),184 |
| BUF_SIZE | 1 | reg | 288 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &nf_ct_proto_mutex | ||
| HALF_LOCKED2 | &ipvs->service_mutex |
net/netfilter/nf_conntrack_proto.c nf_ct_netns_do_put() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 54811674510237696 |
| PARAM_VALUE | 2 | hookcount | 4 |
| BUF_SIZE | 0 | net | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | net | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | net->key_domain | (-1),24 |
| BUF_SIZE | 0 | net->ucounts | (-1),184 |
| BUF_SIZE | 1 | reg | 288 |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &nf_ct_proto_mutex | ||
| HALF_LOCKED2 | &ipvs->service_mutex |
net/netfilter/nf_conntrack_proto.c nf_ct_netns_do_put() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| BUF_SIZE | 0 | net | (-1),4,24,64,168-s32max |
| BUF_SIZE | 0 | net | (-1),4,24,64,168-s32max |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &nf_ct_proto_mutex | ||
| HALF_LOCKED2 | &ipvs->service_mutex |
security/selinux/hooks.c selinux_nf_unregister() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | reg | 5551696915594252288 |
| PARAM_VALUE | 2 | hookcount | 6 |
| BUF_SIZE | 1 | reg | 432 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &pernet_ops_rwsem |
net/ipv4/netfilter/nf_defrag_ipv4.c defrag4_net_exit() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->nf.defrag_ipv4_users | 1-u32max |
| PARAM_VALUE | 1 | reg | 3862897079912177664 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 1 | reg | 144 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &pernet_ops_rwsem |
net/ipv4/netfilter/nf_defrag_ipv4.c nf_defrag_ipv4_disable() -> nf_unregister_net_hooks()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->nf.defrag_ipv4_users | 0 |
| PARAM_VALUE | 1 | reg | 3862897079912177664 |
| PARAM_VALUE | 2 | hookcount | 2 |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| BUF_SIZE | 0 | net->key_domain | (-1),24 |
| BUF_SIZE | 0 | net->ucounts | (-1),184 |
| BUF_SIZE | 1 | reg | 144 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | net | unit_byte |
| UNITS | 2 | hookcount | unit_array_size |
| LOCK2 | global &defrag4_mutex | ||
| HALF_LOCKED2 | global &nf_ct_proto_mutex |