Defined in 3 files as a function:
- net/ipv4/netfilter/arp_tables.c, line 890 (as a function)
- net/ipv4/netfilter/ip_tables.c, line 1034 (as a function)
- net/ipv6/netfilter/ip6_tables.c, line 1051 (as a function)
Referenced in 3 files:
Smatch caller information:
net/ipv4/netfilter/ip_tables.c compat_do_replace() -> __do_replace()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo->number | 0-134217728 |
| PARAM_VALUE | 3 | newinfo->size | 0-536870847 |
| PARAM_VALUE | 4 | num_counters | 1-134217726 |
| PARAM_VALUE | 5 | counters_ptr | 0-u32max |
| BUF_SIZE | 1 | name | 32 |
| DATA_SOURCE | 0 | net | $0 |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| HARD_MAX | 4 | num_counters | 134217726 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_DATA | 2 | valid_hooks | 0-u32max |
| USER_DATA | 3 | newinfo->size | 0-536870847[c] |
| USER_DATA | 4 | num_counters | 1-134217726 |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->number | |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->size | |
| NO_OVERFLOW_SIMPLE | 4 | num_counters | |
| USER_PTR | 1 | name |
net/ipv4/netfilter/ip_tables.c do_replace() -> __do_replace()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo->entries->comefrom | 0 |
| PARAM_VALUE | 3 | newinfo->entries->counters.pcnt | 4096-s64max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.kernel.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.user.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.user.revision | 0-255 |
| PARAM_VALUE | 3 | newinfo->number | 0-134217728 |
| PARAM_VALUE | 3 | newinfo->size | 0-536870847 |
| PARAM_VALUE | 3 | *newinfo->hook_entry | 0-4294967295 |
| PARAM_VALUE | 3 | *newinfo->underflow | 0-4294967295 |
| PARAM_VALUE | 4 | num_counters | 1-134217726 |
| BUF_SIZE | 1 | name | 32 |
| BUF_SIZE | 3 | newinfo | 64-536870911 |
| BUF_SIZE | 3 | newinfo | 64-536870911 |
| CAPPED_DATA | 3 | newinfo->size | 1 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 3 | newinfo | r xt_alloc_table_info |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| HARD_MAX | 4 | num_counters | 134217726 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_DATA | 2 | valid_hooks | 0-u32max |
| USER_DATA | 3 | newinfo->size | 0-536870847[c] |
| USER_DATA | 4 | num_counters | 1-134217726 |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->size | |
| NO_OVERFLOW_SIMPLE | 4 | num_counters | |
| USER_PTR | 1 | name |
net/ipv6/netfilter/ip6_tables.c compat_do_replace() -> __do_replace()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo->number | 0-134217728 |
| PARAM_VALUE | 3 | newinfo->size | 0-536870847 |
| PARAM_VALUE | 4 | num_counters | 1-134217726 |
| PARAM_VALUE | 5 | counters_ptr | 0-u32max |
| BUF_SIZE | 1 | name | 32 |
| DATA_SOURCE | 0 | net | $0 |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| HARD_MAX | 4 | num_counters | 134217726 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_DATA | 2 | valid_hooks | 0-u32max |
| USER_DATA | 3 | newinfo->size | 0-536870847[c] |
| USER_DATA | 4 | num_counters | 1-134217726 |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->number | |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->size | |
| NO_OVERFLOW_SIMPLE | 4 | num_counters | |
| USER_PTR | 1 | name |
net/ipv6/netfilter/ip6_tables.c do_replace() -> __do_replace()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo->entries->comefrom | 0 |
| PARAM_VALUE | 3 | newinfo->entries->counters.pcnt | 4096-s64max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.kernel.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.user.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.user.revision | 0-255 |
| PARAM_VALUE | 3 | newinfo->number | 0-134217728 |
| PARAM_VALUE | 3 | newinfo->size | 0-536870847 |
| PARAM_VALUE | 3 | *newinfo->hook_entry | 0-4294967295 |
| PARAM_VALUE | 3 | *newinfo->underflow | 0-4294967295 |
| PARAM_VALUE | 4 | num_counters | 1-134217726 |
| BUF_SIZE | 1 | name | 32 |
| BUF_SIZE | 3 | newinfo | 64-536870911 |
| BUF_SIZE | 3 | newinfo | 64-536870911 |
| CAPPED_DATA | 3 | newinfo->size | 1 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 3 | newinfo | r xt_alloc_table_info |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| HARD_MAX | 4 | num_counters | 134217726 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_DATA | 2 | valid_hooks | 0-u32max |
| USER_DATA | 3 | newinfo->size | 0-536870847[c] |
| USER_DATA | 4 | num_counters | 1-134217726 |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->size | |
| NO_OVERFLOW_SIMPLE | 4 | num_counters | |
| USER_PTR | 1 | name |
net/ipv4/netfilter/arp_tables.c compat_do_replace() -> __do_replace()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo->number | 0-134217728 |
| PARAM_VALUE | 3 | newinfo->size | 0-536870847 |
| PARAM_VALUE | 4 | num_counters | 1-134217726 |
| PARAM_VALUE | 5 | counters_ptr | 0-u32max |
| BUF_SIZE | 1 | name | 32 |
| DATA_SOURCE | 0 | net | $0 |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| HARD_MAX | 4 | num_counters | 134217726 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_DATA | 2 | valid_hooks | 0-u32max |
| USER_DATA | 3 | newinfo->size | 0-536870847[c] |
| USER_DATA | 4 | num_counters | 1-134217726 |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->number | |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->size | |
| NO_OVERFLOW_SIMPLE | 4 | num_counters | |
| USER_PTR | 1 | name |
net/ipv4/netfilter/arp_tables.c do_replace() -> __do_replace()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo | 4096-ptr_max |
| PARAM_VALUE | 3 | newinfo->entries->comefrom | 0 |
| PARAM_VALUE | 3 | newinfo->entries->counters.pcnt | 4096-s64max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.kernel.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.user.match_size | 0-u16max |
| PARAM_VALUE | 3 | newinfo->entries->elems->u.user.revision | 0-255 |
| PARAM_VALUE | 3 | newinfo->number | 0-134217728 |
| PARAM_VALUE | 3 | newinfo->size | 0-536870847 |
| PARAM_VALUE | 3 | *newinfo->hook_entry | 0-4294967295 |
| PARAM_VALUE | 3 | *newinfo->underflow | 0-4294967295 |
| PARAM_VALUE | 4 | num_counters | 1-134217726 |
| BUF_SIZE | 1 | name | 32 |
| BUF_SIZE | 3 | newinfo | 64-536870911 |
| BUF_SIZE | 3 | newinfo | 64-536870911 |
| CAPPED_DATA | 3 | newinfo->size | 1 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 3 | newinfo | r xt_alloc_table_info |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| HARD_MAX | 4 | num_counters | 134217726 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_DATA | 2 | valid_hooks | 0-u32max |
| USER_DATA | 3 | newinfo->size | 0-536870847[c] |
| USER_DATA | 4 | num_counters | 1-134217726 |
| NO_OVERFLOW_SIMPLE | 3 | newinfo->size | |
| NO_OVERFLOW_SIMPLE | 4 | num_counters | |
| USER_PTR | 1 | name |