From: sashiko-bot@kernel.org
Cc: linux-security-module@vger.kernel.org
Subject: Re: [PATCH] apparmor: don't take chroot root refs in d_namespace_path()
Date: Tue, 01 Dec 2026 15:34:20 +0000 [thread overview]
Message-ID: <sashiko-outbox-243579@kernel.org> (raw)
In-Reply-To: <20261201-apparmor-chroot-rel-v1-1-f075c3d7db40@gmail.com>
> From: Arun Iyengar <aiyengar1990@gmail.com>
>
> The unix peer checks call aa_path_perm() under unix_state_lock().
> For a chroot_relative profile, d_namespace_path() then does
> get_fs_root() and path_put(), and dput() may sleep.
>
> Snapshot the root under RCU and fs->seq, as d_path() does.
> __d_path() only compares against the root.
>
> Fixes: c05e705812d1 ("apparmor: add fine grained af_unix mediation")
> Cc: stable@vger.kernel.org
> Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-apparmor-chroot-rel-v1-1-f075c3d7db40@gmail.com?part=1
prev parent reply other threads:[~2026-12-01 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 15:27 [PATCH] apparmor: don't take chroot root refs in d_namespace_path() Arun Iyengar
2026-12-01 15:27 ` Arun Iyengar via B4 Relay
2026-12-01 15:34 ` sashiko-bot [this message]
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=sashiko-outbox-243579@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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.