From: Vasant Hegde <vasant.hegde@amd.com>
To: lirongqing <lirongqing@baidu.com>, Joerg Roedel <joro@8bytes.org>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
iommu@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] iommu/amd: RCU-protect iommu_ga_log_notifier
Date: Mon, 23 Nov 2026 14:03:26 +0530 [thread overview]
Message-ID: <5302a714-795c-4888-b0b8-bcccb8ad6890@amd.com> (raw)
In-Reply-To: <20261117023031.2124-1-lirongqing@baidu.com>
On 11/17/2026 8:00 AM, lirongqing wrote:
> From: Li RongQing <lirongqing@baidu.com>
>
> iommu_poll_ga_log() accesses iommu_ga_log_notifier without an RCU
> read-side critical section, so synchronize_rcu() in the unregister
> path does not wait for an in-flight notifier callback.
>
> Use rcu_assign_pointer() when updating the notifier and
> rcu_dereference() under rcu_read_lock() when invoking it. Load the
> pointer once so the NULL check and the call observe the same value.
Applied, thanks!
-Vasant
prev parent reply other threads:[~2026-11-23 8:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 2:30 lirongqing
2026-11-23 8:33 ` Vasant Hegde [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=5302a714-795c-4888-b0b8-bcccb8ad6890@amd.com \
--to=vasant.hegde@amd.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lirongqing@baidu.com \
--cc=robin.murphy@arm.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=will@kernel.org \
/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
all inboxes | Powered by JetHome®