Defined in 3 files as a function:

Referenced in 3 files:

Smatch caller information:

net/ipv4/netfilter/ip_tables.c translate_table() -> check_entry_size_and_hooks()

Type Parameter Key Value
PARAM_VALUE 0 e 0-18446744073709547519
PARAM_VALUE 1 newinfo 4096-ptr_max
PARAM_VALUE 1 newinfo->hook_entry 4096-ptr_max
PARAM_VALUE 1 newinfo->number 0-134217728
PARAM_VALUE 1 newinfo->size 0-536870847
PARAM_VALUE 1 newinfo->underflow 4096-ptr_max
PARAM_VALUE 1 *newinfo->hook_entry 0-4294967295
PARAM_VALUE 1 *newinfo->underflow 0-4294967295
PARAM_VALUE 3 limit 4096-ptr_max
BUF_SIZE 0 e (-1)-536870847
BUF_SIZE 0 e (-1)-536870847
BUF_SIZE 1 newinfo 64-536870911
BUF_SIZE 1 newinfo 64-536870911
BUF_SIZE 2 base 0-536870847
BUF_SIZE 4 hook_entries 20
BUF_SIZE 5 underflows 20
CAPPED_DATA 0 e 1
DATA_SOURCE 1 newinfo $1
DATA_SOURCE 2 base $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 e->comefrom 0-u32max[u]
USER_DATA 0 e->counters.bcnt 0-u64max[u]
USER_DATA 0 e->counters.pcnt 0-u64max[u]
USER_DATA 0 e->ip.dmsk.s_addr 0-u32max[u]
USER_DATA 0 e->ip.dst.s_addr 0-u32max[u]
USER_DATA 0 e->ip.flags 0-255[u]
USER_DATA 0 e->ip.invflags 0-255[u]
USER_DATA 0 e->ip.proto 0-u16max[u]
USER_DATA 0 e->ip.smsk.s_addr 0-u32max[u]
USER_DATA 0 e->ip.src.s_addr 0-u32max[u]
USER_DATA 0 e->next_offset 0-u16max[u]
USER_DATA 0 e->nfcache 0-u32max[u]
USER_DATA 0 e->target_offset 0-u16max[u]
USER_DATA 1 newinfo->number 0-134217728
USER_DATA 1 newinfo->size 0-536870847
USER_DATA 2 *base 0-255
USER_DATA 3 *limit 0-255
USER_DATA 4 *hook_entries 0-u32max
USER_DATA 5 *underflows 0-u32max
USER_DATA 6 valid_hooks 0-u32max
NO_OVERFLOW_SIMPLE 1 newinfo->number
NO_OVERFLOW_SIMPLE 1 newinfo->size
UNITS 0 e unit_byte
UNITS 3 limit unit_byte
USER_PTR 0 e
USER_PTR 2 base
USER_PTR 3 limit
USER_PTR 4 hook_entries
USER_PTR 5 underflows

net/ipv6/netfilter/ip6_tables.c translate_table() -> check_entry_size_and_hooks()

Type Parameter Key Value
PARAM_VALUE 0 e 0-18446744073709547519
PARAM_VALUE 1 newinfo 4096-ptr_max
PARAM_VALUE 1 newinfo->hook_entry 4096-ptr_max
PARAM_VALUE 1 newinfo->number 0-134217728
PARAM_VALUE 1 newinfo->size 0-536870847
PARAM_VALUE 1 newinfo->underflow 4096-ptr_max
PARAM_VALUE 1 *newinfo->hook_entry 0-4294967295
PARAM_VALUE 1 *newinfo->underflow 0-4294967295
PARAM_VALUE 3 limit 4096-ptr_max
BUF_SIZE 0 e (-1)-536870847
BUF_SIZE 0 e (-1)-536870847
BUF_SIZE 1 newinfo 64-536870911
BUF_SIZE 1 newinfo 64-536870911
BUF_SIZE 2 base 0-536870847
BUF_SIZE 4 hook_entries 20
BUF_SIZE 5 underflows 20
CAPPED_DATA 0 e 1
DATA_SOURCE 1 newinfo $1
DATA_SOURCE 2 base $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 e->comefrom 0-u32max[u]
USER_DATA 0 e->counters.bcnt 0-u64max[u]
USER_DATA 0 e->counters.pcnt 0-u64max[u]
USER_DATA 0 e->ipv6.flags 0-255[u]
USER_DATA 0 e->ipv6.invflags 0-255[u]
USER_DATA 0 e->ipv6.proto 0-u16max[u]
USER_DATA 0 e->ipv6.tos 0-255[u]
USER_DATA 0 e->next_offset 0-u16max[u]
USER_DATA 0 e->nfcache 0-u32max[u]
USER_DATA 0 e->target_offset 0-u16max[u]
USER_DATA 1 newinfo->number 0-134217728
USER_DATA 1 newinfo->size 0-536870847
USER_DATA 2 *base 0-255
USER_DATA 3 *limit 0-255
USER_DATA 4 *hook_entries 0-u32max
USER_DATA 5 *underflows 0-u32max
USER_DATA 6 valid_hooks 0-u32max
NO_OVERFLOW_SIMPLE 1 newinfo->number
NO_OVERFLOW_SIMPLE 1 newinfo->size
UNITS 0 e unit_byte
UNITS 3 limit unit_byte
USER_PTR 0 e
USER_PTR 2 base
USER_PTR 3 limit
USER_PTR 4 hook_entries
USER_PTR 5 underflows

