Files
Eric Biggers 3c6d4ffa0c fsverity: Fix silent truncation in bpf_get_fsverity_digest()
commit 7c68ed5c5a upstream.

bpf_get_fsverity_digest() silently truncates the digest if the provided
buffer is too small.  This is a footgun, and it doesn't match the
semantics of the equivalent UAPI (FS_IOC_MEASURE_VERITY).

Change it to return -EOVERFLOW instead, matching FS_IOC_MEASURE_VERITY.

Fixes: 67814c00de ("bpf, fsverity: Add kfunc bpf_get_fsverity_digest")
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Acked-by: Song Liu <song@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/bpf/20260803181232.14743-3-ebiggers@kernel.org
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-08-19 18:18:20 +02:00
..
…
2026-08-09 20:25:13 +02:00
…
…
2026-07-24 16:16:09 +02:00
2026-08-09 20:25:10 +02:00
2026-01-17 16:35:10 +01:00
2026-07-24 16:15:50 +02:00
…
…
2025-09-21 19:24:50 -04:00
2026-07-04 13:44:14 +02:00
…
…
2026-07-04 13:44:14 +02:00
…
…
…
2026-07-04 13:44:14 +02:00
…
2026-07-24 16:17:24 +02:00
2026-01-08 10:17:10 +01:00
2025-09-29 13:43:52 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…