Linux Security Modules development
 help / color / mirror / Atom feed
From: Emanuele Rocca <emanuele.rocca@arm.com>
To: "Maxime Bélair" <maxime.belair@canonical.com>,
	"John Johansen" <john.johansen@canonical.com>
Cc: linux-security-module@vger.kernel.org, apparmor@lists.ubuntu.com,
	Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [PATCH] apparmor: fix race on NULL ctx->peer in update_sk_ctx()
Date: Sat, 31 Oct 2026 11:11:43 +0100	[thread overview]
Message-ID: <auW-3_OXSxEP5U7c@arm.com> (raw)
In-Reply-To: <sashiko-outbox-189513@kernel.org>

On 2026-10-29 02:26, sashiko-bot@kernel.org wrote:
> Does this depend on the prerequisite patch referenced in the Link tag
> (https://lore.kernel.org/all/20260824155822.9214-1-maxime.belair@canonical.com/)
> that adds the NULL checks on ctx->peer under the socket lock?

It does, and Maxime's patch has already been merged into the apparmor
tree, as well as mainline:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4de32fd05ce9e63b492899215ea929e7d306cdab

The patch I'm proposing is still needed to fix the earlier race at the
beginning of update_sk_ctx. 

      reply	other threads:[~2026-10-31 10:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29 14:06 [PATCH] apparmor: fix race on NULL ctx->peer in update_sk_ctx() Emanuele Rocca
2026-10-29 14:26 ` sashiko-bot
2026-10-31 10:11   ` Emanuele Rocca [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=auW-3_OXSxEP5U7c@arm.com \
    --to=emanuele.rocca@arm.com \
    --cc=apparmor@lists.ubuntu.com \
    --cc=aurelien@aurel32.net \
    --cc=john.johansen@canonical.com \
    --cc=linux-security-module@vger.kernel.org \
    --cc=maxime.belair@canonical.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox