From: Will Deacon <will@kernel.org>
To: joro@8bytes.org, robin.murphy@arm.com,
Jean-Philippe Brucker <jean-philippe@linaro.org>
Cc: catalin.marinas@arm.com, iommu@lists.linux-foundation.org,
kernel-team@android.com, Will Deacon <will@kernel.org>,
zhangfei.gao@linaro.org
Subject: Re: [PATCH v2] iommu/arm-smmu-v3-sva: Fix mm use-after-free
Date: Fri, 6 May 2022 17:07:02 +0100 [thread overview]
Message-ID: <165185074006.2781108.9309916587764564938.b4-ty@kernel.org> (raw)
In-Reply-To: <20220426130444.300556-1-jean-philippe@linaro.org>
On Tue, 26 Apr 2022 14:04:45 +0100, Jean-Philippe Brucker wrote:
> We currently call arm64_mm_context_put() without holding a reference to
> the mm, which can result in use-after-free. Call mmgrab()/mmdrop() to
> ensure the mm only gets freed after we unpinned the ASID.
>
>
Applied to will (for-joerg/arm-smmu/updates), thanks!
[1/1] iommu/arm-smmu-v3-sva: Fix mm use-after-free
https://git.kernel.org/will/c/cbd23144f766
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
prev parent reply other threads:[~2022-05-06 16:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-26 13:04 [PATCH v2] iommu/arm-smmu-v3-sva: Fix mm use-after-free Jean-Philippe Brucker
2022-04-26 13:52 ` Zhangfei Gao
2022-05-06 16:07 ` Will Deacon [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=165185074006.2781108.9309916587764564938.b4-ty@kernel.org \
--to=will@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=iommu@lists.linux-foundation.org \
--cc=jean-philippe@linaro.org \
--cc=joro@8bytes.org \
--cc=kernel-team@android.com \
--cc=robin.murphy@arm.com \
--cc=zhangfei.gao@linaro.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 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.