All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
	vladimir.riabchun@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 1/2] ms/ipc: create_ipc_ns: drop mqueue mount on sysctl setup failure
Date: Thu, 19 Nov 2026 02:00:44 +0000	[thread overview]
Message-ID: <010701a1f188ea71-405d5c35-bd82-45c8-be50-e56d2fd56d2d-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261119015346.1173347-2-eva.kurchatova@virtuozzo.com>

> From: Vlad Kulikov <vlad.kulikov.c@gmail.com>
> 
> If setup_mq_sysctls(ns) fails after mq_init_ns(ns) succeeds, the error
> path skipped releasing the internal kernel mqueue mount kept in
> ns->mq_mnt. That leaves the vfsmount/superblock referenced until final
> namespace teardown, i.e. a resource leak on this rare failure edge.
> 
> Unwind it by calling mntput(ns->mq_mnt) before dropping user_ns and
> freeing the IPC namespace. This mirrors the normal ordering used in
> free_ipc_ns().
> 
> Link: https://lkml.kernel.org/r/20251021181341.670297-1-vlad_kulikov_c@pm.me
> Signed-off-by: Vlad Kulikov <vlad_kulikov_c@pm.me>
> Reviewed-by: Jan Kara <jack@suse.cz>
> Cc: Aleksa Sarai <cyphar@cyphar.com>
> Cc: Christian Brauner <brauner@kernel.org>
> Cc: David Hildenbrand <david@redhat.com>
> Cc: Ma Wupeng <mawupeng1@huawei.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> (cherry picked from commit 7229d74e5e8c1f140529d405c88d4493e37ce4e3)
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-155528
> Feature: fix ms/ipc
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>

Sashiko has reviewed this patch and found no issues.

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119015346.1173347-1-eva.kurchatova@virtuozzo.com?part=1


_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

  reply	other threads:[~2026-11-19  2:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  1:52 [Devel] [PATCH hci-8.2 0/2] ms/ipc: backport mqueue mount leak fix Eva Kurchatova
2026-11-19  1:52 ` [Devel] [PATCH hci-8.2 1/2] ms/ipc: create_ipc_ns: drop mqueue mount on sysctl setup failure Eva Kurchatova
2026-11-19  2:00   ` no-reply [this message]
2026-11-19 17:06   ` Konstantin Khorenko
2026-11-19  1:52 ` [Devel] [PATCH hci-8.2 2/2] ms/ipc: drop the mqueue mount with kern_unmount() on " Eva Kurchatova
2026-11-19  1:58   ` no-reply
2026-11-19 17:06   ` Konstantin Khorenko
2026-11-19 17:06 ` [Devel] [PATCH hci-8.2 0/2] ms/ipc: backport mqueue mount leak fix Konstantin Khorenko
2026-11-19 17:06 ` 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=010701a1f188ea71-405d5c35-bd82-45c8-be50-e56d2fd56d2d-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=eva.kurchatova@virtuozzo.com \
    --cc=vladimir.riabchun@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.