Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- net/ipv4/icmp.c, line 389
- net/ipv4/ip_output.c, line 1654
- net/ipv4/ping.c, line 815
- net/ipv4/raw.c, line 659
- net/ipv4/udp.c, line 1471
Smatch caller information:
net/ipv4/ping.c ping_v4_sendmsg() -> ip_append_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sk | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->ipv4.fib_main->tb_data->kv->key | 0-4294967295 |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->ipv6.rt6_stats->fib_rt_alloc.counter | s32min-s32max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->loopback_dev->refcnt_tracker.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->loopback_dev->refcnt_tracker.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_prot | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_state | 0-5,7-255 |
| PARAM_VALUE | 0 | sk->sk_lock.owned | 1 |
| PARAM_VALUE | 0 | sk->sk_lock.slock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sk->sk_lock.wq.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->sk_lock.wq.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->sk_lock.wq.head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | fl4 | 5178491909977321472 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_dscp | 0,4-252 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_flags | 0-1 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_iif | 1 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_scope | 0,253 |
| PARAM_VALUE | 3 | from | 1911622376569663488 |
| PARAM_VALUE | 4 | length | 8-u16max |
| PARAM_VALUE | 5 | transhdrlen | 8 |
| PARAM_VALUE | 6 | ipc | 8093818204654346240 |
| PARAM_VALUE | 6 | ipc->opt | 0,4096-ptr_max |
| PARAM_VALUE | 7 | rtp | 6496786885236789248 |
| PARAM_VALUE | 7 | *rtp | 4096-ptr_max |
| BUF_SIZE | 3 | from | 24 |
| CAPPED_DATA | 0 | sk | 1 |
| CAPPED_DATA | 0 | sk->__sk_common.skc_net.net | 1 |
| DATA_SOURCE | 0 | sk | $0 |
| DATA_SOURCE | 4 | length | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | fl4->__fl_common.flowic_dscp | 0,4-252[c] |
| USER_DATA | 1 | fl4->saddr | 0-u32max |
| USER_DATA | 4 | length | 8-u16max |
| USER_DATA | 6 | ipc->oif | s32min-(-1),1-s32max |
| USER_DATA | 6 | ipc->protocol | 1-255 |
| USER_DATA | 6 | ipc->sockc.priority | 0-u32max |
| USER_DATA | 6 | ipc->sockc.transmit_time | 0-9223372036854775807 |
| USER_DATA | 6 | ipc->tos | 0-255 |
| USER_DATA | 6 | ipc->ttl | 1-255 |
| USER_DATA | 8 | flags | 0-u32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sk->sk_backlog.len | |
| UNITS | 0 | sk | unit_byte |
| UNITS | 4 | length | unit_byte |
| UNITS | 5 | transhdrlen | unit_byte |
| LOCK2 | 0 | sk | |
| HALF_LOCKED2 | &vq->mutex |
net/ipv4/raw.c raw_sendmsg() -> ip_append_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sk | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->ipv4.fib_main->tb_data->kv->key | 0-4294967295 |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->loopback_dev->refcnt_tracker.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->loopback_dev->refcnt_tracker.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_prot | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_state | 0-5,7-255 |
| PARAM_VALUE | 0 | sk->sk_lock.owned | 1 |
| PARAM_VALUE | 0 | sk->sk_lock.slock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | sk->sk_lock.wq.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->sk_lock.wq.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->sk_lock.wq.head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | fl4 | 8356988452214730752 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_dscp | 0,4-252 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_iif | 1 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_scope | 0,253 |
| PARAM_VALUE | 3 | from | 4995616104587157504 |
| PARAM_VALUE | 4 | length | 0-u16max |
| PARAM_VALUE | 5 | transhdrlen | 0 |
| PARAM_VALUE | 6 | ipc | 1423554224653365248 |
| PARAM_VALUE | 6 | ipc->opt | 0,4096-ptr_max |
| PARAM_VALUE | 7 | rtp | 8492006312187240448 |
| PARAM_VALUE | 7 | *rtp | 4096-ptr_max |
| BUF_SIZE | 3 | from | 24 |
| CAPPED_DATA | 0 | sk | 1 |
| CAPPED_DATA | 0 | sk->__sk_common.skc_net.net | 1 |
| DATA_SOURCE | 0 | sk | $0 |
| DATA_SOURCE | 4 | length | $2 |
| BIT_INFO | 8 | flags | 0x0,0xfffffffe |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | fl4->__fl_common.flowic_dscp | 0,4-252[c] |
| USER_DATA | 1 | fl4->saddr | 0-u32max |
| USER_DATA | 4 | length | 0-u16max |
| USER_DATA | 6 | ipc->addr | 1-u32max[u] |
| USER_DATA | 6 | ipc->oif | s32min-(-1),1-s32max[c] |
| USER_DATA | 6 | ipc->protocol | 1-255 |
| USER_DATA | 6 | ipc->sockc.priority | 0-u32max |
| USER_DATA | 6 | ipc->sockc.transmit_time | 0-9223372036854775807 |
| USER_DATA | 6 | ipc->tos | 0-255 |
| USER_DATA | 6 | ipc->ttl | 1-255 |
| USER_DATA | 8 | flags | 0-u32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | sk->sk_backlog.len | |
| UNITS | 0 | sk | unit_byte |
| UNITS | 4 | length | unit_byte |
| LOCK2 | 0 | sk | |
| HALF_LOCKED2 | &vq->mutex |
net/ipv4/icmp.c icmp_push_reply() -> ip_append_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | fl4 | 1310788033161670656,8544932557906923520 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_dscp | 0,4-252 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_flags | 0 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_iif | 1 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_proto | 1 |
| PARAM_VALUE | 3 | from | 492589751759552512,4857504166837624832,9159443850083201024 |
| PARAM_VALUE | 5 | transhdrlen | 8,20 |
| PARAM_VALUE | 6 | ipc | 1339647610310860800,2914221854001922048 |
| PARAM_VALUE | 6 | ipc->tos | 0-255 |
| PARAM_VALUE | 7 | rtp | 565913239504048128,3782095270402965504 |
| PARAM_VALUE | 7 | *rtp | 0-ptr_max |
| PARAM_VALUE | 8 | flags | 64 |
| BUF_SIZE | 0 | sk | 0 |
| BUF_SIZE | 3 | from | 112 |
| DATA_SOURCE | 0 | sk | $0 |
| DATA_SOURCE | 1 | fl4 | $2 |
| DATA_SOURCE | 3 | from | $1 |
| DATA_SOURCE | 6 | ipc | $3 |
| DATA_SOURCE | 7 | rtp | $4 |
| BIT_INFO | 0 | sk | 0x0,0x0 |
| HARD_MAX | 5 | transhdrlen | 20 |
| MEM_ZERO | 1 | fl4 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | length | unit_byte |
| UNITS | 5 | transhdrlen | unit_byte |
| LOCK2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/ipv4/ip_output.c ip_send_unicast_reply() -> ip_append_data()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sk | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_bound_dev_if | 0 |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->ipv4.fib_main->tb_data->kv->key | 0-4294967295 |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->loopback_dev->refcnt_tracker.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_net.net->loopback_dev->refcnt_tracker.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | sk->__sk_common.skc_state | 0-5,7-255 |
| PARAM_VALUE | 0 | sk->sk_protocol | 0-255 |
| PARAM_VALUE | 0 | sk->sk_sndbuf | 212992 |
| PARAM_VALUE | 1 | fl4 | 7029372175004622848 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_dscp | 0,4-252 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_flags | 0-1 |
| PARAM_VALUE | 1 | fl4->__fl_common.flowic_iif | 1 |
| PARAM_VALUE | 4 | length | 20 |
| PARAM_VALUE | 5 | transhdrlen | 0 |
| PARAM_VALUE | 6 | ipc | 4883428687735209984 |
| PARAM_VALUE | 7 | rtp | 6630401465172553728 |
| PARAM_VALUE | 7 | *rtp | 0-ptr_max |
| PARAM_VALUE | 8 | flags | 64 |
| BUF_SIZE | 0 | sk | 0 |
| BUF_SIZE | 3 | from | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | sk->__sk_common.skc_net.net | 1 |
| DATA_SOURCE | 0 | sk | $0 |
| DATA_SOURCE | 4 | length | $7 |
| BIT_INFO | 0 | sk | 0x0,0x0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | from | unit_byte |
| UNITS | 4 | length | unit_byte |
| LOCK2 | bh | ||
| HALF_LOCKED2 | &orig_sk->sk_lock.slock | ||
| HALF_LOCKED2 | orig_sk | ||
| HALF_LOCKED2 | rcu_read |