[lvc-project] [PATCH] tracing: Fix ignored return value of resize_buffer_duplicate_size()
Fedor Pchelkin
pchelkin at ispras.ru
Sun Oct 11 19:39:59 MSK 2026
On Mon, 28. Sep 18:26, Dmitry Kandybka wrote:
> When tr->allocated_snapshot is true, resize_buffer_duplicate_size() is
> called to update the snapshot buffer size. However, its return value was
> not checked. In case of a failed resize this could lead next snapshot
> being incomplete.
>
> Add resize_buffer_duplicate_size() result check and return error if
> resize fails.
>
> Compile tested only.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: 180e4e390978 ("tracing: Add snapshot refcount")
> Signed-off-by: Dmitry Kandybka <d.kandybka at gmail.com>
Патч неприменим к linxu-6.12-lvc [1]. Следует выслать применимую версию
только в список рассылки lvc-patches at linuxtesting.org, с [PATCH 6.12] в
теме письма.
[1]: https://git.linuxtesting.ru/pub/scm/linux/kernel/git/lvc/linux-stable.git/log/?h=linux-6.12-lvc
More information about the lvc-project
mailing list