SLAB_RED_ZONE
SLAB_RED_ZONE);
SLAB_KMALLOC|SLAB_STORE_USER|SLAB_RED_ZONE);
SLAB_KMALLOC|SLAB_STORE_USER|SLAB_RED_ZONE);
SLAB_RED_ZONE);
#define SLAB_DEBUG_FLAGS (SLAB_RED_ZONE | SLAB_POISON | SLAB_STORE_USER | \
if (s->flags & SLAB_RED_ZONE)
if (s->flags & SLAB_RED_ZONE)
if (s->flags & SLAB_RED_ZONE) {
if (s->flags & SLAB_RED_ZONE)
if (s->flags & SLAB_RED_ZONE) {
if (!kmem_cache_debug_flags(s, SLAB_STORE_USER|SLAB_RED_ZONE|__OBJECT_POISON))
*flags |= SLAB_RED_ZONE;
if (kmem_cache_debug_flags(s, SLAB_RED_ZONE))
rsize = (s->flags & SLAB_RED_ZONE) ? s->red_left_pad : 0;
#define DEBUG_DEFAULT_FLAGS (SLAB_CONSISTENCY_CHECKS | SLAB_RED_ZONE | \
#define DEBUG_METADATA_FLAGS (SLAB_RED_ZONE | SLAB_POISON | SLAB_STORE_USER)
if (kmem_cache_debug_flags(s, SLAB_STORE_USER | SLAB_RED_ZONE) &&
if (s->flags & (SLAB_RED_ZONE | SLAB_POISON))
if (s->flags & SLAB_RED_ZONE && new_size < ks)
if ((flags & SLAB_RED_ZONE) && size == s->object_size)
((flags & SLAB_RED_ZONE) &&
if (flags & SLAB_RED_ZONE) {
if (!is_kfence && kmem_cache_debug_flags(s, SLAB_RED_ZONE)) {
return sysfs_emit(buf, "%d\n", !!(s->flags & SLAB_RED_ZONE));
if (s->flags & SLAB_RED_ZONE)
if (s->flags & SLAB_RED_ZONE)