Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2278881imc; Tue, 12 Mar 2019 10:27:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1JTQU3yjPpTo7lJ6IMwDd372KphF0MBkIhTcpAni+50veAumoJ5nm1Mh1EvVHHMUKy/mR X-Received: by 2002:a17:902:2ec1:: with SMTP id r59mr4026058plb.171.1552411645658; Tue, 12 Mar 2019 10:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552411645; cv=none; d=google.com; s=arc-20160816; b=YI2xJo9RQRMkqorjVl43JL5xu9enwCSGoLOjsUGKVibwy33lyt/GyAMheE2O2c/OM5 oW5cX9lYWxIMo8LV18F+WNKHSO+mMrwydDwU75caMHUJLzW9/655L4i6rt+UpQG6AG06 ISsVlNCcBbSRx96oLxx+JvbNKEJOBuEUMKpNfFA4xT/QHaT5G8U/qawlYfDiy9GJuaey UTyT11xlRz/4MH6F+m7Q/VZ/cX/91z0JwWCa00jEj8CkosTVWvlMEPcljEKz68ZPFWWb le5mOgg0VxxVCP0uLxu/y3uRUgBzUo0ipIya1/zMzmxhkdmRX72UA3RsNK6sP3NG0FSO 2M1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=HuL6L6UHqB0jogE14X4LVrkJxK5RVwdS5RmNSCDnbHg=; b=Ak/k4m7QhjTZpzfZ2V1AN6vavyATUsu+eMIu27oC3vsSa/Lhl3TIsiyONrzDhmkpTP ht/KdqMfEOOeErAIhM0QwA0LoE6REg4Dt54q1xA47NqgB3m0aMYMAOO2OINGcwOoqR6n Oc2pIYqUVDSyJo+4w0u9GF51uu0a009bnd9ZA98fRHVBS1R09HL5Hmzwp3xnjMoGU0F4 zG9TElbCzbw1LStxFRUUbE7Pyz3VeKxXWzZ47AM/m61JivYeUgM+hVEp92ITiXHA8mNz RE03QYvV18BFAG5JCzEACfoR7xGLlBhvhr0HmDG5VptL2aQ7qW+Ja13KQNns2LrY8hco fUGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=XmEYDB+U; 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=QUARANTINE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si8418313plt.342.2019.03.12.10.27.09; Tue, 12 Mar 2019 10:27:25 -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=@vmware.com header.s=selector1 header.b=XmEYDB+U; 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=QUARANTINE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729853AbfCLRZu (ORCPT + 99 others); Tue, 12 Mar 2019 13:25:50 -0400 Received: from mail-eopbgr820045.outbound.protection.outlook.com ([40.107.82.45]:31440 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729759AbfCLRZk (ORCPT ); Tue, 12 Mar 2019 13:25:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HuL6L6UHqB0jogE14X4LVrkJxK5RVwdS5RmNSCDnbHg=; b=XmEYDB+USxW26zzkeRUVN79lUx+UEtuBtPtrW4RuLAnYLNk+ZVwNsHp9TqKUCzqEgHNnF0X8xIU8PwMeOo9H5Ob53cCWaKnUOQP+PoER2YcHynkL3QFVzBS/I0TN1UzMMVNRF2uAKyv8HZ5boQKsJlg1b7/sVJgLcc85F8cODAs= Received: from BYAPR05MB4776.namprd05.prod.outlook.com (52.135.233.146) by BYAPR05MB5704.namprd05.prod.outlook.com (20.178.48.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.11; Tue, 12 Mar 2019 17:25:28 +0000 Received: from BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::6cf6:1336:9f92:b1b5]) by BYAPR05MB4776.namprd05.prod.outlook.com ([fe80::6cf6:1336:9f92:b1b5%4]) with mapi id 15.20.1709.011; Tue, 12 Mar 2019 17:25:28 +0000 From: Nadav Amit To: David Hildenbrand CC: Matthew Wilcox , Julien Grall , osstest service owner , "xen-devel@lists.xenproject.org" , Juergen Gross , Konrad Rzeszutek Wilk , Boris Ostrovsky , Stefano Stabellini , "linux-kernel@vger.kernel.org" , Kees Cook , "k.khlebnikov@samsung.com" , Julien Freche , Pv-drivers , "linux-mm@kvack.org" Subject: Re: xen: Can't insert balloon page into VM userspace (WAS Re: [Xen-devel] [linux-linus bisection] complete test-arm64-arm64-xl-xsm) Thread-Topic: xen: Can't insert balloon page into VM userspace (WAS Re: [Xen-devel] [linux-linus bisection] complete test-arm64-arm64-xl-xsm) Thread-Index: AQHU2PcQ+2WuG1OSZEK1UAN5w8teIKYIPsCAgAAAfIA= Date: Tue, 12 Mar 2019 17:25:28 +0000 Message-ID: References: <80211e70-5f54-9421-8e8f-2a4fc758ce39@arm.com> <46118631-61d4-adb6-6ffc-4e7c62ea3da9@arm.com> <20190312171421.GJ19508@bombadil.infradead.org> <28a72642-d0db-214c-2bf2-d1a6c6e03d92@redhat.com> In-Reply-To: <28a72642-d0db-214c-2bf2-d1a6c6e03d92@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=namit@vmware.com; x-originating-ip: [66.170.99.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f0787024-0a84-4317-c63a-08d6a70fb8ff x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020);SRVR:BYAPR05MB5704; x-ms-traffictypediagnostic: BYAPR05MB5704: x-ld-processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr x-microsoft-antispam-prvs: x-forefront-prvs: 09749A275C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(39860400002)(366004)(346002)(376002)(136003)(189003)(199004)(106356001)(71200400001)(6436002)(11346002)(105586002)(86362001)(7416002)(6486002)(186003)(5660300002)(71190400001)(478600001)(76176011)(6506007)(83716004)(446003)(68736007)(476003)(229853002)(53546011)(36756003)(14454004)(26005)(82746002)(53936002)(99286004)(81166006)(2616005)(81156014)(6116002)(33656002)(486006)(102836004)(3846002)(54906003)(66066001)(4326008)(93886005)(256004)(6916009)(25786009)(6512007)(8676002)(97736004)(8936002)(2906002)(305945005)(316002)(7736002)(6246003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR05MB5704;H:BYAPR05MB4776.namprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BG9N2f8C+dlo3mBMwuqnPoQzRUmb/nEAM7EVvFo7FSYuYmjPf/rwSEWKGt1rSEYoJEM+9/TjXzYpf6xO4E4LgQAOfJmW3Z2ym7oNYir6Zl+PY1txlEUPTb4Fj1bukSx/5zKWMj7X/3Fq7o/S0hpJj1dU+H7obCquEwS5mSpscKrzqrkUWQL5s0BhE/T8BeePu4SPM2QNlwIGRFbGOyddi1wkvX0bI1OrZzXJORVGjE/AgqijTWuy8dL/8OdsgEGF32TeRnyHbj7QL1Fpg8N0WAzZT/uCCQawzQJlXUmsekv9GtRxxIbCyNsPEwRZrq7POqBHoSgHUawvrzZKSopoNMxQlt0WdcskYBTUUMn8FG6JhP9Ni3SSHTkS1pkqCDuP/c365wKSuWXgHtwc3fIfb1RLljJJ9wur36L7thPqa+Y= Content-Type: text/plain; charset="us-ascii" Content-ID: <50EB2B33C821234E9E7264AB3F0F5A4C@namprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0787024-0a84-4317-c63a-08d6a70fb8ff X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2019 17:25:28.8020 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR05MB5704 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mar 12, 2019, at 10:23 AM, David Hildenbrand wrote: >=20 > On 12.03.19 18:14, Matthew Wilcox wrote: >> On Tue, Mar 12, 2019 at 05:05:39PM +0000, Julien Grall wrote: >>> On 3/12/19 3:59 PM, Julien Grall wrote: >>>> It looks like all the arm test for linus [1] and next [2] tree >>>> are now failing. x86 seems to be mostly ok. >>>>=20 >>>> The bisector fingered the following commit: >>>>=20 >>>> commit 0ee930e6cafa048c1925893d0ca89918b2814f2c >>>> Author: Matthew Wilcox >>>> Date: Tue Mar 5 15:46:06 2019 -0800 >>>>=20 >>>> mm/memory.c: prevent mapping typed pages to userspace >>>> Pages which use page_type must never be mapped to userspace as it = would >>>> destroy their page type. Add an explicit check for this instead o= f >>>> assuming that kernel drivers always get this right. >>=20 >> Oh good, it found a real problem. >>=20 >>> It turns out the problem is because the balloon driver will call >>> __SetPageOffline() on allocated page. Therefore the page has a type and >>> vm_insert_pages will deny the insertion. >>>=20 >>> My knowledge is quite limited in this area. So I am not sure how we can >>> solve the problem. >>>=20 >>> I would appreciate if someone could provide input of to fix the mapping= . >>=20 >> I don't know the balloon driver, so I don't know why it was doing this, >> but what it was doing was Wrong and has been since 2014 with: >=20 > Just to clarify on that point, XEN balloon does not use balloon > compaction as far as I know (only virtio-balloon and as far as I know > now also vmware balloon). Both of them don't map any such pages to user > space, so it never was and isn't a problem. I still need to submit the next version of the patches, but yes, we are not about to map them to userspace (dah).