Lines Matching defs:object_size
209 static inline unsigned int optimal_redzone(unsigned int object_size)
215 object_size <= 64 - 16 ? 16 :
216 object_size <= 128 - 32 ? 32 :
217 object_size <= 512 - 64 ? 64 :
218 object_size <= 4096 - 128 ? 128 :
219 object_size <= (1 << 14) - 256 ? 256 :
220 object_size <= (1 << 15) - 512 ? 512 :
221 object_size <= (1 << 16) - 1024 ? 1024 : 2048;
238 cache->object_size < sizeof(struct kasan_free_meta))) {
243 redzone_size = optimal_redzone(cache->object_size);
244 redzone_adjust = redzone_size - (*size - cache->object_size);
249 max(*size, cache->object_size + redzone_size));
298 kasan_unpoison_shadow(object, cache->object_size);
304 round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE),
415 rounded_up_size = round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE);
449 redzone_end = round_up((unsigned long)object + cache->object_size,
469 return __kasan_kmalloc(cache, object, cache->object_size, flags, false);