From: Greg KH <gregkh@linuxfoundation.org>
To: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Cc: stable@vger.kernel.org, Will.Deacon@arm.com, Robin.Murphy@arm.com
Subject: Re: [PATCH v4.4.y] iommu/arm-smmu-v3: Don't free page table ops twice
Date: Wed, 10 Jan 2018 20:13:42 +0100 [thread overview]
Message-ID: <20180110191342.GA18619@kroah.com> (raw)
In-Reply-To: <20180110183711.16655-1-jean-philippe.brucker@arm.com>
On Wed, Jan 10, 2018 at 06:37:11PM +0000, Jean-Philippe Brucker wrote:
> commit 57d72e159b60456c8bb281736c02ddd3164037aa upstream.
>
> Kasan reports a double free when finalise_stage_fn fails: the io_pgtable
> ops are freed by arm_smmu_domain_finalise and then again by
> arm_smmu_domain_free. Prevent this by leaving pgtbl_ops empty on failure.
>
> Fixes: 48ec83bcbcf5 ("iommu/arm-smmu: Add initial driver support for ARM SMMUv3 devices")
> Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
> ---
>
> The whitespaces got corrupted last time, sorry about that. Let's hope
> this one works.
It worked, thanks, now queued up.
greg k-h
prev parent reply other threads:[~2018-01-10 19:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-07 8:35 FAILED: patch "[PATCH] iommu/arm-smmu-v3: Don't free page table ops twice" failed to apply to 4.4-stable tree gregkh
2018-01-08 14:56 ` Jean-Philippe Brucker
2018-01-10 16:30 ` gregkh
2018-01-10 18:37 ` [PATCH v4.4.y] iommu/arm-smmu-v3: Don't free page table ops twice Jean-Philippe Brucker
2018-01-10 19:13 ` Greg KH [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=20180110191342.GA18619@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=Robin.Murphy@arm.com \
--cc=Will.Deacon@arm.com \
--cc=jean-philippe.brucker@arm.com \
--cc=stable@vger.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 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.