[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170424103905.GH7266@8bytes.org>
Date: Mon, 24 Apr 2017 12:39:05 +0200
From: Joerg Roedel <joro@...tes.org>
To: Pan Bian <bianpan201602@....com>
Cc: iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
Pan Bian <bianpan2016@....com>
Subject: Re: [PATCH 1/1] iommu/amd: fix incorrect error handling
On Sun, Apr 23, 2017 at 06:23:21PM +0800, Pan Bian wrote:
> From: Pan Bian <bianpan2016@....com>
>
> In function amd_iommu_bind_pasid(), the control flow jumps to label
> out_free when pasid_state->mm and mm is NULL. And mmput(mm) is called.
> In function mmput(mm), mm is referenced without validation. This will
> result in a NULL dereference bug. This patch fixes the bug.
>
> Signed-off-by: Pan Bian <bianpan2016@....com>
Applied, thanks.
Powered by blists - more mailing lists