summaryrefslogtreecommitdiff
path: root/include/linux/root_dev.h
diff options
context:
space:
mode:
authorDavid Laight <david.laight.linux@gmail.com>2026-06-06 23:26:03 +0300
committerJarkko Sakkinen <jarkko@kernel.org>2026-06-15 15:19:13 +0300
commit44b9597fea4b4d6d79d8b70a297ea425e05543c1 (patch)
tree6a5c2fc143d34af7dc05089e7a8725aefd5392e9 /include/linux/root_dev.h
parentc1201b37f666f6466ab1fd3a381c2b7a4b7e9fee (diff)
downloadlinux-44b9597fea4b4d6d79d8b70a297ea425e05543c1.tar.xz
keys: Replace strcpy(derived_buf, "AUTH_KEY") with strscpy(..., HASH_SIZE)
derived_buf is guaranteed to be HASH_SIZE - and it is more than enough. The strscpy() degenerates into an memcpy() (as did the strcpy()). Do the same for the associated "ENC_KEY" copy. Removes a possibly unbounded strcpy(). Signed-off-by: David Laight <david.laight.linux@gmail.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lore.kernel.org/r/20260606202633.5018-9-david.laight.linux@gmail.com Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'include/linux/root_dev.h')
0 files changed, 0 insertions, 0 deletions