documentation_complete: true

title: 'Enable SLUB debugging support'

description: |-
    SLUB has extensive debug support features and this allows the allocator validation checking to
    be enabled.

    {{{ describe_kernel_build_config("CONFIG_SLUB_DEBUG", "y") | indent(4) }}}

rationale: |-
    This activates the checking of the memory allocator structures and resets to zero the zones
    allocated when they are released.

warnings:
    {{{ warning_kernel_build_config() | indent(4) }}}

severity: medium

identifiers:
    cce@rhel8: CCE-88275-3
    cce@rhel9: CCE-88276-1
    cce@rhel10: CCE-87071-7

ocil_clause: 'the kernel was not built with the required value'

ocil: |-
    {{{ ocil_kernel_build_config("CONFIG_SLUB_DEBUG", "y") | indent(4) }}}

template:
    name: kernel_build_config
    vars:
        config: CONFIG_SLUB_DEBUG
        value: 'y'

