• Arnd Bergmann's avatar
    crypto: qat - reduce stack size with KASAN · 8c9478a4
    Arnd Bergmann authored
    Passing the register value by reference here leads a large amount of stack being
    used when CONFIG_KASAN is enabled:
    
    drivers/crypto/qat/qat_common/qat_hal.c: In function 'qat_hal_exec_micro_inst.constprop':
    drivers/crypto/qat/qat_common/qat_hal.c:963:1: error: the frame size of 1792 bytes is larger than 1536 bytes [-Werror=frame-larger-than=]
    
    Changing the register-read function to return the value instead reduces the stack
    size to around 800 bytes, most of which is for the 'savuwords' array. The function
    now no longer returns an error code, but nothing ever evaluated that anyway.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    8c9478a4
qat_hal.c 44.8 KB