Daniil Dulov 6ea38e2aeb
afs: Increase buffer size in afs_update_volume_status()
The max length of volume->vid value is 20 characters.
So increase idbuf[] size up to 24 to avoid overflow.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

[DH: Actually, it's 20 + NUL, so increase it to 24 and use snprintf()]

Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: Daniil Dulov <d.dulov@aladdin.ru>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20240211150442.3416-1-d.dulov@aladdin.ru/ # v1
Link: https://lore.kernel.org/r/20240212083347.10742-1-d.dulov@aladdin.ru/ # v2
Link: https://lore.kernel.org/r/20240219143906.138346-3-dhowells@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2024-02-20 09:51:21 +01:00
..
2023-12-24 15:22:53 +00:00
2024-01-19 09:10:23 -08:00
2023-01-11 06:52:43 -05:00
2024-01-01 16:37:27 +00:00
2024-01-01 16:37:27 +00:00
2024-01-19 09:10:23 -08:00
2024-02-20 09:51:21 +01:00
2023-12-24 15:22:53 +00:00
2022-06-29 08:51:06 -04:00
2024-01-01 16:37:27 +00:00
2024-02-20 09:51:21 +01:00
2024-01-19 09:10:23 -08:00
2024-01-19 09:10:23 -08:00