Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2955722imm; Thu, 24 May 2018 19:51:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo+k7XWOLg/r0otlS1VVIF1tm7hpKoZOjCYLE8lo6LveMCSUAIZ57BuN7tC7cZuM5Cl3yGD X-Received: by 2002:a63:7848:: with SMTP id t69-v6mr496925pgc.380.1527216669305; Thu, 24 May 2018 19:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527216669; cv=none; d=google.com; s=arc-20160816; b=JYIQHvVLWxcVnEN2telyZmMc2pnEsp86aMAG6VkFLByQOj58214Clje6xBjvkINA12 JkS0g6FypHm6sutv3lZrW8dx+rgFF7IzRLYzNMvM6xnlj55vt/jtJ6Ryi8fJaq7iky3j +P7R4lWzj7VY9aBpyPfsxLYJGunou3/lZWoOkxk7obksafBO7LcWqfwgCMR6spKoqoVZ mY3KK31HSB7cAy2BArxrNgk82sdj5/i5MEwwfQCYwKlm5Brg4TjulT09LVNVHcdzjJI0 zxe05pqhIF1YeyuKbOUd77fdLkAm64OEulvv5UqcU9bbKQMoUPDbHHJKCgQdiOrHkOSC InfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=m935tre+ZTwMb5cQ7Vb4Tns1VtcleMSx83PKoZeykrM=; b=Y5VM+H6HoJBwl7hi6n73hkDWyQ2U2RjbZrffhwuW5P+m2DnG383uDcsPvquqWVqEsB odk5cVukwQuz1ODJv7QesZp/uQ8ekdzvLDGQX6vlmR24PaZFD3AaG0gYNU2FIqbaL9RU Q+W1oIDpe05oOw8QMnTYfczU4wsIrnFalmWRl3qR2c/hWO315DfcVu6gC7C7NxgUNSIS DUvUCqRTSovrHIwGLKB3f2VDbw2K3jtbYhgqaRgPyyi5L3/cPPk/UgNg8k7lTA4u+GL0 OmcU/v9Kof+m4EYLawL4y4X7IGwK7ulIQThQ2rlNJ4ZUHS3fh17AZfOrs6E7978wyyzc F0hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ktCbrZn1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2-v6si21392504pfh.346.2018.05.24.19.50.54; Thu, 24 May 2018 19:51:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ktCbrZn1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964986AbeEYCiu (ORCPT + 99 others); Thu, 24 May 2018 22:38:50 -0400 Received: from lelnx193.ext.ti.com ([198.47.27.77]:20362 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935592AbeEYCim (ORCPT ); Thu, 24 May 2018 22:38:42 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w4P2blbY026175; Thu, 24 May 2018 21:37:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1527215867; bh=m935tre+ZTwMb5cQ7Vb4Tns1VtcleMSx83PKoZeykrM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=ktCbrZn1lC6e6W6LP0yvgYxp0PGcTcdRvcvSPnwZJ40wrmDjTODpuGlfYeUMrPZAS lgJ2sdMXqOtb5Nqlp+EkfaQ02f+2FMWvQ8Ifo+/gONYM5zIMbumontkInmtz1oRF28 CwjU+VQ7+dVOJpheAg3zPugvh4Y1EYun9uuo+sas= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4P2bkKT006959; Thu, 24 May 2018 21:37:46 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 24 May 2018 21:37:46 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 24 May 2018 21:37:46 -0500 Received: from [128.247.58.153] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w4P2bfkJ011901; Thu, 24 May 2018 21:37:43 -0500 Subject: Re: Nokia N900: refcount_t underflow, use after free To: Pavel Machek CC: Robin Murphy , , , Tony Lindgren , , kernel list , , , =?UTF-8?Q?Filip_Matijevi=c4=87?= , , , , , , , linux-arm-kernel , , Laurent Pinchart References: <20180308143053.GA17267@amd> <20180308165903.GM5799@atomide.com> <57c9f17b-fc9d-8506-4b5d-70ac216c9248@ti.com> <20180308185046.GA22796@amd> <1dfc05fe-1612-f5a5-b5f1-9038b3cecfe5@arm.com> <1643b74a-62ba-bea6-71c2-a2dd02430463@ti.com> <20180309221834.GA15476@amd> <20180310112634.GA31614@amd> <5aa1e2de-96d1-0e88-01ca-49df9ae25457@ti.com> <20180524110533.GA20599@amd> From: Suman Anna Message-ID: <09e30e44-4904-3bb3-c977-19ccd8d76a08@ti.com> Date: Thu, 24 May 2018 21:37:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180524110533.GA20599@amd> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/24/2018 06:05 AM, Pavel Machek wrote: > Hi! > >>>> >>>> OK, see if the following fixes the issue for you, only build tested. >>> >>> Word-wrapped, so I applied by hand. And yes, the oops at boot is >>> gone. Thanks! >> >> Sorry about that, have to check my mail settings. Anyway will post the >> patch again, glad that it fixed your issue. > > Any news here? AFAICT the bug creeped into v4.17-rcX in the > meantime... > The patch has been on linux-next for sometime now. regards Suman > Pavel > >> regards >> Suman >> >>> >>> (Camera still does not work in -next... kills system. Oh well. Lets >>> debug that some other day.) >>> >>>> 8< --------------------- >>>> >From bac9a48fb646dc51f2030d676a0dbe3298c3b134 Mon Sep 17 00:00:00 2001 >>>> From: Suman Anna >>>> Date: Fri, 9 Mar 2018 16:39:59 -0600 >>>> Subject: [PATCH] media: omap3isp: fix unbalanced dma_iommu_mapping >>>> >>>> The OMAP3 ISP driver manages its MMU mappings through the IOMMU-aware >>>> ARM DMA backend. The current code creates a dma_iommu_mapping and >>>> attaches this to the ISP device, but never detaches the mapping in >>>> either the probe failure paths or the driver remove path resulting >>>> in an unbalanced mapping refcount and a memory leak. Fix this properly. >>>> >>>> Reported-by: Pavel Machek >>>> Signed-off-by: Suman Anna >>> >>> Tested-by: Pavel Machek >>> Pavel >>> >