Home
last modified time | relevance | path

Searched refs:KALLOC_SAFE_ALLOC_SIZE (Results 1 – 11 of 11) sorted by relevance

/xnu-11417.140.69/bsd/security/audit/
H A Daudit_bsm_token.c85 KASSERT(tokenlen <= KALLOC_SAFE_ALLOC_SIZE, in au_to_arg32()
111 KASSERT(tokenlen <= KALLOC_SAFE_ALLOC_SIZE, in au_to_arg64()
279 KASSERT(tokenlen <= KALLOC_SAFE_ALLOC_SIZE, in au_to_data()
337 KASSERT(tokenlen <= KALLOC_SAFE_ALLOC_SIZE, in au_to_newgroups()
508 KASSERT(tokenlen <= KALLOC_SAFE_ALLOC_SIZE, in au_to_opaque()
540 KASSERT(tokenlen <= KALLOC_SAFE_ALLOC_SIZE, in au_to_file()
573 KASSERT(tokenlen <= KALLOC_SAFE_ALLOC_SIZE, in au_to_text()
602 KASSERT(tokenlen <= KALLOC_SAFE_ALLOC_SIZE, in au_to_path()
904 static_assert(3 * sizeof(u_char) + sizeof(so->sun_path) + 1 <= KALLOC_SAFE_ALLOC_SIZE); in au_to_sock_unix()
1184 const size_t totlen_max = KALLOC_SAFE_ALLOC_SIZE - sizeof(u_char) - sizeof(u_int32_t); in au_to_exec_strings()
[all …]
/xnu-11417.140.69/osfmk/kern/
H A Dkalloc.h80 #define KALLOC_SAFE_ALLOC_SIZE (16u * 1024u) macro
1417 static_assert(max_sz <= KALLOC_SAFE_ALLOC_SIZE); \
1510 _Static_assert(size <= KALLOC_SAFE_ALLOC_SIZE, \
H A Dipc_kobject.c240 if (mig_e[i]->maxsize > KALLOC_SAFE_ALLOC_SIZE - MAX_TRAILER_SIZE) { in mig_init()
243 KALLOC_SAFE_ALLOC_SIZE - MAX_TRAILER_SIZE); in mig_init()
H A Dsmr.c2310 KALLOC_SAFE_ALLOC_SIZE); in smr_hash_init()
3151 if (size > KALLOC_SAFE_ALLOC_SIZE / sizeof(*array)) { in smr_shash_init()
3152 size = KALLOC_SAFE_ALLOC_SIZE / sizeof(*array); in smr_shash_init()
H A Dkalloc.c1992 static_assert(KHEAP_MAX_SIZE >= KALLOC_SAFE_ALLOC_SIZE); in kalloc_init()
/xnu-11417.140.69/libkern/c++/
H A DOSSymbol.cpp195 return size > KALLOC_SAFE_ALLOC_SIZE; in OSSymbol_is_huge()
/xnu-11417.140.69/bsd/vfs/
H A Dvfs_io_compression_stats.c100 static_assert(sizeof(lz4_encode_scratch_t) <= KALLOC_SAFE_ALLOC_SIZE); in io_compression_stats_allocate_compression_buffers()
/xnu-11417.140.69/doc/allocators/
H A Dapi-basics.md66 interfaces with a size smaller than `KALLOC_SAFE_ALLOC_SIZE`,
129 smaller than `KALLOC_SAFE_ALLOC_SIZE`. When this is not the case,
/xnu-11417.140.69/osfmk/vm/
H A Dvm_user.c2174 KALLOC_SAFE_ALLOC_SIZE); in mach_vm_range_create_v1()
/xnu-11417.140.69/bsd/netkey/
H A Dkey.c4398 assert(max_length < KALLOC_SAFE_ALLOC_SIZE); in key_setsaval()
4437 assert(max_length < KALLOC_SAFE_ALLOC_SIZE); in key_setsaval()
/xnu-11417.140.69/iokit/Kernel/
H A DIOUserServer.cpp3183 static_assert(MAX_UEXT_REPLY_SIZE + MAX_TRAILER_SIZE <= KALLOC_SAFE_ALLOC_SIZE);