Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2167486ybh; Fri, 24 Jul 2020 06:14:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/fYaeS+0SxCSTxOZgtc1qjW7HDty1Ee+qt7AdEqJ9Y8g6TMgDEEGDqgYkw6sE/6t9Ms0w X-Received: by 2002:a17:906:40d3:: with SMTP id a19mr376417ejk.474.1595596481437; Fri, 24 Jul 2020 06:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595596481; cv=none; d=google.com; s=arc-20160816; b=1A98JJhp7Lzc9bXBQKuFt6ofaLEfiTJUuUhGQBlM2ZVT0rVKLN+Idgftn+Fz9zTnim 9EcEdQS9wrHzL6yaON2G2at+RpMABwZvv6/Qpew+CPqvg99OBtOlzHRyrhjhTjjAPmVM RGnOMtDrIf+eud3StaytnE8e0sx1Ya9j3twt1cMNUTIVXCDU0YlIJEX2RRVsOXGB6xFJ QTf4JB4VrmNwBKkzm+cDBBG5cU2G4pPNV2bUW2gNkvsYelaw/6cG7BarvE6sgCY00juY m3CxHwZOg72mb3pkFG3t5AKjAcgdD4S7OB6DU3htCGpghym1/5k77kiuWxatXUOXQS8l LW/A== 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:from:references:cc:to:subject; bh=nktBUeKirWwZFnY23HYAWru/54zXw+zPV4RtOkpaf3Y=; b=Tu+5A+6+zSs8XRm7GljwQw4mR94Z+thyeolHvkKgp9y54y6AbXJAJWbrmRdJwNI7/R E3As9513IRs/f3NqVhnEHXg8iSvvAMiJFlZCOVICMZGMZVCM61l6e8e1z10KUl93MvIS nRMyXx70DqybB5ZEwMsf4b8S9uthfDi3J6cZSfBAWjKlE0OJ0n0FtJNWSTJ8lVCuko6D 973zCr1/bYx4cdW8ndCUg9mJBsQyui371kxqZsSrxb6TJS8y/2cslBRwLXaO2NVFIfiu 7CFi5o+0IeaD/V3fUQxFJlV0Zh/Dx7+3S+aFu0DR2GlLGH8EjkdOfdaSERhGxh0Xf2Hb Yrvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si509726edj.349.2020.07.24.06.14.19; Fri, 24 Jul 2020 06:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726938AbgGXNLq (ORCPT + 99 others); Fri, 24 Jul 2020 09:11:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:35472 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726329AbgGXNLq (ORCPT ); Fri, 24 Jul 2020 09:11:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id F423FAF24; Fri, 24 Jul 2020 13:11:52 +0000 (UTC) Subject: Re: [PATCH v2 1/4] xen/balloon: fix accounting in alloc_xenballooned_pages error path To: Roger Pau Monne , linux-kernel@vger.kernel.org Cc: stable@vger.kernel.org, Boris Ostrovsky , Stefano Stabellini , xen-devel@lists.xenproject.org References: <20200724124241.48208-1-roger.pau@citrix.com> <20200724124241.48208-2-roger.pau@citrix.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <7f18eca6-9785-fbff-7870-83024173cb69@suse.com> Date: Fri, 24 Jul 2020 15:11:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200724124241.48208-2-roger.pau@citrix.com> Content-Type: text/plain; charset=utf-8; format=flowed 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 24.07.20 14:42, Roger Pau Monne wrote: > target_unpopulated is incremented with nr_pages at the start of the > function, but the call to free_xenballooned_pages will only subtract > pgno number of pages, and thus the rest need to be subtracted before > returning or else accounting will be skewed. > > Signed-off-by: Roger Pau Monné Reviewed-by: Juergen Gross Juergen