Documented in 3 files:
- arch/s390/boot/string.c, line 88
- arch/x86/boot/string.c, line 113
- drivers/firmware/efi/libstub/string.c, line 126
Defined in 3 files as a prototype:
- arch/x86/boot/boot.h, line 306 (as a prototype)
- arch/x86/boot/string.h, line 27 (as a prototype)
- include/linux/kstrtox.h, line 150 (as a prototype)
Defined in 4 files as a function:
- arch/s390/boot/string.c, line 95 (as a function)
- arch/x86/boot/string.c, line 119 (as a function)
- drivers/firmware/efi/libstub/string.c, line 133 (as a function)
- lib/vsprintf.c, line 112 (as a function)
Referenced in 24 files:
- arch/s390/boot/alternative.c
- arch/s390/boot/ipl_parm.c
- arch/s390/boot/printk.c
- arch/s390/boot/string.c
- arch/x86/boot/early_serial_console.c
- arch/x86/boot/string.c
- arch/x86/kernel/cpu/mtrr/if.c
- arch/x86/kernel/e820.c
- arch/x86/kernel/early_printk.c, line 186
- block/bfq-cgroup.c, line 1117
- drivers/crypto/intel/qat/qat_common/qat_uclo.c, line 207
- drivers/firmware/efi/libstub/gop.c
- drivers/firmware/efi/libstub/string.c
- drivers/pnp/interface.c
- drivers/s390/char/sclp_cpi_sys.c, line 334
- drivers/scsi/scsi_sysfs.c, line 126
- drivers/tty/serial/serial_core.c, line 2162
- drivers/usb/misc/yurex.c, line 480
- drivers/xen/xen-balloon.c, line 171
- lib/cmdline.c
- lib/tests/scanf_kunit.c
- lib/vsprintf.c
- mm/mm_init.c, line 277
- security/apparmor/procattr.c, line 83
Smatch caller information:
lib/cmdline.c get_option() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 4096-ptr_max |
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 0 |
| DATA_SOURCE | 1 | endp | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | irq |
lib/cmdline.c get_option() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4096-ptr_max |
| PARAM_VALUE | 0 | *cp | (-128)-(-1),1-44,46-127 |
| PARAM_VALUE | 1 | endp | 4096-ptr_max |
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 0 |
| DATA_SOURCE | 1 | endp | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | irq |
lib/cmdline.c memparse() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 104544471958335488 |
| PARAM_VALUE | 2 | base | 0 |
| BUF_SIZE | 0 | cp | (-1),1-s32max |
| BUF_SIZE | 0 | cp | (-1),1-s32max |
| DATA_SOURCE | 0 | cp | $0 |
| STR_LEN | 0 | cp | (-1),2-3 |
| STR_LEN | 0 | cp | (-1),2-3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *cp | 0-127 |
| USER_PTR | 0 | cp | |
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | irq |
drivers/tty/serial/serial_core.c uart_parse_earlycon() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 0 |
| PARAM_VALUE | 2 | base | 0 |
| DATA_SOURCE | 0 | cp | $0 [m] |
| STR_LEN | 0 | cp | (-1) |
| STR_LEN | 0 | cp | (-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &console_mutex | ||
| HALF_LOCKED2 | irq |
drivers/scsi/scsi_sysfs.c check_set() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 2719643742389284864,5591470886506545152,7909233352219299840 |
| PARAM_VALUE | 1 | endp | 6077463967491346432 |
| PARAM_VALUE | 2 | base | 0 |
| BUF_SIZE | 0 | cp | 15,17 |
| BUF_SIZE | 0 | cp | 15,17 |
| DATA_SOURCE | 0 | cp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
lib/vsprintf.c simple_strtoul() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | cp | $0 |
| DATA_SOURCE | 1 | endp | $1 |
| DATA_SOURCE | 2 | base | $2 |
arch/x86/boot/compressed/string.c simple_strtol() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 0,4096-ptr_max |
| PARAM_VALUE | 2 | base | 0,10,16 |
| DATA_SOURCE | 1 | endp | $1 |
| DATA_SOURCE | 2 | base | $2 |
| HARD_MAX | 2 | base | 16 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *cp | 0-255 |
| UNITS | 0 | cp | unit_byte |
| USER_PTR | 0 | cp | |
| HALF_LOCKED2 | &dev->ioctl_mutex | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &irq_domain_mutex | ||
| HALF_LOCKED2 | global &nfsd_mutex |
arch/x86/boot/compressed/string.c simple_strtol() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4096-ptr_max |
| PARAM_VALUE | 0 | *cp | 0-44,46-255 |
| PARAM_VALUE | 1 | endp | 0,4096-ptr_max |
| PARAM_VALUE | 2 | base | 0,8,10,16 |
| BUF_SIZE | 0 | cp | (-1)-s32max |
| BUF_SIZE | 0 | cp | (-1)-s32max |
| DATA_SOURCE | 0 | cp | $0 |
| DATA_SOURCE | 1 | endp | $1 |
| DATA_SOURCE | 2 | base | $2 |
| STR_LEN | 0 | cp | (-1),1,4,7-10,12-19,21-22,28-29,61,63,69,1023 |
| STR_LEN | 0 | cp | (-1),1,4,7-10,12-19,21-22,28-29,61,63,69,1023 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | *cp | 0-44,46-255 |
| UNITS | 0 | cp | unit_byte |
| USER_PTR | 0 | cp | |
| HALF_LOCKED2 | &dev->ioctl_mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &irq_domain_mutex | ||
| HALF_LOCKED2 | global &nfsd_mutex |
lib/tests/scanf_kunit.c test_simple_strtoull() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 8185845498062483456 |
| PARAM_VALUE | 2 | base | 10 |
| STR_LEN | 0 | cp | 1023 |
| STR_LEN | 0 | cp | 1023 |
| NO_OVERFLOW_SIMPLE | 0 | cp |
lib/tests/scanf_kunit.c test_simple_strtoull() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 8185845498062483456 |
| PARAM_VALUE | 2 | base | 0 |
| STR_LEN | 0 | cp | 1023 |
| STR_LEN | 0 | cp | 1023 |
| NO_OVERFLOW_SIMPLE | 0 | cp |
lib/tests/scanf_kunit.c test_simple_strtoull() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 8185845498062483456 |
| PARAM_VALUE | 2 | base | 16 |
| STR_LEN | 0 | cp | 1023 |
| STR_LEN | 0 | cp | 1023 |
| NO_OVERFLOW_SIMPLE | 0 | cp |
lib/tests/scanf_kunit.c test_simple_strtoull() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 8185845498062483456 |
| PARAM_VALUE | 2 | base | 16 |
| STR_LEN | 0 | cp | 1023 |
| STR_LEN | 0 | cp | 1023 |
| NO_OVERFLOW_SIMPLE | 0 | cp |
lib/tests/scanf_kunit.c test_simple_strtoull() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 8185845498062483456 |
| PARAM_VALUE | 2 | base | 0 |
| STR_LEN | 0 | cp | 1023 |
| STR_LEN | 0 | cp | 1023 |
| NO_OVERFLOW_SIMPLE | 0 | cp |
mm/mm_init.c cmdline_parse_core() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 1-u64max |
| PARAM_VALUE | 1 | endp | 7732094351880974336 |
| PARAM_VALUE | 2 | base | 0 |
| DATA_SOURCE | 0 | cp | $0 |
| HALF_LOCKED2 | irq |
drivers/md/bcache/util.c bch_strtoull_h() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 7888719047642529792 |
| PARAM_VALUE | 2 | base | 10 |
| DATA_SOURCE | 0 | cp | $0 |
| LOCK2 | global &bch_register_lock |
arch/x86/kernel/early_printk.c early_serial_init() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4096-ptr_max |
| PARAM_VALUE | 0 | *cp | 1-255 |
| PARAM_VALUE | 1 | endp | 3519412354458361856 |
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 0 |
| DATA_SOURCE | 0 | cp | $0 [m] |
| HALF_LOCKED2 | irq |
drivers/pnp/interface.c pnp_get_resource_value() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4096-ptr_max |
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 0 |
| BUF_SIZE | 0 | cp | s32min-s32max |
| DATA_SOURCE | 0 | cp | r skip_spaces |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &pnp_res_mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/pnp/interface.c pnp_get_resource_value() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4096-ptr_max |
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 0 |
| BUF_SIZE | 0 | cp | s32min-s32max |
| DATA_SOURCE | 0 | cp | r skip_spaces |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &pnp_res_mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/crypto/intel/qat/qat_common/qat_uclo.c qat_uclo_parse_num() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 1-u64max |
| PARAM_VALUE | 1 | endp | 4249749801688055808 |
| PARAM_VALUE | 2 | base | 10 |
| DATA_SOURCE | 0 | cp | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &accel_dev->state_lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &pci_rescan_remove_lock | ||
| TYPE_LOCK | (struct adf_accel_dev)->state_lock |
drivers/xen/xen-balloon.c target_kb_store() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4096-ptr_max |
| PARAM_VALUE | 1 | endp | 5207080392955842560 |
| PARAM_VALUE | 2 | base | 0 |
| DATA_SOURCE | 0 | cp | $2 |
| CAPABLE | 0 | 21 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/firmware/efi/libstub/gop.c parse_modenum() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *cp | (-128)-(-1),1-127 |
| PARAM_VALUE | 2 | base | 0 |
| DATA_SOURCE | 0 | cp | $0 [m] |
drivers/firmware/efi/libstub/gop.c parse_res() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4096-ptr_max |
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 10 |
| DATA_SOURCE | 0 | cp | $0 |
drivers/firmware/efi/libstub/gop.c parse_res() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4097-ptr_max |
| PARAM_VALUE | 1 | *endp | 4097-ptr_max |
| PARAM_VALUE | 2 | base | 10 |
| DATA_SOURCE | 0 | cp | $0 [m] |
drivers/firmware/efi/libstub/gop.c parse_res() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4097-ptr_max |
| PARAM_VALUE | 1 | *endp | 4097-ptr_max |
| PARAM_VALUE | 2 | base | 10 |
| DATA_SOURCE | 0 | cp | $0 [m] |
arch/x86/kernel/e820.c parse_memmap_one() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 0 |
| HALF_LOCKED2 | irq |
arch/x86/kernel/e820.c parse_memmap_one() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 0 |
| HALF_LOCKED2 | irq |
security/apparmor/procattr.c split_token_from_name() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4097-ptr_max |
| PARAM_VALUE | 0 | *cp | 1-255 |
| PARAM_VALUE | 1 | endp | 5744763875613134848 |
| PARAM_VALUE | 2 | base | 16 |
| DATA_SOURCE | 0 | cp | $1 |
block/bfq-cgroup.c bfq_io_set_weight() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 4096-ptr_max |
| PARAM_VALUE | 1 | endp | 981244138900307968 |
| PARAM_VALUE | 2 | base | 0 |
| BUF_SIZE | 0 | cp | s32min-s32max |
| DATA_SOURCE | 0 | cp | $1 [m] |
| TERMINATED | 0 | cp | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/usb/misc/yurex.c yurex_write() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 3838632963371134976-3838632963371134977 |
| PARAM_VALUE | 1 | endp | 0 |
| PARAM_VALUE | 2 | base | 0 |
| BUF_SIZE | 0 | cp | (-1),17 |
| BUF_SIZE | 0 | cp | (-1),17 |
| LOCK2 | &dev->io_mutex | ||
| TYPE_LOCK | (struct usb_yurex)->io_mutex |
arch/x86/kernel/cpu/mtrr/if.c mtrr_write() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cp | 7921301992884502533 |
| PARAM_VALUE | 1 | endp | 4237703189852823552 |
| PARAM_VALUE | 2 | base | 0 |
| BUF_SIZE | 0 | cp | 75 |
arch/x86/kernel/cpu/mtrr/if.c mtrr_write() -> simple_strtoull()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | endp | 4237703189852823552 |
| PARAM_VALUE | 1 | *endp | 4096-ptr_max |
| PARAM_VALUE | 2 | base | 0 |