net/ipv4/netfilter/arp_tables.c translate_table() -> check_entry_size_and_hooks()

Type Parameter Key Value
PARAM_VALUE 0 e 0-18446744073709547519
PARAM_VALUE 1 newinfo 4096-ptr_max
PARAM_VALUE 1 newinfo->hook_entry 4096-ptr_max
PARAM_VALUE 1 newinfo->number 0-134217728
PARAM_VALUE 1 newinfo->size 0-536870847
PARAM_VALUE 1 newinfo->underflow 4096-ptr_max
PARAM_VALUE 1 *newinfo->hook_entry 0-4294967295
PARAM_VALUE 1 *newinfo->underflow 0-4294967295
PARAM_VALUE 3 limit 4096-ptr_max
BUF_SIZE 0 e (-1)-536870847
BUF_SIZE 0 e (-1)-536870847
BUF_SIZE 1 newinfo 64-536870911
BUF_SIZE 1 newinfo 64-536870911
BUF_SIZE 2 base 0-536870847
BUF_SIZE 4 hook_entries 12
BUF_SIZE 5 underflows 12
CAPPED_DATA 0 e 1
DATA_SOURCE 1 newinfo $1
DATA_SOURCE 2 base $2
NS_CAPABLE 0 12
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 e->arp.arhln 0-255[u]
USER_DATA 0 e->arp.arhln_mask 0-255[u]
USER_DATA 0 e->arp.arhrd 0-u16max[u]
USER_DATA 0 e->arp.arhrd_mask 0-u16max[u]
USER_DATA 0 e->arp.arpop 0-u16max[u]
USER_DATA 0 e->arp.arpop_mask 0-u16max[u]
USER_DATA 0 e->arp.arpro 0-u16max[u]
USER_DATA 0 e->arp.arpro_mask 0-u16max[u]
USER_DATA 0 e->arp.flags 0-255[u]
USER_DATA 0 e->arp.invflags 0-u16max[u]
USER_DATA 0 e->arp.smsk.s_addr 0-u32max[u]
USER_DATA 0 e->arp.src.s_addr 0-u32max[u]
USER_DATA 0 e->arp.tgt.s_addr 0-u32max[u]
USER_DATA 0 e->arp.tmsk.s_addr 0-u32max[u]
USER_DATA 0 e->comefrom 0-u32max[u]
USER_DATA 0 e->counters.bcnt 0-u64max[u]
USER_DATA 0 e->counters.pcnt 0-u64max[u]
USER_DATA 0 e->next_offset 0-u16max[u]
USER_DATA 0 e->target_offset 0-u16max[u]
USER_DATA 1 newinfo->number 0-134217728
USER_DATA 1 newinfo->size 0-536870847
USER_DATA 2 *base 0-255
USER_DATA 3 *limit 0-255
USER_DATA 4 *hook_entries 0-u32max
USER_DATA 5 *underflows 0-u32max
USER_DATA 6 valid_hooks 0-u32max
NO_OVERFLOW_SIMPLE 1 newinfo->number
NO_OVERFLOW_SIMPLE 1 newinfo->size
UNITS 0 e unit_byte
UNITS 3 limit unit_byte
USER_PTR 0 e
USER_PTR 2 base
USER_PTR 3 limit
USER_PTR 4 hook_entries
USER_PTR 5 underflows