diff options
| author | Mikulas Patocka <mpatocka@redhat.com> | 2026-07-09 21:36:01 +0200 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-07-10 14:42:05 +0200 |
| commit | 88dd117c92a142253fb7a17e791773902b3babc6 (patch) | |
| tree | 205cd7768ea1730196af4682f4d5afa9ab86e7d5 /lib/raid/raid6/git@git.tavy.me:linux-stable.git | |
| parent | e72b793ae440f6900fb17a4b8518c707b5cd3e17 (diff) | |
dm-verity: increase sprintf buffer size
The prefix "DM_VERITY_ERR_BLOCK_NR" is 22 chars. Add '=', one digit for
type, ',', up to 20 digits for a u64 block number, and a NUL terminator:
that's 46 bytes. The buffer is 42 bytes. For block numbers >= 16 decimal
digits (devices larger than ~16 EB with 4K blocks), snprintf silently
truncates the uevent environment variable.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Assisted-by: Claude:claude-opus-4.6
Fixes: 65ff5b7ddf05 ("dm verity: add error handling modes for corrupted blocks")
Cc: stable@vger.kernel.org
Diffstat (limited to 'lib/raid/raid6/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
