Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

net/packet/af_packet.c __virtio_net_hdr_to_skb() -> virtio_net_hdr_set_proto()

Type Parameter Key Value
PARAM_VALUE 0 skb 4096-ptr_max
PARAM_VALUE 0 skb->dev 4096-ptr_max
PARAM_VALUE 0 skb->dev->flags 1-u32max
PARAM_VALUE 0 skb->dev->header_ops 0,4096-ptr_max
PARAM_VALUE 0 skb->dev->header_ops->parse_protocol 0,4927389631704563712,5013334982761803776,5267698508377800704
PARAM_VALUE 0 skb->network_header 1-u16max
PARAM_VALUE 0 skb->protocol 0
PARAM_VALUE 0 skb->skb_mstamp_ns 0
PARAM_VALUE 0 skb->tstamp 0
PARAM_VALUE 0 skb->tstamp_type 0
PARAM_VALUE 1 hdr 3874929393638883328,4435007255161077760
PARAM_VALUE 1 hdr->gso_size 1-u16max
BUF_SIZE 0 skb 0-s32max
BUF_SIZE 0 skb 0-s32max
DATA_SOURCE 0 skb $0
DATA_SOURCE 1 hdr $1
BIT_INFO 1 hdr->flags 0x0,0xfe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 skb->data_len 0-u32max[c]
HOST_DATA 0 skb->len 1-u32max[c]
NO_OVERFLOW_SIMPLE 0 skb->sk->sk_backlog.len
HALF_LOCKED2 &po->pg_vec_lock
HALF_LOCKED2 &vq->mutex

net/packet/af_packet.c packet_snd() -> virtio_net_hdr_set_proto()

Type Parameter Key Value
PARAM_VALUE 0 skb 4096-ptr_max
PARAM_VALUE 0 skb->destructor 0,5871617288306880512,7346051344949997568
PARAM_VALUE 0 skb->dev 4096-ptr_max
PARAM_VALUE 0 skb->dev->flags 1-u32max
PARAM_VALUE 0 skb->dev->refcnt_tracker.list.next 4096-ptr_max
PARAM_VALUE 0 skb->ip_summed 3
PARAM_VALUE 0 skb->len 1-u32max
PARAM_VALUE 0 skb->protocol 2048,34525
PARAM_VALUE 0 skb->sk 0,4096-ptr_max
PARAM_VALUE 0 skb->skb_mstamp_ns 0
PARAM_VALUE 0 skb->tstamp 0
PARAM_VALUE 0 skb->tstamp_type 0
PARAM_VALUE 1 hdr 3874929393638883328
BUF_SIZE 0 skb 0-s32max
BUF_SIZE 0 skb 0-s32max
DATA_SOURCE 0 skb r packet_alloc_skb
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 skb->csum_offset 0-u16max
HOST_DATA 0 skb->len 1-u32max[c]
HALF_LOCKED2 &vq->mutex

net/packet/af_packet.c tpacket_snd() -> virtio_net_hdr_set_proto()

Type Parameter Key Value
PARAM_VALUE 0 skb 4096-ptr_max
PARAM_VALUE 0 skb->data->address 15,143,255
PARAM_VALUE 0 skb->data->control 0,3
PARAM_VALUE 0 skb->data->protocol 0,33,87,32801,32855,49185
PARAM_VALUE 0 skb->dev 4096-ptr_max
PARAM_VALUE 0 skb->dev->flags 1-u32max
PARAM_VALUE 0 skb->hash 1-u32max
PARAM_VALUE 0 skb->ip_summed 3
PARAM_VALUE 0 skb->mac_len 3-37
PARAM_VALUE 0 skb->protocol 2048,34525
PARAM_VALUE 0 skb->skb_mstamp_ns 0
PARAM_VALUE 0 skb->sw_hash 1
PARAM_VALUE 0 skb->tstamp 0
PARAM_VALUE 0 skb->tstamp_type 0
PARAM_VALUE 0 *skb->data->h_dest 0-255
PARAM_VALUE 0 *skb->data->h_source 0-255
PARAM_VALUE 1 hdr 4435007255161077760
PARAM_VALUE 1 hdr->flags 1-255
PARAM_VALUE 1 hdr->hdr_len 2-u16max
BUF_SIZE 0 skb 0-s32max
BUF_SIZE 0 skb 0-s32max
DATA_SOURCE 0 skb r sock_alloc_send_skb
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 skb->csum_offset 0-u16max
LOCK2 &po->pg_vec_lock
HALF_LOCKED2 &vq->mutex
TYPE_LOCK (struct packet_sock)->pg_vec_lock

