[{"id":1768915,"web_url":"http://patchwork.ozlabs.org/comment/1768915/","msgid":"<c76f72fc-21ed-62d0-014e-8509c0374f96@oracle.com>","list_archive_url":null,"date":"2017-09-15T01:30:28","subject":"Re: [PATCH v8 10/11] arm64/kasan: explicitly zero kasan shadow\n\tmemory","submitter":{"id":71010,"url":"http://patchwork.ozlabs.org/api/people/71010/","name":"Pavel Tatashin","email":"pasha.tatashin@oracle.com"},"content":"Hi Mark,\n\nThank you for looking at this. We can't do this because page table is \nnot set until cpu_replace_ttbr1() is called. So, we can't do memset() on \nthis memory until then.\n\nPasha","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"Ti6qMCUB\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xtdDP2fWRz9t2V\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tFri, 15 Sep 2017 11:32:05 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsfU9-0005qe-N7; Fri, 15 Sep 2017 01:32:01 +0000","from aserp1040.oracle.com ([141.146.126.69])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsfU1-0005ki-86 for linux-arm-kernel@lists.infradead.org;\n\tFri, 15 Sep 2017 01:31:59 +0000","from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])\n\tby aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with\n\tESMTP id v8F1UaB6029369\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Fri, 15 Sep 2017 01:30:37 GMT","from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])\n\tby userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id\n\tv8F1UYvw019410\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Fri, 15 Sep 2017 01:30:35 GMT","from ubhmp0020.oracle.com (ubhmp0020.oracle.com [156.151.24.73])\n\tby aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v8F1UTeY011766; \n\tFri, 15 Sep 2017 01:30:29 GMT","from [172.20.162.102] (/12.145.98.253)\n\tby default (Oracle Beehive Gateway v4.0)\n\twith ESMTP ; Fri, 15 Sep 2017 01:30:28 +0000"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:\n\tContent-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive:\n\tList-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From:\n\tReferences:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\tbh=Vz5qLotkZgbHkywuoG0Ow34IYzmh3wVyRCTGwUIo6gw=;\n\tb=Ti6qMCUBFyBWjkiyse6f679To\n\t6tHI25vEy1rqY3sD5WufRzDQn3Qii5ScBP4qYEn2woPbfRDXz63yZvvGbL2DaoYsO/SFk/EABNoLS\n\tnFHK2nYwS9M4sRM7j1rDvOE+FshC3KwLxw8K8RBrN7XaEWat38CfvswF9SU0erpEG0GW6ir0uNdue\n\tbBKewmEY/O+i632Mbsoyj6EKtqTWjEI4F1v4PvFQTdtiO7UdjqonIxWEY2u63xrxqBDbIZqm7xNDm\n\t5cnRtqBplJehAhlSqsZWMLQ6osx4EvmGVT1lDwv7mrtp45nJIqde9HE5VJ2oz/ICOwU+gosTiA/Nd\n\t82VK13OJg==;","Subject":"Re: [PATCH v8 10/11] arm64/kasan: explicitly zero kasan shadow\n\tmemory","To":"Mark Rutland <mark.rutland@arm.com>","References":"<20170914223517.8242-1-pasha.tatashin@oracle.com>\n\t<20170914223517.8242-11-pasha.tatashin@oracle.com>\n\t<20170915011035.GA6936@remoulade>","From":"Pavel Tatashin <pasha.tatashin@oracle.com>","Message-ID":"<c76f72fc-21ed-62d0-014e-8509c0374f96@oracle.com>","Date":"Thu, 14 Sep 2017 21:30:28 -0400","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170915011035.GA6936@remoulade>","Content-Language":"en-US","X-Source-IP":"userv0021.oracle.com [156.151.31.71]","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170914_183157_975810_1C7A07B5 ","X-CRM114-Status":"UNSURE (   6.30  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-4.2 (----)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-4.2 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\n\tmedium trust [141.146.126.69 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-0.0 RCVD_IN_MSPIKE_H4      RBL: Very Good reputation (+4)\n\t[141.146.126.69 listed in wl.mailspike.net]\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"linux-s390@vger.kernel.org, ard.biesheuvel@linaro.org,\n\tmgorman@techsingularity.net, sam@ravnborg.org, borntraeger@de.ibm.com,\n\twill.deacon@arm.com, x86@kernel.org, heiko.carstens@de.ibm.com,\n\tlinux-kernel@vger.kernel.org, kasan-dev@googlegroups.com,\n\tmhocko@kernel.org, \n\tlinux-mm@kvack.org, Steven.Sistare@oracle.com, willy@infradead.org,\n\tcatalin.marinas@arm.com, sparclinux@vger.kernel.org,\n\tbob.picco@oracle.com, \n\tdaniel.m.jordan@oracle.com, linuxppc-dev@lists.ozlabs.org,\n\tdavem@davemloft.net, linux-arm-kernel@lists.infradead.org","Content-Transfer-Encoding":"7bit","Content-Type":"text/plain; charset=\"us-ascii\"; Format=\"flowed\"","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1769438,"web_url":"http://patchwork.ozlabs.org/comment/1769438/","msgid":"<20170915203852.GA10749@remoulade>","list_archive_url":null,"date":"2017-09-15T20:38:53","subject":"Re: [PATCH v8 10/11] arm64/kasan: explicitly zero kasan shadow\n\tmemory","submitter":{"id":8806,"url":"http://patchwork.ozlabs.org/api/people/8806/","name":"Mark Rutland","email":"mark.rutland@arm.com"},"content":"On Thu, Sep 14, 2017 at 09:30:28PM -0400, Pavel Tatashin wrote:\n> Hi Mark,\n> \n> Thank you for looking at this. We can't do this because page table is not\n> set until cpu_replace_ttbr1() is called. So, we can't do memset() on this\n> memory until then.\n\nI see. Sorry, I had missed that we were on the temporary tables at this point\nin time.\n\nI'm still not keen on duplicating the iteration. Can we split the vmemmap code\nso that we have a variant that takes a GFP? \n\nThat way we could explicitly pass __GFP_ZERO for those cases where we want a\nzeroed page, and are happy to pay the cost of initialization.\n\nThanks\nMark.","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"K5AxuoY3\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xv6hf1S3Fz9s83\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 06:39:45 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsxOl-0005vE-6p; Fri, 15 Sep 2017 20:39:39 +0000","from foss.arm.com ([217.140.101.70])\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsxOh-0005rQ-Gv for linux-arm-kernel@lists.infradead.org;\n\tFri, 15 Sep 2017 20:39:36 +0000","from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 44FEB15A2;\n\tFri, 15 Sep 2017 13:39:14 -0700 (PDT)","from remoulade (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id\n\tAD80B3F3E1; Fri, 15 Sep 2017 13:39:13 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=5EkurJb8D/XrDaJro7hqycVzejPBPpVnKs4y1xNN1c0=;\n\tb=K5AxuoY3eqY67i\n\t2siQb6EnPD2nKFbHNxEbI6XEJklZt+GCKcxV+AwEJ7VEgCqHweJbroHfa71IQRGlD6EBs/1a7maDY\n\tnd2u5bQqNTmzeR8rthQ2khli9+8MBHl11g9ThBnvZccwXhRL/cXMecbPCbt7DRFLVcnXqXxK9MSAC\n\tA/YiAI1PL+Cm+ISjF5o8qFfXwySWbLrmnUY9RE2L4gLXAZxe0E+iZ2U7nkMOCva4oMo5e6tKjdsgr\n\t5u7jMsSwAnGXOIzBNRD+Yym7mTzwmVq/b7fsPM734NVpBNK+33F9mMPMym2Nv5q65AJyUkTqcPx6L\n\tjoGucybbFwvns7LXfLrw==;","Date":"Fri, 15 Sep 2017 21:38:53 +0100","From":"Mark Rutland <mark.rutland@arm.com>","To":"Pavel Tatashin <pasha.tatashin@oracle.com>","Subject":"Re: [PATCH v8 10/11] arm64/kasan: explicitly zero kasan shadow\n\tmemory","Message-ID":"<20170915203852.GA10749@remoulade>","References":"<20170914223517.8242-1-pasha.tatashin@oracle.com>\n\t<20170914223517.8242-11-pasha.tatashin@oracle.com>\n\t<20170915011035.GA6936@remoulade>\n\t<c76f72fc-21ed-62d0-014e-8509c0374f96@oracle.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<c76f72fc-21ed-62d0-014e-8509c0374f96@oracle.com>","User-Agent":"Mutt/1.5.24 (2015-08-30)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170915_133935_576505_0D346A49 ","X-CRM114-Status":"UNSURE (   8.75  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-6.9 (------)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-6.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [217.140.101.70 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"linux-s390@vger.kernel.org, ard.biesheuvel@linaro.org,\n\tmgorman@techsingularity.net, sam@ravnborg.org, borntraeger@de.ibm.com,\n\twill.deacon@arm.com, x86@kernel.org, heiko.carstens@de.ibm.com,\n\tlinux-kernel@vger.kernel.org, kasan-dev@googlegroups.com,\n\tmhocko@kernel.org, \n\tlinux-mm@kvack.org, Steven.Sistare@oracle.com, willy@infradead.org,\n\tcatalin.marinas@arm.com, sparclinux@vger.kernel.org,\n\tbob.picco@oracle.com, \n\tdaniel.m.jordan@oracle.com, linuxppc-dev@lists.ozlabs.org,\n\tdavem@davemloft.net, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1769455,"web_url":"http://patchwork.ozlabs.org/comment/1769455/","msgid":"<bff836ec-3922-1783-6cb4-94d1be92544b@oracle.com>","list_archive_url":null,"date":"2017-09-15T21:20:59","subject":"Re: [PATCH v8 10/11] arm64/kasan: explicitly zero kasan shadow\n\tmemory","submitter":{"id":71010,"url":"http://patchwork.ozlabs.org/api/people/71010/","name":"Pavel Tatashin","email":"pasha.tatashin@oracle.com"},"content":"Hi Mark,\n\nI had this option  back upto version 3, where zero flag was passed into \nvmemmap_alloc_block(), but I was asked to remove it, because it required \ntoo many changes in other places. So, the current approach is cleaner, \nbut the idea is that kasan should use its own version of \nvmemmap_populate() for both x86 and ARM, but I think it is outside of \nthe scope of this work.\n\nSee this comment from Ard Biesheuvel:\nhttps://lkml.org/lkml/2017/8/3/948\n\n\"\nKASAN uses vmemmap_populate as a convenience: kasan has nothing to do\nwith vmemmap, but the function already existed and happened to do what\nKASAN requires.\n\nGiven that that will no longer be the case, it would be far better to\nstop using vmemmap_populate altogether, and clone it into a KASAN\nspecific version (with an appropriate name) with the zeroing folded\ninto it.\n\"\n\nIf you think I should add these function in this project, than sure I \ncan send a new version with kasanmap_populate() functions.\n\nThank you,\nPasha\n\nOn 09/15/2017 04:38 PM, Mark Rutland wrote:\n> On Thu, Sep 14, 2017 at 09:30:28PM -0400, Pavel Tatashin wrote:\n>> Hi Mark, Thank you for looking at this. We can't do this because page \n>> table is not set until cpu_replace_ttbr1() is called. So, we can't do \n>> memset() on this memory until then. \n> I see. Sorry, I had missed that we were on the temporary tables at \n> this point in time. I'm still not keen on duplicating the iteration. \n> Can we split the vmemmap code so that we have a variant that takes a \n> GFP? That way we could explicitly pass __GFP_ZERO for those cases \n> where we want a zeroed page, and are happy to pay the cost of \n> initialization. Thanks Mark.","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"fH+B9L0A\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xv7dW5503z9ryQ\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 07:22:07 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsy3o-00086t-En; Fri, 15 Sep 2017 21:22:04 +0000","from userp1040.oracle.com ([156.151.31.81])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsy3k-000835-AL for linux-arm-kernel@lists.infradead.org;\n\tFri, 15 Sep 2017 21:22:02 +0000","from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])\n\tby userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with\n\tESMTP id v8FLKv5L021779\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Fri, 15 Sep 2017 21:20:57 GMT","from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72])\n\tby userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v8FLKvNN011371\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\n\tverify=OK); Fri, 15 Sep 2017 21:20:57 GMT","from ubhmp0015.oracle.com (ubhmp0015.oracle.com [156.151.24.68])\n\tby userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v8FLKtVp021692; \n\tFri, 15 Sep 2017 21:20:56 GMT","from [172.20.162.102] (/12.145.98.253)\n\tby default (Oracle Beehive Gateway v4.0)\n\twith ESMTP ; Fri, 15 Sep 2017 21:20:55 +0000"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:\n\tContent-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive:\n\tList-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From:\n\tReferences:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;\n\tbh=OIf2Jxm0gg4seyoP+SHXCaZPfynvfAv0DVOdf0RyQUc=;\n\tb=fH+B9L0A1H5bIZEat5fochaSk\n\tERsLureRaLIx7kF9uxdfRbA5tl+grCWgVga/WWZDJ96y6MTTYLTKE8Z1ZLdPsb8+WXM4U/fO+SAaT\n\tXIco4Zqdf/oHMhwZQyJO94Tfp7P42PstqQ1Xxwc1/24dUSZlmNtUc9tnxNQhdF2cdyUZp7KfcSiiL\n\tha8Xkcn7b9b4g7lEot/yIT7ZEfekW8F+IDjM8rCOdjvE7PqtDeXlw5ygV07hwmXsNZiWF3YrzWoE2\n\tYr+gbxatzlEDtbQPNBpi/WlKCp3V2vmJzQ2UgGPCZdKc8VWpGvyECbgiq2TnYACmrp2s1UQiN0MjH\n\tZ1HPD9Lkw==;","Subject":"Re: [PATCH v8 10/11] arm64/kasan: explicitly zero kasan shadow\n\tmemory","To":"Mark Rutland <mark.rutland@arm.com>","References":"<20170914223517.8242-1-pasha.tatashin@oracle.com>\n\t<20170914223517.8242-11-pasha.tatashin@oracle.com>\n\t<20170915011035.GA6936@remoulade>\n\t<c76f72fc-21ed-62d0-014e-8509c0374f96@oracle.com>\n\t<20170915203852.GA10749@remoulade>","From":"Pavel Tatashin <pasha.tatashin@oracle.com>","Message-ID":"<bff836ec-3922-1783-6cb4-94d1be92544b@oracle.com>","Date":"Fri, 15 Sep 2017 17:20:59 -0400","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170915203852.GA10749@remoulade>","Content-Language":"en-US","X-Source-IP":"userv0022.oracle.com [156.151.31.74]","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170915_142200_443261_ADB37AD3 ","X-CRM114-Status":"GOOD (  15.82  )","X-Spam-Score":"-7.0 (-------)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-7.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\n\tmedium trust [156.151.31.81 listed in list.dnswl.org]\n\t-2.8 RCVD_IN_MSPIKE_H2      RBL: Average reputation (+2)\n\t[156.151.31.81 listed in wl.mailspike.net]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"linux-s390@vger.kernel.org, ard.biesheuvel@linaro.org,\n\tmgorman@techsingularity.net, sam@ravnborg.org, borntraeger@de.ibm.com,\n\twill.deacon@arm.com, x86@kernel.org, heiko.carstens@de.ibm.com,\n\tlinux-kernel@vger.kernel.org, kasan-dev@googlegroups.com,\n\tmhocko@kernel.org, \n\tlinux-mm@kvack.org, Steven.Sistare@oracle.com, willy@infradead.org,\n\tcatalin.marinas@arm.com, sparclinux@vger.kernel.org,\n\tbob.picco@oracle.com, \n\tdaniel.m.jordan@oracle.com, linuxppc-dev@lists.ozlabs.org,\n\tdavem@davemloft.net, linux-arm-kernel@lists.infradead.org","Content-Transfer-Encoding":"base64","Content-Type":"text/plain; charset=\"utf-8\"; Format=\"flowed\"","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}},{"id":1769487,"web_url":"http://patchwork.ozlabs.org/comment/1769487/","msgid":"<20170915215147.GA11849@remoulade>","list_archive_url":null,"date":"2017-09-15T21:51:48","subject":"Re: [PATCH v8 10/11] arm64/kasan: explicitly zero kasan shadow\n\tmemory","submitter":{"id":8806,"url":"http://patchwork.ozlabs.org/api/people/8806/","name":"Mark Rutland","email":"mark.rutland@arm.com"},"content":"On Fri, Sep 15, 2017 at 05:20:59PM -0400, Pavel Tatashin wrote:\n> Hi Mark,\n> \n> I had this option  back upto version 3, where zero flag was passed into\n> vmemmap_alloc_block(), but I was asked to remove it, because it required too\n> many changes in other places.\n\nOk. Sorry for bringing back a point that had already been covered.\n\n> So, the current approach is cleaner, but the idea is that kasan should use\n> its own version of vmemmap_populate() for both x86 and ARM, but I think it is\n> outside of the scope of this work.\n\nI appreciate that this is unrelated to your ultimate goal, and that this is\nsomewhat frustrating given the KASAN code is arguably abusing the\nvmemmap_populate() interface.\n\nHowever, I do think we need to migrate the KASAN code to a proper interface\nimmediately, rather than making it worse in the interim.\n\n> If you think I should add these function in this project, than sure I can\n> send a new version with kasanmap_populate() functions.\n\nI would very much appreciate if you could send a version with a\nkasan_map_populate() interface. I'm more than happy to review/test that portion\nof the series, or to help if there's some problem which makes that difficult.\n\nThanks,\nMark.","headers":{"Return-Path":"<linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming-imx@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-imx@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.infradead.org\n\t(client-ip=65.50.211.133; helo=bombadil.infradead.org;\n\tenvelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org\n\theader.b=\"JIm7BfsZ\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xv8mZ3kmyz9sNr\n\tfor <incoming-imx@patchwork.ozlabs.org>;\n\tSat, 16 Sep 2017 08:13:18 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsyrL-0007bi-Om; Fri, 15 Sep 2017 22:13:15 +0000","from foss.arm.com ([217.140.101.70])\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dsyrH-0007XE-VJ for linux-arm-kernel@lists.infradead.org;\n\tFri, 15 Sep 2017 22:13:13 +0000","from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249])\n\tby usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 45BB480D;\n\tFri, 15 Sep 2017 15:12:51 -0700 (PDT)","from remoulade (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70])\n\tby usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id\n\tA03203F483; Fri, 15 Sep 2017 15:12:50 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:\n\tMessage-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=OvgPKL9TqNZWLiWfyPsnFfgpxO2Y0E42dAL4t7CdD8E=;\n\tb=JIm7BfsZzGGJUv\n\trd8956pp2JROua/KwUNZHbscipUmyiEqSKP7SKcgkZmucBcUsh306rdvrzeZ3Wjq/9IOI3SXVOMVu\n\trYvOmm/AZ8y/gJfqBQ+RVORF2ppfdrV6+trfA9wLbSPStmCGxehKmb/cvIWW9qPW/ragfdUjauKHQ\n\tuaYbJKyrJZLAiSqJ+d3z4jXNKkkVjP2lstSzZNYck4HFyUeyjApcaquf0FT7v/YAmwAAuhWF1dd4Z\n\tKm9c1IY4KVwN5Zp7m6SxH/2hygbdk/rj3yCXh+H8mcof6VF0/QbddJKm39EMrz+kZKTAhVfixCExD\n\t5LTkhlGegD7GiBOUgWwQ==;","Date":"Fri, 15 Sep 2017 22:51:48 +0100","From":"Mark Rutland <mark.rutland@arm.com>","To":"Pavel Tatashin <pasha.tatashin@oracle.com>","Subject":"Re: [PATCH v8 10/11] arm64/kasan: explicitly zero kasan shadow\n\tmemory","Message-ID":"<20170915215147.GA11849@remoulade>","References":"<20170914223517.8242-1-pasha.tatashin@oracle.com>\n\t<20170914223517.8242-11-pasha.tatashin@oracle.com>\n\t<20170915011035.GA6936@remoulade>\n\t<c76f72fc-21ed-62d0-014e-8509c0374f96@oracle.com>\n\t<20170915203852.GA10749@remoulade>\n\t<bff836ec-3922-1783-6cb4-94d1be92544b@oracle.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<bff836ec-3922-1783-6cb4-94d1be92544b@oracle.com>","User-Agent":"Mutt/1.5.24 (2015-08-30)","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170915_151312_020888_A916D866 ","X-CRM114-Status":"GOOD (  12.44  )","X-Spam-Score":"-6.9 (------)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-6.9 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/,\n\thigh trust [217.140.101.70 listed in list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t-0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay\n\tdomain\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]","X-BeenThere":"linux-arm-kernel@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-arm-kernel/>","List-Post":"<mailto:linux-arm-kernel@lists.infradead.org>","List-Help":"<mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,\n\t<mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>","Cc":"linux-s390@vger.kernel.org, ard.biesheuvel@linaro.org,\n\tmgorman@techsingularity.net, sam@ravnborg.org, borntraeger@de.ibm.com,\n\twill.deacon@arm.com, x86@kernel.org, heiko.carstens@de.ibm.com,\n\tlinux-kernel@vger.kernel.org, kasan-dev@googlegroups.com,\n\tmhocko@kernel.org, \n\tlinux-mm@kvack.org, Steven.Sistare@oracle.com, willy@infradead.org,\n\tcatalin.marinas@arm.com, sparclinux@vger.kernel.org,\n\tbob.picco@oracle.com, \n\tdaniel.m.jordan@oracle.com, linuxppc-dev@lists.ozlabs.org,\n\tdavem@davemloft.net, linux-arm-kernel@lists.infradead.org","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Sender":"\"linux-arm-kernel\" <linux-arm-kernel-bounces@lists.infradead.org>","Errors-To":"linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org","List-Id":"linux-imx-kernel.lists.patchwork.ozlabs.org"}}]