Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3012784ybl; Fri, 20 Dec 2019 02:27:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzuyxKY2+lguGJCEyR6LM50ctRrDqnSLz7w5OGqRopg4YsHPr3HbLWcxb2shFLvT73YyPDE X-Received: by 2002:a05:6830:1e5c:: with SMTP id e28mr14519586otj.293.1576837626905; Fri, 20 Dec 2019 02:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576837626; cv=none; d=google.com; s=arc-20160816; b=c7MZHejRPotgLUJvSPlcU5LjFxF3jwO+kn+US9XB+TDKhKBofBudo0HnTPC3MzHdPR qVDmwbyG71mMh09ZJPcKHNc1A+BfTO1OfK7hQetmwE1kI/3sBB/buegjiFFmUY6ilvyK aNHAaRIbq+meWBr20eSCvAg5rV6GMvQUbuLTCrvyGNkuS9O1D7lYmx9k7Fy49WyDw/ip CYG3toS6GTh3KvtKiSjNAbxlUHrK2kyCcTa3LuhnZoB1mB/1ckbhQjl232Rd0xxQw2Wb ql+Sa4zs+ifMWUftgBKNU+KuZ6bpYOolghWNJYMCHw72cd+6dpmtT9mYpoMTUs+R8c6h GLXw== 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:autocrypt:openpgp:from:references:cc:to:subject :ironport-sdr:dkim-signature; bh=cDQc1J7CEMUIu3LOm9MgdFXn0UjCxBtegk4YVp3Fvs4=; b=znnsflQCp2DfSgRxe1pJw1ol6Jwd84ZVRtv4FWx4TXPyjVWe3cSSCz1jD1jbdARVG9 ftJPiLAC9/9ud4PTM7bzan7ukvrvcFMmfWBS/08iAvulDhaOQGyX5hENxeTFAdIzqxY6 Nc6M472UPqZvyCw2HBCLdpyKjJlLPQI/sUMtzcyYsShUPk00Sg6Lw1J8wiu2dJeU5oA4 X6DXCIl5Jcf0qAMQLbHH3XMEkjVjfsvxVc/cLeQpUQ+ge1oS5c2sX+Bfinc60n7XOePy L54clJD35i+Kw3T8NaivN8kkFAe9iUW+KUmynG4zNM7wUV68rhRS5hEeVqYedaSotclI P22Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=Pf3HhNxh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si4548451otk.270.2019.12.20.02.26.54; Fri, 20 Dec 2019 02:27:06 -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=fail header.i=@citrix.com header.s=securemail header.b=Pf3HhNxh; 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=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727201AbfLTK0O (ORCPT + 99 others); Fri, 20 Dec 2019 05:26:14 -0500 Received: from esa2.hc3370-68.iphmx.com ([216.71.145.153]:8622 "EHLO esa2.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727167AbfLTK0O (ORCPT ); Fri, 20 Dec 2019 05:26:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1576837574; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=Cfr+soZ/DfkCNKDN3X6gkL30PXcjR62OkLkW3djeKu0=; b=Pf3HhNxhOxH5kBP3QZdIw3BIlnNbK2Gx8V92/cgtAerrqg72JX07ZlYI teElEOiHbfg/JpP1oJkhlr4xo3bshCWLvLpjkYLrAt19XWSSqrhlnRQ9v /E79txXM6M3H5xop8efHbUPgJNJSvjpLg0Vuvg5Urdq/kzN9a2WcDd536 M=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=sergey.dyasli@citrix.com; spf=Pass smtp.mailfrom=sergey.dyasli@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of sergey.dyasli@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="sergey.dyasli@citrix.com"; x-sender="sergey.dyasli@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of sergey.dyasli@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="sergey.dyasli@citrix.com"; x-sender="sergey.dyasli@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="sergey.dyasli@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: ygeX7qekbly+WJR7PauT6acqdlT4Bu5b+Hs5JEG2Sv3tc41I6Ub6YIbPIoUiFCSgibE6+JmIeM XGOwP2drPRcuC1FEMjSFz4aXP8JLvYjcUmqZlyOyyXd39HAFfNojLgkDrwTJk1h3b47816//s7 5ieOKMyZoJhi5L4vOIBONzLXj8X5OGln/+s5aMRrLZZa3mJ7728lX7v5FYqCU/JqPeN1psKELA 1114hhXKSdqSJEO5zL5ppDiYZ7WX3EQGRWxUiBuM6A4yPGtL6wJK87yvhE3fQ9ElRn4kmnMV+r rs4= X-SBRS: 2.7 X-MesageID: 9994545 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.69,335,1571716800"; d="scan'208";a="9994545" Subject: Re: [RFC PATCH 0/3] basic KASAN support for Xen PV domains To: Boris Ostrovsky CC: , , , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Juergen Gross , Stefano Stabellini , George Dunlap , Ross Lagerwall , "sergey.dyasli@citrix.com >> Sergey Dyasli" References: <20191217140804.27364-1-sergey.dyasli@citrix.com> <7301D02C-D33F-4205-BB32-C3E61015D26E@ORACLE.COM> From: Sergey Dyasli Openpgp: preference=signencrypt Autocrypt: addr=sergey.dyasli@citrix.com; keydata= mQINBFtMVHEBEADc/hZcLexrB6vGTdGqEUsYZkFGQh6Z1OO7bCtM1go1RugSMeq9tkFHQSOc 9c7W9NVQqLgn8eefikIHxgic6tGgKoIQKcPuSsnqGao2YabsTSSoeatvmO5HkR0xGaUd+M6j iqv3cD7/WL602NhphT4ucKXCz93w0TeoJ3gleLuILxmzg1gDhKtMdkZv6TngWpKgIMRfoyHQ jsVzPbTTjJl/a9Cw99vuhFuEJfzbLA80hCwhoPM+ZQGFDcG4c25GQGQFFatpbQUhNirWW5b1 r2yVOziSJsvfTLnyzEizCvU+r/Ek2Kh0eAsRFr35m2X+X3CfxKrZcePxzAf273p4nc3YIK9h cwa4ZpDksun0E2l0pIxg/pPBXTNbH+OX1I+BfWDZWlPiPxgkiKdgYPS2qv53dJ+k9x6HkuCy i61IcjXRtVgL5nPGakyOFQ+07S4HIJlw98a6NrptWOFkxDt38x87mSM7aSWp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JKvzUynR9E50F9hmd DOBJkyM3Z5imQ0RayEkRHhlhj7uECaojnUeewq4zjpAg2HTSMkdEzKRbdMEyXCdQXFnSCmUB 5yMIULuDbOODWo3EufExLjAKzIRWEKQ/JidLzO6hrhlQffsJ7MPTU+Hg7WxqWfn4zhuUcIQB SlkiRMalSiJITC2jG7oQRRh9tyNaDMkKzTbeFtHKRmUUAuhE0LBXP8Wc+5W7b3WOf2SO8JMR 4TqDZ0K06s66S5fOTW0h56iCCxTsAnRvM/tA4SERyRoFs/iTqJzboskZY0yKeWV4/IQxfOyC YwdU3//zANM1ZpqeE/8lnW/kx+fyzVyEioLSwkjDvdG++4GQ5r6PHQ7BbdEWhA== Message-ID: <4595107c-64aa-5139-c86e-f5bff5b3d87d@citrix.com> Date: Fri, 20 Dec 2019 10:26:09 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <7301D02C-D33F-4205-BB32-C3E61015D26E@ORACLE.COM> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/12/2019 18:06, Boris Ostrovsky wrote: > > >> On Dec 17, 2019, at 9:08 AM, Sergey Dyasli wrote: >> >> This series allows to boot and run Xen PV kernels (Dom0 and DomU) with >> CONFIG_KASAN=y. It has been used internally for some time now with good >> results for finding memory corruption issues in Dom0 kernel. >> >> Only Outline instrumentation is supported at the moment. >> >> Patch 1 is of RFC quality >> Patches 2-3 are independent and quite self-contained. > > > Don’t you need to initialize kasan before, for example, calling kasan_alloc_pages() in patch 2? Patch 1 is enough to correctly initialise PV Kasan. But without patch 2, lots of false positive out-of-bounds accesses are reported once a guest starts using PV I/O devices. -- Thanks, Sergey