Received: by 10.213.65.68 with SMTP id h4csp36873imn; Mon, 19 Mar 2018 18:44:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELsfgGSXGbFEmqGt/SATlhgO4i9ciAeh1hhPjTQ/wqXI1XFe2cu4Fxa8DyRZEI550tG2zZHv X-Received: by 10.99.159.10 with SMTP id g10mr10587026pge.407.1521510279521; Mon, 19 Mar 2018 18:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510279; cv=none; d=google.com; s=arc-20160816; b=BwCwPcSExTeKqdGpoXlhX9AR11lWxtZoS+kyjJvjkP91ZitMxdP4Apl5Si7Fa6mR5T YKC3rAZnoqQ0T7LA9VmSK8IQw95NEdQvOwtkwCq0uNRL3lvDQZ//Zo3A/hWdGeJDd0lW Zz8LDNX6JPTxHRZ10+O9n5CQtIOFtDZdzJWEWAg69D93m/wtYTvTU1qMPhnDG7JMkzWv maf+omRfziJEtqrEMg0swpoL/rbp7Pvzx727LuvmMQYN04gYk5BBzxajpiNikALMzBNF axvfbJzYAe35/HpR2h+m1D1jDodyV/3XO/OJi3LVL1LcyUERB4BHfbwJMhhdoV87leVW Idgg== 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:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=zGO08ZScrCU+1gjWMB19mZl76ocnikghhb1XMLtbkHE=; b=x44aqc5pTRnvnoJO8021C5MBVHpgtHMeHieyampcNeXCwcEZGYulze+T7xu8HHBdid MaIcSUB0xdHxRe5dWFysfPzE17QY/Cf6Hr5bJwcdkij8hOF3pKFeHI/Ld4m1WgwcjbWI sPiDDIERxvbc1RpOk5q8AA54IuSxRZSSlub+Ts+fYbi9tKVoczXcBzyGtvk7ksk7ZJc7 w9dN8+k59Jk1vp8onEFfQXqm7jl2pk93BduvkB93BcMGJKwN4bB12ToK+Z2Oy5I1tRWF riyVIXm+auvQDC8mhytc6mVdmk219i9kbyhEgBvbrPvyRJnWqXSQz07vYyWczjqgcZYs ad5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@onevmw.onmicrosoft.com header.s=selector1-vmware-com header.b=pwnxMoQU; 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 g1-v6si558978plp.327.2018.03.19.18.44.26; Mon, 19 Mar 2018 18:44:39 -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=@onevmw.onmicrosoft.com header.s=selector1-vmware-com header.b=pwnxMoQU; 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 S969961AbeCSSxI (ORCPT + 99 others); Mon, 19 Mar 2018 14:53:08 -0400 Received: from mail-bl2nam02on0044.outbound.protection.outlook.com ([104.47.38.44]:48907 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967575AbeCSSw4 (ORCPT ); Mon, 19 Mar 2018 14:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zGO08ZScrCU+1gjWMB19mZl76ocnikghhb1XMLtbkHE=; b=pwnxMoQUnTWQ0/5cVwl79VmqnuN13LRxktl/TKNw4I+U42nzeHYLvIVUtBOfIPHjw1KHxyTP2FKiJKaYXnT6pFGpWtyo4XcusTlXmmDBkYULl+QleRgwj5H6NVZeql8jkVba5bOtWP65eLYgt1WEqvPpfe4FPpvpM2W/nerTvLs= Received: from SN2PR05MB2654.namprd05.prod.outlook.com (10.166.212.137) by SN2PR05MB2704.namprd05.prod.outlook.com (10.167.14.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.6; Mon, 19 Mar 2018 18:52:53 +0000 Received: from SN2PR05MB2654.namprd05.prod.outlook.com ([fe80::740a:82de:4e00:2810]) by SN2PR05MB2654.namprd05.prod.outlook.com ([fe80::740a:82de:4e00:2810%7]) with mapi id 15.20.0609.008; Mon, 19 Mar 2018 18:52:53 +0000 From: Nadav Amit To: Arnd Bergmann , Greg Kroah-Hartman , Oleksandr Natalenko CC: Xavier Deguillard , pv-drivers , LKML , Gil Kupfer , "stable@vger.kernel.org" Subject: Re: [PATCH v2] vmw_balloon: fixing double free when batching mode is off Thread-Topic: [PATCH v2] vmw_balloon: fixing double free when batching mode is off Thread-Index: AQHTujhdSIiXJAlj90GNO4oOVtEcZaPPHhoAgAjUbYA= Date: Mon, 19 Mar 2018 18:52:53 +0000 Message-ID: References: <20180312191917.21381-1-namit@vmware.com> <20180312192848.22104-1-namit@vmware.com> In-Reply-To: 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: [2601:647:4580:b719:71c7:bdb8:2286:8905] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN2PR05MB2704;7:8NF25TqahI6gbKnsqDwaD24xsV1xfYoqZBJcpATcwmfur18Mue9ctm01snLyZrhbovHKu1Mi4D+/G9lPSUWpGqgwLIHC6jy2yc+5O+G6CnNV1pleUnk+/9fanE1/AJZO1RkN1MW67Q+TLfGvkU///7PAYVjo8nhheBgie1jj7U2cp+b3gvAuXHwV3HQevQNAr0i//ejy85tr9l7zX57vSv2O/munWhIkFWl47Hmqkn8gaov+vejwf1L0vdH7v+K3;20:LIUiWkVdQRHlLMSyBn9Yb1SdiyKAc7bwEVo9+qYueniFOJ1aSjdx8FD6J6oTYg3yqK259304jezTVCVQof5+7dEnVNbnw6wHSLbCJ3VVMbdq514ARqZpDEZZ8TlRdn3FfqtOuJ8MC4SOnDUoW1IlHe0A1U5ogzjB1XwoHdMElWc= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: d83931c3-dc6c-44d8-14f2-08d58dca9f26 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:SN2PR05MB2704; x-ms-traffictypediagnostic: SN2PR05MB2704: x-ld-processed: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(61668805478150)(85827821059158); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501244)(52105095)(3002001)(93006095)(93001095)(10201501046)(6041310)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011);SRVR:SN2PR05MB2704;BCL:0;PCL:0;RULEID:;SRVR:SN2PR05MB2704; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(39380400002)(366004)(346002)(396003)(376002)(199004)(189003)(6246003)(6512007)(2900100001)(478600001)(14454004)(59450400001)(97736004)(33656002)(46003)(6436002)(68736007)(99286004)(82746002)(39060400002)(53936002)(110136005)(54906003)(5250100002)(6486002)(76176011)(83716003)(316002)(6116002)(6506007)(86362001)(3660700001)(106356001)(4326008)(3280700002)(305945005)(7736002)(229853002)(105586002)(5660300001)(102836004)(186003)(25786009)(8936002)(81156014)(2950100002)(81166006)(2906002)(36756003)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN2PR05MB2704;H:SN2PR05MB2654.namprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: jLdQ25iCHj9djp44vd+V1wr9tSQ/p+aLRISjzTRlxIdaERGGrWoFGDVxJWP5hlsLDoQQiUzDtl9su19NNkHAhNZd3bAypKDeg3zCb2o3CBzMVXf6noI/SEdCzEWm/mwvylGMY9SPDYk6mLKpaJluU7srZz2qhCZAIxbRnMVAfP/b2FDqMChr0Rw0Vq6/Hqtij8UjxYQm8tEE3QitMqAhIcbDvkYWwdE//9F+FZ/KFAksHWV9yeF9oQn10FffWDk/D3Sun1ds0X3y55pIuA9nLkL/E/LmyXkNSW51NcfL3lsMWteKl/rj8txIBCZkSDn/LR0MwzC12U8QCiLLyJrp7Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <15F22F7C2823FA42B9B36D431EE77843@namprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-Network-Message-Id: d83931c3-dc6c-44d8-14f2-08d58dca9f26 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 18:52:53.3924 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR05MB2704 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nadav Amit wrote: > Nadav Amit wrote: >=20 >> From: Gil Kupfer >>=20 >> The balloon.page field is used for two different purposes if batching is >> on or off. If batching is on, the field point to the page which is used >> to communicate with with the hypervisor. If it is off, balloon.page >> points to the page that is about to be (un)locked. >>=20 >> Unfortunately, this dual-purpose of the field introduced a bug: when the >> balloon is popped (e.g., when the machine is reset or the balloon driver >> is explicitly removed), the balloon driver frees, unconditionally, the >> page that is held in balloon.page. As a result, if batching is >> disabled, this leads to double freeing the last page that is sent to the >> hypervisor. >=20 > Oleksandr, if you can confirm that it fixes the bug you encountered, it > would be great. >=20 > Greg, Arnd, on your free time, please let me know if there is any issue > with the patch, and whether you can incorporate it, preferably in 4.16, > since it is a bug-fix that was encountered by Red-Hat customers. Ping?