drivers/net/tap.c __virtio_net_hdr_to_skb() -> virtio_net_hdr_set_proto()

Type Parameter Key Value
PARAM_VALUE 0 skb 4096-ptr_max
PARAM_VALUE 0 skb->destructor 0,5871617288306880512,7346051344949997568
PARAM_VALUE 0 skb->dev 4096-ptr_max
PARAM_VALUE 0 skb->dev->header_ops 0,4096-ptr_max
PARAM_VALUE 0 skb->dev->header_ops->parse_protocol 0,4927389631704563712,5013334982761803776,5267698508377800704
PARAM_VALUE 0 skb->network_header 1-u16max
PARAM_VALUE 0 skb->protocol 0
PARAM_VALUE 0 skb->sk 0,4096-ptr_max
PARAM_VALUE 1 hdr 4096-ptr_max
PARAM_VALUE 1 hdr->gso_size 1-u16max
BUF_SIZE 0 skb (-1)-s32max
BUF_SIZE 0 skb (-1)-s32max
BUF_SIZE 1 hdr (-1),1-s32max
BUF_SIZE 1 hdr (-1),1-s32max
DATA_SOURCE 0 skb $0
DATA_SOURCE 1 hdr $1
BIT_INFO 1 hdr->flags 0x0,0xfe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 hdr unit_byte
HALF_LOCKED2 rcu_read

drivers/net/tun.c __virtio_net_hdr_to_skb() -> virtio_net_hdr_set_proto()

Type Parameter Key Value
PARAM_VALUE 0 skb 4096-ptr_max
PARAM_VALUE 0 skb->dev 4096-ptr_max
PARAM_VALUE 0 skb->dev->header_ops 0,4096-ptr_max
PARAM_VALUE 0 skb->dev->header_ops->parse_protocol 0,4927389631704563712,5013334982761803776,5267698508377800704
PARAM_VALUE 0 skb->network_header 1-u16max
PARAM_VALUE 0 skb->protocol 0
PARAM_VALUE 1 hdr 4096-ptr_max
PARAM_VALUE 1 hdr->gso_size 1-u16max
BUF_SIZE 0 skb (-1)-s32max
BUF_SIZE 0 skb (-1)-s32max
BUF_SIZE 1 hdr (-1),1-s32max
BUF_SIZE 1 hdr (-1),1-s32max
DATA_SOURCE 0 skb $0
DATA_SOURCE 1 hdr $1
BIT_INFO 1 hdr->flags 0x0,0xfe
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 hdr unit_byte
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

drivers/net/virtio_net.c __virtio_net_hdr_to_skb() -> virtio_net_hdr_set_proto()

Type Parameter Key Value
PARAM_VALUE 0 skb 4096-ptr_max
PARAM_VALUE 0 skb->dev 4096-ptr_max
PARAM_VALUE 0 skb->dev->header_ops 0,4096-ptr_max
PARAM_VALUE 0 skb->dev->header_ops->parse_protocol 0,4927389631704563712,5013334982761803776,5267698508377800704
PARAM_VALUE 0 skb->network_header 1-u16max
PARAM_VALUE 0 skb->protocol 0
PARAM_VALUE 1 hdr 4096-ptr_max
PARAM_VALUE 1 hdr->gso_size 1-u16max
BUF_SIZE 0 skb (-1)-s32max
BUF_SIZE 0 skb (-1)-s32max
DATA_SOURCE 0 skb $0
DATA_SOURCE 1 hdr $1
BIT_INFO 1 hdr->flags 0x0,0xfe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 skb->len
NO_OVERFLOW_SIMPLE 0 skb->tail
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read