Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GrapheneOS/hardened_malloc
/ functions
Functions
220 in github.com/GrapheneOS/hardened_malloc
⨍
Functions
220
◇
Types & classes
36
↓ 40 callers
Function
fatal_error
util.c:29
↓ 40 callers
Function
mutex_unlock
mutex.h:24
↓ 37 callers
Method
run_test
(self, test_name)
test/test_smc.py:12
↓ 27 callers
Function
mutex_lock
mutex.h:20
↓ 26 callers
Function
thread_seal_metadata
h_malloc.c:1024
↓ 19 callers
Function
thread_unseal_metadata
h_malloc.c:1020
↓ 11 callers
Function
memory_unmap
memory.c:40
↓ 10 callers
Function
get_slab
h_malloc.c:279
↓ 9 callers
Function
h_free
preserves errno
h_malloc.c:1541
↓ 8 callers
Function
is_init
h_malloc.c:1067
↓ 8 callers
Function
memory_set_name
memory.c:100
↓ 8 callers
Function
new_impl
new.cc:35
↓ 7 callers
Function
get_slab_region_end
h_malloc.c:81
↓ 7 callers
Function
regions_find
h_malloc.c:963
↓ 7 callers
Function
slot_pointer
h_malloc.c:441
↓ 6 callers
Function
get_mask
h_malloc.c:359
↓ 6 callers
Function
get_slab_size
h_malloc.c:221
↓ 6 callers
Function
get_slots
h_malloc.c:157
↓ 5 callers
Function
adjust_size_for_canary
h_malloc.c:1321
↓ 5 callers
Function
deallocate_pages
pages.c:84
↓ 5 callers
Function
memory_map_fixed
memory.c:31
↓ 5 callers
Function
memory_protect_rw
memory.c:64
↓ 5 callers
Function
memory_purge
memory.c:92
↓ 5 callers
Function
page_align
pages.h:19
↓ 4 callers
Function
align
util.h:55
↓ 4 callers
Function
enforce_init
h_malloc.c:1071
↓ 4 callers
Function
get_free_slot
h_malloc.c:363
↓ 4 callers
Function
get_large_size_class
Returns 0 on overflow.
h_malloc.c:1198
↓ 4 callers
Function
get_metadata
h_malloc.c:431
↓ 4 callers
Function
get_random_u64_uniform
See Fast Random Integer Generation in an Interval by Daniel Lemire
random.c:115
↓ 4 callers
Function
get_size_info
h_malloc.c:190
↓ 4 callers
Function
h_free_sized
h_malloc.c:1564
↓ 4 callers
Function
hash_page
pages.h:23
↓ 4 callers
Function
memory_protect_rw_metadata
memory.c:68
↓ 4 callers
Function
mutex_init
mutex.h:14
↓ 4 callers
Function
random_state_init
random.c:27
↓ 4 callers
Function
set_canary
h_malloc.c:467
↓ 4 callers
Function
set_used_slot
h_malloc.c:321
↓ 4 callers
Function
slab_size_class
h_malloc.c:627
↓ 4 callers
Function
slab_usable_size
h_malloc.c:637
↓ 4 callers
Function
stats_small_allocate
h_malloc.c:483
↓ 3 callers
Function
alloc
h_malloc.c:1347
↓ 3 callers
Function
alloc_aligned_simple
h_malloc.c:1337
↓ 3 callers
Function
allocate
h_malloc.c:1248
↓ 3 callers
Function
allocate_pages
pages.c:12
↓ 3 callers
Function
clz64
parameter must not be 0
util.h:46
↓ 3 callers
Function
deallocate_large
h_malloc.c:1252
↓ 3 callers
Function
deallocate_small
preserves errno
h_malloc.c:662
↓ 3 callers
Function
get_random_u16_uniform
See Fast Random Integer Generation in an Interval by Daniel Lemire
random.c:88
↓ 3 callers
Function
get_random_u64
random.c:103
↓ 3 callers
Function
h_malloc
h_malloc.c:1355
↓ 3 callers
Function
init
h_malloc.c:1175
↓ 3 callers
Function
is_quarantine_slot
h_malloc.c:353
↓ 3 callers
Function
is_used_slot
h_malloc.c:337
↓ 3 callers
Function
label_slab
h_malloc.c:179
↓ 3 callers
Function
memory_map
memory.c:20
↓ 3 callers
Function
memory_protect_prot
memory.c:48
↓ 3 callers
Function
refill
random.c:45
↓ 3 callers
Function
stats_large_deallocate
h_malloc.c:833
↓ 3 callers
Function
write_full
util.c:13
↓ 2 callers
Function
add_guards
pages.c:7
↓ 2 callers
Function
alloc_aligned
h_malloc.c:1328
↓ 2 callers
Function
allocate_large
h_malloc.c:1218
↓ 2 callers
Function
chacha_ivsetup
chacha.c:61
↓ 2 callers
Function
chacha_keysetup
chacha.c:46
↓ 2 callers
Function
chacha_keystream_bytes
chacha.c:68
↓ 2 callers
Function
check_canary
h_malloc.c:473
↓ 2 callers
Function
enqueue_free_slab
h_malloc.c:641
↓ 2 callers
Function
ffz64
util.h:41
↓ 2 callers
Function
get_guard_size
h_malloc.c:1214
↓ 2 callers
Function
get_random_u16
random.c:76
↓ 2 callers
Function
h_aligned_alloc
h_malloc.c:1519
↓ 2 callers
Function
handle_out_of_memory
new.cc:11
↓ 2 callers
Function
has_free_slots
h_malloc.c:401
↓ 2 callers
Function
page_align
(size)
calculate_waste.py:41
↓ 2 callers
Function
print_mallinfo
test/mallinfo.c:10
↓ 2 callers
Function
print_mallinfo2
test/mallinfo2.c:10
↓ 2 callers
Function
random_state_init_from_random_state
random.c:36
↓ 2 callers
Function
regions_delete
h_malloc.c:976
↓ 2 callers
Function
regions_insert
h_malloc.c:940
↓ 2 callers
Function
regions_quarantine_deallocate_pages
h_malloc.c:855
↓ 2 callers
Function
set_slab_canary_value
h_malloc.c:457
↓ 2 callers
Function
stats_large_allocate
h_malloc.c:827
↓ 2 callers
Function
stats_slab_allocate
h_malloc.c:497
↓ 2 callers
Function
stats_slab_deallocate
h_malloc.c:503
↓ 2 callers
Function
thread_set_metadata_access
h_malloc.c:1011
↓ 2 callers
Function
write_after_free_check
h_malloc.c:445
↓ 1 callers
Function
alloc_metadata
h_malloc.c:290
↓ 1 callers
Function
allocate_aligned
h_malloc.c:1275
↓ 1 callers
Function
allocate_pages_aligned
pages.c:31
↓ 1 callers
Function
allocate_small
h_malloc.c:509
↓ 1 callers
Function
clear_quarantine_slot
h_malloc.c:348
↓ 1 callers
Function
clear_used_slot
h_malloc.c:329
↓ 1 callers
Function
full_lock
h_malloc.c:1030
↓ 1 callers
Function
full_unlock
h_malloc.c:1041
↓ 1 callers
Function
get_metadata_key
h_malloc.c:1003
↓ 1 callers
Function
get_metadata_max
h_malloc.c:286
↓ 1 callers
Function
get_random_bytes
random.c:54
↓ 1 callers
Function
get_random_seed
random.c:10
↓ 1 callers
Function
get_size_info_align
alignment must be a power of 2 <= PAGE_SIZE since slabs are only page aligned
h_malloc.c:211
next →
1–100 of 220, ranked by callers