projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
979f6de
)
crypto: api - Disallow identical driver names
author
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 7 Dec 2023 10:36:57 +0000
(18:36 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 15 Dec 2023 09:52:53 +0000
(17:52 +0800)
Disallow registration of two algorithms with identical driver names.
Cc: <stable@vger.kernel.org>
Reported-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c
patch
|
blob
|
history
diff --git
a/crypto/algapi.c
b/crypto/algapi.c
index 4fe95c44804733c5ff41c449dcfa31e87c044c79..85bc279b4233fa3ab55026ded7bf75d7ea392517 100644
(file)
--- a/
crypto/algapi.c
+++ b/
crypto/algapi.c
@@
-341,6
+341,7
@@
__crypto_register_alg(struct crypto_alg *alg, struct list_head *algs_to_put)
}
if (!strcmp(q->cra_driver_name, alg->cra_name) ||
+ !strcmp(q->cra_driver_name, alg->cra_driver_name) ||
!strcmp(q->cra_name, alg->cra_driver_name))
goto err;
}