[Devel] [PATCH hci-8.2] fs/pipe: use kvfree() for the buffer arrays of a resized pipe

Konstantin Khorenko khorenko at virtuozzo.com
Tue Dec 1 18:24:17 MSK 2026


Applying with these fixes on my side:
- Fixes: moved above the Jira URL, as in the vz commit template

On Tue, 1 Dec 2026 12:41:16 +0000, Vasileios Almpanis wrote:
> vmalloc(), and kfree() of a vmalloc address crashes the node. Host root
> hits it with a filled 1 GiB pipe shrunk to 512 MiB:

Not only host root: kvcalloc() tries kmalloc with __GFP_NORETRY first
for anything above a page and falls back to vmalloc when it fails. A
task in a Container near its memory limit can grow a pipe to 1 MiB,
fill it and shrink it, and get the same oops. Worth knowing when
deciding on a ReadyKernel patch; no change needed here.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list