Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/usb/gadget/function/f_mass_storage.c check_command_size_in_blocks() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun 0,4096-ptr_max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 6,10,12,16
PARAM_VALUE 2 data_dir 1-2
PARAM_VALUE 3 mask 30,446,1022,16382
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 216763734521892864,230776450166743040,790222367062847488,1665629033111830528,2149749936192495616,3948287818234433536,5743179183131209728,7436662933140492288
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 8-10
BUF_SIZE 5 name 8-10
CAPPED_DATA 0 common->cmnd_size 1
DATA_SOURCE 0 common $0
DATA_SOURCE 1 cmnd_size $1
DATA_SOURCE 2 data_dir $2
DATA_SOURCE 3 mask $3
DATA_SOURCE 4 needs_medium $4
DATA_SOURCE 5 name $5
STR_LEN 0 common 7-9
STR_LEN 0 common 7-9
TERMINATED 5 name 1
HARD_MAX 1 cmnd_size 16
HARD_MAX 2 data_dir 2
HARD_MAX 3 mask 16382
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 6
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 16
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 8185531665993302016
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 8
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 7
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 6
PARAM_VALUE 2 data_dir 1
PARAM_VALUE 3 mask 18
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 152975922681614336
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 15
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 14
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 10
PARAM_VALUE 2 data_dir 1
PARAM_VALUE 3 mask 386
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 6072222004984901632
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 16
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 15
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 6
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 22
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 3780519062457565184
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 14
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 13
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 10
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 390
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 5167204821321830400
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 15
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 14
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 6
PARAM_VALUE 2 data_dir 3
PARAM_VALUE 3 mask 16
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 5264229310982975488
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 29
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 28
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 8
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 10
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 316
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 2013595237439246336
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 14
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 13
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun 4096-ptr_max
PARAM_VALUE 0 common->curlun->cdrom 1
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 10
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 446
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 7266562725562814464
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 12
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 11
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun 4096-ptr_max
PARAM_VALUE 0 common->curlun->cdrom 1
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 10
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 966
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 2015758017884180480
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 9
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 8
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 10
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 384
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 3943160796134563840
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 23
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 22
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 6
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 16
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 7577969376572522496
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 14
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 13
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0-255
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 16
PARAM_VALUE 2 data_dir 2
PARAM_VALUE 3 mask 32766
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 5340427075137265664
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 18
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 17
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 6
PARAM_VALUE 2 data_dir 3
PARAM_VALUE 3 mask 18
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 1879802959731564544
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 16
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 15
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 10
PARAM_VALUE 2 data_dir 3
PARAM_VALUE 3 mask 444
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 5360518669701472256
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 18
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 17
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 6
PARAM_VALUE 2 data_dir 3
PARAM_VALUE 3 mask 0
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 2554926003556773888
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 16
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 15
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 10
PARAM_VALUE 2 data_dir 3
PARAM_VALUE 3 mask 446
PARAM_VALUE 4 needs_medium 1
PARAM_VALUE 5 name 2458367677330685952
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 7
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
DATA_SOURCE 0 common $0
STR_LEN 0 common 6
TERMINATED 5 name 1
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

drivers/usb/gadget/function/f_mass_storage.c do_scsi_command() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
PARAM_VALUE 0 common->cmnd 4096-ptr_max
PARAM_VALUE 0 common->cmnd_size 0-s32max
PARAM_VALUE 0 common->curlun->filp->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 common->data_size_from_cmnd 0
PARAM_VALUE 0 common->filesem.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 common->filesem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 common->filesem.first_waiter->type 0-1
PARAM_VALUE 0 common->filesem.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 common->filesem.wait_lock.owner (-1)
PARAM_VALUE 0 common->filesem.wait_lock.owner_cpu u32max
PARAM_VALUE 0 common->io_wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 common->io_wait.head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 common->next_buffhd_to_drain 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill 1-u64max
PARAM_VALUE 0 common->next_buffhd_to_fill->state 0-s32max
PARAM_VALUE 0 common->phase_error 0
PARAM_VALUE 0 common->running 1
PARAM_VALUE 0 common->short_packet_received 0
PARAM_VALUE 0 common->state 0
PARAM_VALUE 1 cmnd_size 0-s32max
PARAM_VALUE 2 data_dir 0
PARAM_VALUE 3 mask u32max
PARAM_VALUE 4 needs_medium 0
PARAM_VALUE 5 name 5998202714149240832
BUF_SIZE 0 common 128
BUF_SIZE 0 common 128
BUF_SIZE 5 name 16
CAPPED_DATA 0 common->cmnd_size 1
CAPPED_DATA 0 &common->filesem 1
CAPPED_DATA 1 cmnd_size 1
DATA_SOURCE 0 common $0
UNITS 1 cmnd_size unit_byte
LOCK2 0 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

kernel/trace/trace_events_synth.c create_or_delete_synth_event() -> check_command()

Type Parameter Key Value
PARAM_VALUE 0 common 4096-ptr_max
BUF_SIZE 0 common s32min-s32max
DATA_SOURCE 0 common r skip_spaces
TERMINATED 0 common 1
USER_DATA 0 common 4096-ptr_max[c][u]
USER_DATA 0 *common 0-255
UNITS 0 common unit_byte
USER_PTR 0 common

kernel/trace/trace_events_synth.c create_synth_event() -> check_command()

Type Parameter Key Value
USER_DATA 0 *common 0-255
USER_PTR 0 common
LOCK2 global &dyn_event_ops_mutex