diff options
| author | David Laight <david.laight.linux@gmail.com> | 2026-06-06 23:26:03 +0300 |
|---|---|---|
| committer | Jarkko Sakkinen <jarkko@kernel.org> | 2026-06-15 15:19:13 +0300 |
| commit | 44b9597fea4b4d6d79d8b70a297ea425e05543c1 (patch) | |
| tree | 6a5c2fc143d34af7dc05089e7a8725aefd5392e9 /include/linux/root_dev.h | |
| parent | c1201b37f666f6466ab1fd3a381c2b7a4b7e9fee (diff) | |
| download | linux-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
