Lines Matching +full:free +full:- +full:running
1 // SPDX-License-Identifier: GPL-2.0
18 * about this value. This means compile-time length checks involving
19 * this variable cannot be performed; only run-time checks.
46 * This tries to stay within the next largest power-of-2 kmalloc cache
71 * The slub allocator uses the first word to store the free in lkdtm_WRITE_AFTER_FREE()
73 * allocation to avoid running into the freelist in lkdtm_WRITE_AFTER_FREE()
80 pr_info("Allocated memory %p-%p\n", base, &base[offset * 2]); in lkdtm_WRITE_AFTER_FREE()
98 * the middle of the allocation to store the free pointer, in lkdtm_READ_AFTER_FREE()
100 * avoid running into the freelist. in lkdtm_READ_AFTER_FREE()
119 pr_info("Value in memory before free: %x\n", base[offset]); in lkdtm_READ_AFTER_FREE()
143 * the middle of the allocation to store the free pointer, in lkdtm_KFENCE_READ_AFTER_FREE()
145 * avoid running into the freelist. in lkdtm_KFENCE_READ_AFTER_FREE()
155 * Especially for non-preemption kernels, ensure the allocation-gate in lkdtm_KFENCE_READ_AFTER_FREE()
157 * attempt yields, to ensure the allocation-gate timer is scheduled. in lkdtm_KFENCE_READ_AFTER_FREE()
170 pr_info("Value in memory before free: %x\n", base[offset]); in lkdtm_KFENCE_READ_AFTER_FREE()
198 pr_info("Unable to allocate free page\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE()
202 pr_info("Writing to the buddy page before free\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE()
206 pr_info("Attempting bad write to the buddy page after free\n"); in lkdtm_WRITE_BUDDY_AFTER_FREE()
221 pr_info("Unable to allocate free page\n"); in lkdtm_READ_BUDDY_AFTER_FREE()
236 pr_info("Value in memory before free: %x\n", base[0]); in lkdtm_READ_BUDDY_AFTER_FREE()
290 pr_info("Unable to allocate first free page\n"); in lkdtm_BUDDY_INIT_ON_ALLOC()
299 pr_info("Unable to allocate second free page\n"); in lkdtm_BUDDY_INIT_ON_ALLOC()
328 pr_info("Attempting double slab free ...\n"); in lkdtm_SLAB_FREE_DOUBLE()
345 pr_info("Attempting cross-cache slab free ...\n"); in lkdtm_SLAB_FREE_CROSS()
353 pr_info("Attempting non-Slab slab free ...\n"); in lkdtm_SLAB_FREE_PAGE()
371 double_free_cache = kmem_cache_create("lkdtm-heap-double_free", in lkdtm_heap_init()
373 a_cache = kmem_cache_create("lkdtm-heap-a", 64, 0, 0, ctor_a); in lkdtm_heap_init()
374 b_cache = kmem_cache_create("lkdtm-heap-b", 64, 0, 0, ctor_b); in lkdtm_heap_init()