Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 15 files:

Smatch caller information:

security/smack/smack_netfilter.c smack_nf_register() -> nf_register_net_hooks()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 1 reg 4254948252882874368
PARAM_VALUE 2 n 2
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
UNITS 2 n unit_array_size
LOCK2 global &pernet_ops_rwsem

net/bridge/netfilter/ebtables.c ebt_register_table() -> nf_register_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 n 1-32
BUF_SIZE 1 reg 72
CAPPED_DATA 0 net->gen 1
CAPPED_DATA 2 n 1
DATA_SOURCE 0 net $0
DATA_SOURCE 1 reg r kmemdup_array
DATA_SOURCE 2 n r __arch_hweight32
STR_LEN 0 net 8
STR_LEN 0 net 8
NS_CAPABLE 0 12
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &ebt_mutex

net/netfilter/ipvs/ip_vs_core.c ip_vs_register_hooks() -> nf_register_net_hooks()

Type Parameter Key Value
PARAM_VALUE 1 reg 3839196673185857536,5829182261274132480
PARAM_VALUE 2 n 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
UNITS 2 n unit_array_size
LOCK2 &ipvs->service_mutex
TYPE_LOCK (struct netns_ipvs)->service_mutex

net/netfilter/nf_nat_core.c nf_nat_register_fn() -> nf_register_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 n 4
BUF_SIZE 1 reg 72
CAPPED_DATA 0 net->gen 1
DATA_SOURCE 0 net $0
DATA_SOURCE 1 reg r kmemdup_array
DATA_SOURCE 2 n $4
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n unit_array_size
LOCK2 global &nf_nat_proto_mutex

net/ipv6/netfilter/nf_defrag_ipv6_hooks.c nf_defrag_ipv6_enable() -> nf_register_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 n 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
UNITS 0 net unit_byte
UNITS 2 n unit_array_size
LOCK2 global &defrag6_mutex
HALF_LOCKED2 &ipvs->service_mutex
HALF_LOCKED2 global &nf_ct_proto_mutex

net/ipv6/ila/ila_xlat.c ila_add_mapping() -> nf_register_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 5970057695477473280
PARAM_VALUE 2 n 1
CAPPED_DATA 0 net->gen 1
DATA_SOURCE 0 net $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
UNITS 2 n unit_array_size
LOCK2 global &ila_mutex
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read

net/netfilter/nf_synproxy_core.c nf_synproxy_ipv4_init() -> nf_register_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->nf.defrag_ipv4_users 1-u32max
PARAM_VALUE 0 net->nf.defrag_ipv6_users 1-u32max
PARAM_VALUE 1 reg 4864522598456037376
PARAM_VALUE 2 n 2
BUF_SIZE 0 net (-1),1-s32max
BUF_SIZE 0 net (-1),1-s32max
BUF_SIZE 1 reg 144
CAPPED_DATA 0 net->gen 1
DATA_SOURCE 0 net $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
UNITS 2 n unit_array_size
LOCK2 global &synproxy_mutex

net/netfilter/nf_synproxy_core.c nf_synproxy_ipv6_init() -> nf_register_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->nf.defrag_ipv4_users 1-u32max
PARAM_VALUE 0 net->nf.defrag_ipv6_users 1-u32max
PARAM_VALUE 1 reg 7190895488944836608
PARAM_VALUE 2 n 2
BUF_SIZE 0 net (-1),1-s32max
BUF_SIZE 0 net (-1),1-s32max
BUF_SIZE 1 reg 144
CAPPED_DATA 0 net->gen 1
DATA_SOURCE 0 net $1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
UNITS 2 n unit_array_size
LOCK2 global &synproxy_mutex

net/bridge/br_netfilter_hooks.c brnf_device_event() -> nf_register_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 n 6
BUF_SIZE 1 reg 432
CAPPED_DATA 0 net->gen 1
UNITS 0 net unit_byte
UNITS 2 n unit_array_size

drivers/net/ipvlan/ipvlan_l3s.c ipvlan_register_nf_hook() -> nf_register_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 n 2
BUF_SIZE 1 reg 144
CAPPED_DATA 0 net->gen 1
DATA_SOURCE 0 net $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
UNITS 2 n unit_array_size
LOCK2 &port->pnodes_lock
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct ipvl_port)->pnodes_lock

net/netfilter/x_tables.c xt_register_table() -> nf_register_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 n 1-32
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 72
CAPPED_DATA 0 net->gen 1
CAPPED_DATA 2 n 1
DATA_SOURCE 0 net $0
DATA_SOURCE 1 reg r kmemdup_array
DATA_SOURCE 2 n r __arch_hweight32
RX_PATH
TASK_NOT_RUNNING

security/apparmor/lsm.c apparmor_nf_register() -> nf_register_net_hooks()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 1 reg 7784681683124686848
PARAM_VALUE 2 n 2
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
UNITS 2 n unit_array_size
LOCK2 global &pernet_ops_rwsem

net/netfilter/nf_conntrack_proto.c nf_ct_netns_do_get() -> nf_register_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->nf.defrag_ipv4_users 1-u32max
PARAM_VALUE 1 reg 7903348321304412160
PARAM_VALUE 2 n 4
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 288
CAPPED_DATA 0 net->gen 1
DATA_SOURCE 0 net $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
UNITS 2 n unit_array_size
LOCK2 global &nf_ct_proto_mutex
HALF_LOCKED2 &ipvs->service_mutex

net/netfilter/nf_conntrack_proto.c nf_ct_netns_do_get() -> nf_register_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->nf.defrag_ipv6_users 1-u32max
PARAM_VALUE 1 reg 54811674510237696
PARAM_VALUE 2 n 4
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 288
CAPPED_DATA 0 net->gen 1
DATA_SOURCE 0 net $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
UNITS 2 n unit_array_size
LOCK2 global &nf_ct_proto_mutex
HALF_LOCKED2 &ipvs->service_mutex

net/netfilter/nf_conntrack_proto.c nf_ct_netns_do_get() -> nf_register_net_hooks()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 0 net->gen 4096-ptr_max
CAPPED_DATA 0 net->gen 1
DATA_SOURCE 0 net $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 net unit_byte
LOCK2 global &nf_ct_proto_mutex
HALF_LOCKED2 &ipvs->service_mutex

security/selinux/hooks.c selinux_nf_register() -> nf_register_net_hooks()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 1 reg 5551696915594252288
PARAM_VALUE 2 n 6
BUF_SIZE 0 net->key_domain (-1),24
BUF_SIZE 0 net->ucounts (-1),184
BUF_SIZE 1 reg 432
DATA_SOURCE 0 net $0
RX_PATH
TASK_NOT_RUNNING
UNITS 2 n unit_array_size
LOCK2 global &pernet_ops_rwsem

net/ipv4/netfilter/nf_defrag_ipv4.c nf_defrag_ipv4_enable() -> nf_register_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 n 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
UNITS 0 net unit_byte
UNITS 2 n unit_array_size
LOCK2 global &defrag4_mutex
HALF_LOCKED2 global &nf_ct_proto_mutex