Defined in 3 files as a function:
- drivers/gpu/drm/drm_debugfs.c, line 548 (as a function)
- drivers/gpu/drm/drm_sysfs.c, line 266 (as a function)
- drivers/video/fbdev/udlfb.c, line 1449 (as a function)
Referenced in 3 files:
- drivers/gpu/drm/drm_debugfs.c, line 557
- drivers/gpu/drm/drm_sysfs.c, line 325
- drivers/video/fbdev/udlfb.c, line 1517
Smatch caller information:
fs/sysfs/file.c sysfs_kf_bin_read() -> (struct bin_attribute)->read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 2 | a | 4096-ptr_max |
| PARAM_VALUE | 2 | a->read | 1-u64max |
| PARAM_VALUE | 3 | buf | 1-u64max |
| PARAM_VALUE | 5 | count | 1-4096 |
| BUF_SIZE | 1 | kobj | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 1 | kobj | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 2 | a | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 2 | a | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| CAPPED_DATA | 5 | count | 1 |
| CAPPED_DATA | 5 | count | 1 |
| DATA_SOURCE | 1 | kobj | r sysfs_file_kobj |
| DATA_SOURCE | 3 | buf | $1 |
| DATA_SOURCE | 4 | off | $3 |
| DATA_SOURCE | 5 | count | $2 [m] |
| CONTAINER | 2 | -64+0 | $(-1) |
| PARAM_COMPARE | 3 | buf | >= $5 |
| BIT_INFO | 5 | count | 0x0,0x7fffffffffffffff |
| BIT_INFO | 5 | count | 0x0,0x7fffffffffffffff |
| NOSPEC | 4 | off | |
| NOSPEC | 4 | off | |
| NOSPEC | 5 | count | |
| NOSPEC | 5 | count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 4 | off | 0-4095 |
| USER_DATA | 5 | count | 1-4096 |
| BYTE_COUNT | 3 | ==buf5 | 8050 |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/bpf/bpf_iter.c bpf_seq_read() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->buf | 1-u64max |
| PARAM_VALUE | 0 | filp->count | 0 |
| PARAM_VALUE | 0 | filp->from | 0 |
| PARAM_VALUE | 0 | filp->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | filp->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | filp->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | filp->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | filp->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | filp->op | 4096-ptr_max |
| PARAM_VALUE | 1 | kobj | 1-ptr_max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp->buf | 32768,u64max |
| CAPPED_DATA | 0 | &filp->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| LOCK2 | 0 | &filp->lock | |
| TYPE_LOCK | (struct seq_file)->lock |
kernel/bpf/bpf_iter.c bpf_seq_read() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->buf | 1-u64max |
| PARAM_VALUE | 0 | filp->count | 0 |
| PARAM_VALUE | 0 | filp->from | 0 |
| PARAM_VALUE | 0 | filp->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | filp->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | filp->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | filp->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | filp->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | filp->op | 4096-ptr_max |
| PARAM_VALUE | 1 | kobj | 1-ptr_max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp->buf | 32768,u64max |
| CAPPED_DATA | 0 | &filp->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| PARAM_COMPARE | 0 | filp->count | <= $0->size |
| LOCK2 | 0 | &filp->lock | |
| TYPE_LOCK | (struct seq_file)->lock |
fs/seq_file.c seq_read_iter() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->buf | 1-u64max |
| PARAM_VALUE | 0 | filp->count | 0 |
| PARAM_VALUE | 0 | filp->from | 0 |
| PARAM_VALUE | 0 | filp->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | filp->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | filp->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | filp->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | filp->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | filp->op | 4096-ptr_max |
| PARAM_VALUE | 1 | kobj | 1-ptr_max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp->buf | (-1)-2147479552 |
| CAPPED_DATA | 0 | &filp->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | filp->read_pos | 0-13442450941[c] |
| LOCK2 | 0 | &filp->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/seq_file.c seq_read_iter() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->buf | 1-u64max |
| PARAM_VALUE | 0 | filp->count | 0-999999999 |
| PARAM_VALUE | 0 | filp->from | 0 |
| PARAM_VALUE | 0 | filp->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | filp->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | filp->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | filp->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | filp->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | filp->op | 4096-ptr_max |
| PARAM_VALUE | 1 | kobj | 1-ptr_max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp->buf | (-1)-2147479552 |
| CAPPED_DATA | 0 | filp->count | 1 |
| CAPPED_DATA | 0 | &filp->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| PARAM_COMPARE | 0 | filp->count | != $0->size |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | filp->read_pos | 0-13442450941[c] |
| LOCK2 | 0 | &filp->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/seq_file.c traverse() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->buf | 1-u64max |
| PARAM_VALUE | 0 | filp->count | 0 |
| PARAM_VALUE | 0 | filp->from | 0 |
| PARAM_VALUE | 0 | filp->index | 0 |
| PARAM_VALUE | 0 | filp->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | filp->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | filp->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | filp->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | filp->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | filp->op | 4096-ptr_max |
| PARAM_VALUE | 1 | kobj | 1-ptr_max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | filp->buf | (-1)-2147479552 |
| DATA_SOURCE | 0 | filp | $0 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &filp->lock | |
| TYPE_LOCK | (struct seq_file)->lock |