Received: by 10.223.176.46 with SMTP id f43csp3130902wra; Mon, 22 Jan 2018 08:53:37 -0800 (PST) X-Google-Smtp-Source: AH8x224VVCtD6pROSws6FttAJBHRv5sQqRetIns0xiKnEkNd0009EOOKgT6ZMokxCoUP9yEnXBNq X-Received: by 10.36.69.23 with SMTP id y23mr8942420ita.50.1516640017751; Mon, 22 Jan 2018 08:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516640017; cv=none; d=google.com; s=arc-20160816; b=iSEfadaXYZ0pMlEKZI7FSA0E4dgnPwPjXf/K/GmaE1oxKOfICaZuljmghrd6owm7QT Ylg/hfWJ2h7ssBpG5B2evX7VshOjjlCRmZSp/CN+6jV+NzE3xzbTPAJtixtOan3MsQ7Y pxbnKzpBB2czAygNZsSdlwZ6ceBqWz+YFKUP7IU1je3g+y7i7qagBs2idqaweDOeOE1X 4pJ1LcGXBF88vKQwJVDZfZ1kaWW17Db789h3w7pFidsDGnZ98lubS5ysvjsfwUVKGe1E dcbfNinnu7GBX0wSLnq4Z4VmGE2cTOLmyR7gt227ZjL1O+IQhW/vNutKu3u4ZFjfKSTq oyHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=wU1QPMTbLqlDX7mT/cJ4PLua11uegyF/GzUp7I4Hf44=; b=NR/5jO9EMM6Qh2EOLoto3Gn4b4wwmXY5L+rSGBCpuvE/DZxZUB85atUeV1RT11jpAE Ae1VdWb8X9KoR55dox+hL9ZEPhnmCnKEfadfJCavEq83Z9Tf1EoMqOvHpd9Gm9E3c//E OyGFsco1iLYA00F5Z9xRCi+Y6cdZJDwUiFOhnwDjrVNYMCReAncn6KG0fwLdO8iXwM1Y JvKI8C59JvLw9J2b/5ePPPfiu15KcuJNqKzWhNr25s3G5teH0eS2dDURWsi489U1wwUn mBiJGbZZwnnhJXeHGz+Kp/zH4cf2JshuAHI9cBWb+XG8MCd4VpFMmOPLS7c50PdWwbwl 142g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=OCcq8zZf; dkim=pass header.i=@codeaurora.org header.s=default header.b=OCcq8zZf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y90si15825754ioe.243.2018.01.22.08.53.23; Mon, 22 Jan 2018 08:53:37 -0800 (PST) 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=@codeaurora.org header.s=default header.b=OCcq8zZf; dkim=pass header.i=@codeaurora.org header.s=default header.b=OCcq8zZf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751178AbeAVQxA (ORCPT + 99 others); Mon, 22 Jan 2018 11:53:00 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:57694 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbeAVQw7 (ORCPT ); Mon, 22 Jan 2018 11:52:59 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C42F06081E; Mon, 22 Jan 2018 16:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516639978; bh=JX5HijIKYvZoDiSPqracOka6kTiJIoT8Lki/Ru9TzSY=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=OCcq8zZf/mgNbXFnPMqKlG5yO2Y1QPEBb74CH4IZ29RZu6BS45GyvABoUrsrrhEZY 93VPCJQIBdUJjo8xEzt/BsXtmWxUSB70QAPq6/sslCEjj2fgDsWlohdK59M1C3TcMz o8ERz3Ra2sU4bxkS1H3BRBL3jomdmuTFTuw/516k= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lmark-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lmark@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 15A7A60328; Mon, 22 Jan 2018 16:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516639978; bh=JX5HijIKYvZoDiSPqracOka6kTiJIoT8Lki/Ru9TzSY=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=OCcq8zZf/mgNbXFnPMqKlG5yO2Y1QPEBb74CH4IZ29RZu6BS45GyvABoUrsrrhEZY 93VPCJQIBdUJjo8xEzt/BsXtmWxUSB70QAPq6/sslCEjj2fgDsWlohdK59M1C3TcMz o8ERz3Ra2sU4bxkS1H3BRBL3jomdmuTFTuw/516k= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 15A7A60328 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=lmark@codeaurora.org Date: Mon, 22 Jan 2018 08:52:57 -0800 (PST) From: Liam Mark X-X-Sender: lmark@lmark-linux.qualcomm.com To: Greg KH cc: Laura Abbott , Sumit Semwal , linaro-mm-sig@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: android: ion: Zero CMA allocated memory In-Reply-To: <20180120080008.GA20172@kroah.com> Message-ID: References: <20180120080008.GA20172@kroah.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 20 Jan 2018, Greg KH wrote: > On Fri, Jan 19, 2018 at 11:16:47AM -0800, Liam Mark wrote: > > Since the CMA API is now used directly the allocated memory is no longer > > automatically zeroed. > > > > Explicitly zero CMA allocated memory to ensure that no data is exposed > > to userspace. > > How far back does this patch need to be ported? What is the git commit > id that caused this change to be needed? Please add it as a "Fixes:" > tag to the patch. > It goes back to 204f672255c2 ("ion: Use CMA APIs directly"), I will update the change. > > > > Change-Id: I08e143707a0d31610821a7f16826c262bf3c1999 > > I'm guessing you didn't run scripts/checkpatch.pl on this patch :( > > Please fix up and resend. Thanks, I will clean it up. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project