linux/drivers/crypto/marvell
Thorsten Blum eacda650a9 crypto: octeontx2 - Call strscpy() with correct size argument
[ Upstream commit 361fa7f813 ]

In otx2_cpt_dl_custom_egrp_create(), strscpy() is called with the length
of the source string rather than the size of the destination buffer.

This is fine as long as the destination buffer is larger than the source
string, but we should still use the destination buffer size instead to
call strscpy() as intended. And since 'tmp_buf' is a fixed-size buffer,
we can safely omit the size argument and let strscpy() infer it using
sizeof().

Fixes: d9d7749773 ("crypto: octeontx2 - add apis for custom engine groups")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 12:00:06 +02:00
..
cesa crypto: marvell/cesa - Fix engine load inaccuracy 2025-08-15 12:13:49 +02:00
octeontx crypto: octeontx - Remove unused declaration otx_cpt_callback() 2024-08-30 18:22:31 +08:00
octeontx2 crypto: octeontx2 - Call strscpy() with correct size argument 2025-10-15 12:00:06 +02:00
Kconfig crypto: octeontx* - Select CRYPTO_AUTHENC 2024-09-06 14:50:46 +08:00
Makefile crypto: marvell - add Marvell OcteonTX2 CPT PF driver 2021-01-22 14:58:02 +11:00