Re: [PATCH] apparmor: fix race on NULL ctx->peer in update_sk_ctx()

From
Emanuele Rocca <hidden>
Date
2026-10-31 10:11:51
Reply to
sashiko-bot@kernel.org, 2026-10-29
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/ (local))
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. 
Thread (3 messages) 3 messages, 2 authors, 4d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help