lkml.org 
[lkml]   [2018]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 02/51] iommu/vt-d: Fix NULL pointer dereference in prq_event_thread()
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    [ Upstream commit 19ed3e2dd8549c1a34914e8dad01b64e7837645a ]

    When handling page request without pasid event, go to "no_pasid"
    branch instead of "bad_req". Otherwise, a NULL pointer deference
    will happen there.

    Cc: Ashok Raj <ashok.raj@intel.com>
    Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
    Cc: Sohil Mehta <sohil.mehta@intel.com>
    Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
    Fixes: a222a7f0bb6c9 'iommu/vt-d: Implement page request handling'
    Signed-off-by: Joerg Roedel <jroedel@suse.de>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/iommu/intel-svm.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
    index f846f0140a9d..7dc2f8d415b6 100644
    --- a/drivers/iommu/intel-svm.c
    +++ b/drivers/iommu/intel-svm.c
    @@ -558,7 +558,7 @@ static irqreturn_t prq_event_thread(int irq, void *d)
    pr_err("%s: Page request without PASID: %08llx %08llx\n",
    iommu->name, ((unsigned long long *)req)[0],
    ((unsigned long long *)req)[1]);
    - goto bad_req;
    + goto no_pasid;
    }

    if (!svm || svm->pasid != req->pasid) {
    --
    2.19.1


    \
     
     \ /
      Last update: 2018-12-11 16:49    [W:4.238 / U:0.228 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site