summaryrefslogtreecommitdiff
path: root/include/uapi/linux/errqueue.h
diff options
context:
space:
mode:
authorElla Ma <alansnape3058@gmail.com>2026-01-09 18:17:24 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2026-01-30 11:09:32 +0300
commitd5abcc33ee76bc26d58b39dc1a097e43a99dd438 (patch)
tree6ccdbd16a34a49b3f7f4565099a1240e90161818 /include/uapi/linux/errqueue.h
parentda166801d6f5c24376115e7eb1fd33da2eb834de (diff)
downloadlinux-d5abcc33ee76bc26d58b39dc1a097e43a99dd438.tar.xz
crypto: ccp - Fix a crash due to incorrect cleanup usage of kfree
Annotating a local pointer variable, which will be assigned with the kmalloc-family functions, with the `__cleanup(kfree)` attribute will make the address of the local variable, rather than the address returned by kmalloc, passed to kfree directly and lead to a crash due to invalid deallocation of stack address. According to other places in the repo, the correct usage should be `__free(kfree)`. The code coincidentally compiled because the parameter type `void *` of kfree is compatible with the desired type `struct { ... } **`. Fixes: a71475582ada ("crypto: ccp - reduce stack usage in ccp_run_aes_gcm_cmd") Signed-off-by: Ella Ma <alansnape3058@gmail.com> Acked-by: Tom Lendacky <thomas.lendacky@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions