From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>
Cc: devel@openvz.org, Artem Bulgakov <artem.bulgakov@virtuozzo.com>
Subject: Re: [Devel] [PATCH hci-8.2 2/2] dm-ploop: don't put a NULL bat page in ploop_free_piwb()
Date: Mon, 30 Nov 2026 12:58:11 +0100 [thread overview]
Message-ID: <179603989154.1034346.3093981360192573364.b4-review@b4> (raw)
In-Reply-To: <20261127-cbt-ploop-fixes-v1-2-d6559232b819@virtuozzo.com>
Applying with these fixes on my side:
- "If one of the allocations fails" -> "If the bat page allocation
fails".
On Fri, 27 Nov 2026 12:31:05 +0000, Vasileios Almpanis wrote:
> ploop_prepare_bat_update() allocates the bat page and the pio with
> GFP_ATOMIC. If one of the allocations fails, it calls ploop_free_piwb(),
> which calls put_page() on the bat page even if it is NULL.
A failed pio allocation alone does not oops: ploop_free_pio() ends in
mempool_free(), which ignores NULL. Only a NULL bat page does.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-30 12:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 12:31 [Devel] [PATCH hci-8.2 0/2] blk-cbt and dm-ploop: fix a host WARN and a NULL put_page Vasileios Almpanis
2026-11-27 12:31 ` [Devel] [PATCH hci-8.2 1/2] block/blk-cbt: don't WARN on an ABI version mismatch Vasileios Almpanis
2026-11-30 11:58 ` Konstantin Khorenko
2026-12-01 0:47 ` no-reply
2026-11-27 12:31 ` [Devel] [PATCH hci-8.2 2/2] dm-ploop: don't put a NULL bat page in ploop_free_piwb() Vasileios Almpanis
2026-11-30 11:58 ` Konstantin Khorenko [this message]
2026-12-01 0:48 ` no-reply
2026-11-30 11:58 ` [Devel] [PATCH hci-8.2 0/2] blk-cbt and dm-ploop: fix a host WARN and a NULL put_page Konstantin Khorenko
2026-11-30 11:58 ` Konstantin Khorenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179603989154.1034346.3093981360192573364.b4-review@b4 \
--to=khorenko@virtuozzo.com \
--cc=artem.bulgakov@virtuozzo.com \
--cc=devel@openvz.org \
--cc=vasileios.almpanis@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.