• Herbert Xu's avatar
    crypto: seqiv - Handle EBUSY correctly · 32e62025
    Herbert Xu authored
    As it is seqiv only handles the special return value of EINPROGERSS,
    which means that in all other cases it will free data related to the
    request.
    
    However, as the caller of seqiv may specify MAY_BACKLOG, we also need
    to expect EBUSY and treat it in the same way.  Otherwise backlogged
    requests will trigger a use-after-free.
    
    Fixes: 0a270321 ("[CRYPTO] seqiv: Add Sequence Number IV Generator")
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    32e62025
seqiv.c 4.56 KB