Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/../ras/core/log_ring.c ras_log_ring_add_log_event() -> mempool_alloc_preallocated()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &ras_core->ras_aca.bank_op_lock

drivers/gpu/drm/amd/amdgpu/../ras/core/log_ring.c ras_log_ring_add_log_event() -> mempool_alloc_preallocated()

Type Parameter Key Value
PARAM_VALUE 0 pool 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &ras_core->ras_aca.bank_op_lock

mm/kasan/kasan_test_c.c mempool_double_free_helper() -> mempool_alloc_preallocated()

Type Parameter Key Value
PARAM_VALUE 0 pool 6520781557716758528,7120382303171424256,8942448776915165184
PARAM_VALUE 0 pool->alloc 478628002987114496,8450676485683146752
PARAM_VALUE 0 pool->free 9039121080127385600,9178302734063534080
PARAM_VALUE 0 pool->min_nr 4
PARAM_VALUE 0 pool->pool_data 2,128,8193
DATA_SOURCE 0 pool $1
MEM_ZERO 0 pool

mm/kasan/kasan_test_c.c mempool_kmalloc_invalid_free_helper() -> mempool_alloc_preallocated()

Type Parameter Key Value
PARAM_VALUE 0 pool 1774489567029321728,3750263630210793472
PARAM_VALUE 0 pool->alloc 478628002987114496
PARAM_VALUE 0 pool->free 9178302734063534080
PARAM_VALUE 0 pool->min_nr 4
PARAM_VALUE 0 pool->pool_data 128,8193
DATA_SOURCE 0 pool $1
MEM_ZERO 0 pool

mm/kasan/kasan_test_c.c mempool_oob_right_helper() -> mempool_alloc_preallocated()

Type Parameter Key Value
PARAM_VALUE 0 pool 1940659308778012672,3024914041360031744,4551816345989701632
PARAM_VALUE 0 pool->alloc 478628002987114496,7276475779886346240
PARAM_VALUE 0 pool->free 8263660038527102976,9178302734063534080
PARAM_VALUE 0 pool->min_nr 4
PARAM_VALUE 0 pool->pool_data 1-ptr_max
DATA_SOURCE 0 pool $1
MEM_ZERO 0 pool

mm/kasan/kasan_test_c.c mempool_prepare_kmalloc() -> mempool_alloc_preallocated()

Type Parameter Key Value
PARAM_VALUE 0 pool 1774489567029321728,2111861650722275328,3024914041360031744,3750263630210793472,4551816345989701632,5420937923690541056,7120382303171424256,8942448776915165184
PARAM_VALUE 0 pool->alloc 478628002987114496
PARAM_VALUE 0 pool->curr_nr 1-s32max
PARAM_VALUE 0 pool->elements 1-u64max
PARAM_VALUE 0 pool->free 9178302734063534080
PARAM_VALUE 0 pool->min_nr 4
PARAM_VALUE 0 pool->pool_data 115,128,8193
PARAM_VALUE 0 pool->wait.head.next 4096-ptr_max
PARAM_VALUE 0 pool->wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 pool->wait.head.prev 4096-ptr_max
PARAM_VALUE 0 pool->wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 pool->wait.head.prev->prev 4096-ptr_max
DATA_SOURCE 0 pool $1
MEM_ZERO 0 pool

mm/kasan/kasan_test_c.c mempool_prepare_page() -> mempool_alloc_preallocated()

Type Parameter Key Value
PARAM_VALUE 0 pool 4756936810992918528,6520781557716758528
PARAM_VALUE 0 pool->alloc 8450676485683146752
PARAM_VALUE 0 pool->curr_nr 1-s32max
PARAM_VALUE 0 pool->elements 1-u64max
PARAM_VALUE 0 pool->free 9039121080127385600
PARAM_VALUE 0 pool->min_nr 4
PARAM_VALUE 0 pool->pool_data 2
PARAM_VALUE 0 pool->wait.head.next 4096-ptr_max
PARAM_VALUE 0 pool->wait.head.next->next 4096-ptr_max
PARAM_VALUE 0 pool->wait.head.prev 4096-ptr_max
PARAM_VALUE 0 pool->wait.head.prev->next 4096-ptr_max
PARAM_VALUE 0 pool->wait.head.prev->prev 4096-ptr_max
DATA_SOURCE 0 pool $1
MEM_ZERO 0 pool

mm/kasan/kasan_test_c.c mempool_uaf_helper() -> mempool_alloc_preallocated()

Type Parameter Key Value
PARAM_VALUE 0 pool 2103146132634918912,2111861650722275328,4756936810992918528,5420937923690541056
PARAM_VALUE 0 pool->alloc 478628002987114496,7276475779886346240,8450676485683146752
PARAM_VALUE 0 pool->free 8263660038527102976,9039121080127385600,9178302734063534080
PARAM_VALUE 0 pool->min_nr 4
PARAM_VALUE 0 pool->pool_data 1-ptr_max
DATA_SOURCE 0 pool $1
MEM_ZERO 0 pool