Documented in 1 files:
Defined in 3 files as a prototype:
- arch/s390/include/asm/string.h, line 188 (as a prototype)
- arch/x86/include/asm/string_32.h, line 220 (as a prototype)
- include/linux/string.h, line 263 (as a prototype)
Defined in 1 files as a macro:
Defined in 2 files as a label:
- arch/sparc/lib/memscan_32.S, line 120 (as a label)
- arch/sparc/lib/memscan_64.S, line 115 (as a label)
Defined in 5 files as a function:
- arch/s390/include/asm/string.h, line 119 (as a function)
- arch/s390/lib/string.c, line 471 (as a function)
- arch/x86/lib/string_32.c, line 177 (as a function)
- include/linux/fortify-string.h, line 650 (as a function)
- lib/string.c, line 712 (as a function)
Referenced in 12 files:
- arch/s390/include/asm/boot_data.h, line 50
- arch/s390/lib/string.c, line 484
- arch/x86/lib/string_32.c, line 190
- drivers/hid/usbhid/usbkbd.c
- drivers/hwmon/pmbus/inspur-ipsps.c, line 70
- fs/ext2/balloc.c, line 635
- fs/udf/balloc.c
- include/linux/fortify-string.h
- lib/string.c, line 724
- lib/test_fortify/read_overflow-memscan.c, line 3
- lib/tests/fortify_kunit.c
- net/bluetooth/hidp/core.c
Smatch caller information:
net/bluetooth/hidp/core.c hidp_input_report() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *addr | 0-255 |
| PARAM_VALUE | 1 | c | 4-255 |
| PARAM_VALUE | 2 | size | 6 |
net/bluetooth/hidp/core.c hidp_input_report() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *addr | 0-255 |
| PARAM_VALUE | 1 | c | 4-255 |
| PARAM_VALUE | 2 | size | 6 |
| BUF_SIZE | 0 | addr | 6 |
drivers/hwmon/pmbus/inspur-ipsps.c ipsps_string_show() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 7586463151250407424 |
| PARAM_VALUE | 1 | c | 35 |
| PARAM_VALUE | 2 | size | 0-s32max |
| BUF_SIZE | 0 | addr | 33 |
| DATA_SOURCE | 2 | size | r i2c_smbus_read_block_data |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/ext2/balloc.c find_next_usable_block() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 4096-ptr_max |
| PARAM_VALUE | 1 | c | 0 |
| PARAM_VALUE | 2 | size | 0-268435455,18446744073441116161-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | addr | unit_byte |
| HALF_LOCKED2 | &ei->truncate_mutex |
fs/udf/balloc.c udf_bitmap_new_block() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *addr | 0-255 |
| PARAM_VALUE | 1 | c | 255 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | addr | unit_byte |
| UNITS | 2 | size | unit_byte |
| LOCK2 | &sbi->s_alloc_mutex | ||
| HALF_LOCKED2 | &iinfo->i_data_sem | ||
| TYPE_LOCK | (struct udf_sb_info)->s_alloc_mutex |
fs/udf/balloc.c udf_bitmap_new_block() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *addr | 0-255 |
| PARAM_VALUE | 1 | c | 255 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | addr | unit_byte |
| UNITS | 2 | size | unit_byte |
| LOCK2 | &sbi->s_alloc_mutex | ||
| HALF_LOCKED2 | &iinfo->i_data_sem | ||
| TYPE_LOCK | (struct udf_sb_info)->s_alloc_mutex |
fs/udf/balloc.c udf_bitmap_new_block() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *addr | 0-255 |
| PARAM_VALUE | 1 | c | 255 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | addr | unit_byte |
| UNITS | 2 | size | unit_byte |
| LOCK2 | &sbi->s_alloc_mutex | ||
| HALF_LOCKED2 | &iinfo->i_data_sem | ||
| TYPE_LOCK | (struct udf_sb_info)->s_alloc_mutex |
lib/tests/fortify_kunit.c fortify_test_memscan() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 7111402406297034752 |
| PARAM_VALUE | 1 | c | 109 |
| BUF_SIZE | 0 | addr | 35 |
| STR_LEN | 0 | addr | 34 |
| TERMINATED | 0 | addr | 1 |
| UNITS | 2 | size | unit_byte |
lib/tests/fortify_kunit.c fortify_test_memscan() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 7111402406297034752 |
| PARAM_VALUE | 1 | c | 109 |
| BUF_SIZE | 0 | addr | 35 |
| CAPPED_DATA | 2 | size | 1 |
| STR_LEN | 0 | addr | 34 |
| TERMINATED | 0 | addr | 1 |
| UNITS | 2 | size | unit_byte |
lib/tests/fortify_kunit.c fortify_test_memscan() -> memscan()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 7111402406297034752 |
| PARAM_VALUE | 1 | c | 109 |
| BUF_SIZE | 0 | addr | 35 |
| CAPPED_DATA | 2 | size | 1 |
| STR_LEN | 0 | addr | 34 |
| TERMINATED | 0 | addr | 1 |