• Kim Phillips's avatar
    crypto: caam - fix printk recursion for long error texts · de2954d6
    Kim Phillips authored
    during recent descriptor development, an Invalid Sequence Command
    error triggered a:
    
    BUG: recent printk recursion!
    
    due to insufficient memory allocated for the error text.
    
    The Invalid Sequence Command error text is the longest.
    The length of the maximum error string is computed as
    the sum of:
    
    "DECO: ": 6
    "jump tgt desc idx 255: ": 23
    Invalid Sequence Command text: 272
    zero termination character: 1
    
    i.e, 302 characters.
    
    Define this maximum error string length in error.h and fix
    caam_jr_strstatus callsites.
    Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    de2954d6
caamalg.c 32.5 KB