Re: [PATCH] selinux: add comments to smp_wmb() calls in status.c

From: Paul Moore

Date: Wed May 27 2026 - 20:06:01 EST


On May 21, 2026 Oliwier Iwan <oliwieriwan@xxxxxxxxxxx> wrote:
>
> The seqlock pattern used in selinux_status_update_setenforce() and
> selinux_status_update_policyload() requires memory barriers to ensure
> correct ordering of the sequence counter updates relative to the data
> writes. Add comments to the smp_wmb() calls to make this ordering
> explicit and self-documenting.
>
> Signed-off-by: Oliwier Iwan <oliwieriwan@xxxxxxxxxxx>
> ---
> security/selinux/status.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)

Thank you for submitting a patch, but I don't believe the comments are
necessary.

--
paul-moore.com