documentation_complete: true

title: 'Enable checks on scatter-gather (SG) table operations'

description: |-
    Scatter-gather tables are mechanism used for high performance I/O on DMA devices.
    Enable this to turn on checks on scatter-gather tables.

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

rationale: |-
    This can help find problems with drivers that do not properly initialize their SG tables.

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

severity: low

identifiers:
    cce@rhel8: CCE-87148-3
    cce@rhel9: CCE-87149-1
    cce@rhel10: CCE-89292-7

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

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

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

