[Devel] [PATCH hci-8.2] dm-ploop: fix a double fput of the delta file when ploop_add_delta() fails
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Nov 19 19:03:40 MSK 2026
Applying as is.
On Thu, 19 Nov 2026 02:07:58 +0100, Denis V. Lunev wrote:
> - deltas[level].file = file;
> deltas[level].mtfile = kcalloc(ploop->nkt_runners, sizeof(*file),
> GFP_KERNEL);
Separate patches, not needed for this one. I created a task for it:
1. The kcalloc() above sizes each mtfile slot as a whole struct file,
not as a pointer: sizeof(*deltas[level].mtfile) is meant. With
nr_cpu_ids runners that makes a large contiguous allocation, the
very kcalloc() whose failure this patch handles.
https://virtuozzo.atlassian.net/browse/VSTOR-156035
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list