Received: by 10.213.65.68 with SMTP id h4csp1964193imn; Thu, 5 Apr 2018 06:52:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+snwEddxF+kENPejA8PWZahmlCHbnSvqABhRwnqIHOWtIPDk/gblOuanLjyBG5RbZcUfIb X-Received: by 2002:a17:902:585e:: with SMTP id f30-v6mr21210297plj.254.1522936324849; Thu, 05 Apr 2018 06:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522936324; cv=none; d=google.com; s=arc-20160816; b=V3V1iM/WaH3r4ZaVcc0aHyMWDUD3QaODrS4mmk5uThjVMj03tgNgvHbN2XCYqAcWen QM3TpAdZfMqya4gcp0BuEe+O+TtNAW9qFxd/eX7u3Rmj+DXP/gS0Ao4LCF4E2m4EN/t2 paYwYvngia+EwopQHPEIkY+pQyWqR9MnKla0959IUkZIjlll9VX37RToG3IhC4ZOaGlb JSRVL6UU2McX1RQWRWW5KUSWeAN2MJeC8ENF2XVWPKg528AjS5qxnlBC+L2YgRUsaUjl URaUzaarCnM4vYoqLERpdyJG6BbGO+3oau6Nf7ury6YNLaDkcEeKfmFp2wJd3l7MxQM6 Lxiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=yyRnqebxchf1pqJBXeBvL285XG456IR6OAmjNOFV2tA=; b=tcMrPQMX3DWQ+sGh43O8nOijOK41Srxbl4axBnBOPM1SV4WLeg4qBndQNV4xk0SbmL lYK6/LRXTeae1WSq2rXWWk+joo7X5X7EGMFpg6iCAAKmI2Rza0U5ZPKipheb/0kRgX1g 9ZnKgpsnlNjdVpMdxh7y8ootXOzD0NBFv+NWMV5rmU/f+dfjAAWRhc+NMt9VtRAfM86M OBHtpQFmezcNisoS26hwvFKMt+iwsSxXfvv5av8wrVX+p3cVZQ0a0GV+KVIGJTp5EkNp p/x6ioDg85bmx9/TOsBdg0VJft1YfDRR0SpjWByODJrt8y/eWoZ+GBxyNuYNVEXZH5Bl PDvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=D+ob4/8f; 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 c6-v6si6150178plr.620.2018.04.05.06.51.50; Thu, 05 Apr 2018 06:52:04 -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=@messagingengine.com header.s=fm2 header.b=D+ob4/8f; 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 S1751435AbeDENuG (ORCPT + 99 others); Thu, 5 Apr 2018 09:50:06 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:58765 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbeDENuE (ORCPT ); Thu, 5 Apr 2018 09:50:04 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D5BA720FEB; Thu, 5 Apr 2018 09:50:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 05 Apr 2018 09:50:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=yyRnqebxchf1pqJBXeBvL285XG456 IR6OAmjNOFV2tA=; b=D+ob4/8f9DUP331lxYcYOVAFTVaJ5GgHGjJs3qeS2CTlv PnnaHZk3+smuwor5i2lgZqrVdJPGvIKfUfZlwYrxJ3SzG/owZTyMydaX0uS32bBw 81Krn0vLLKME1k/Ghv4dlbN/yJ+MICDkxdIzKwmGl5+TT7yf3zSazWWIqL3D+R9l G3z/rz33NhVBKNfPOlGHyv+rX+/FmJnlL1m/LReQkZPY8aC2hFKH6fB3JdmMA3fk b9/RsTyCRWLoZd4aVlaEGTUssVmC/V2ieQTWoB3JvZ0r2Klak9t4/hsCBCY7+rM5 pmW6b1Y5j808hbCgUQjrOAIeqP57SNneTSfNycblQ== X-ME-Sender: Received: from localhost (lfbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 7C5ECE4437; Thu, 5 Apr 2018 09:50:02 -0400 (EDT) Date: Thu, 5 Apr 2018 15:50:02 +0200 From: Greg KH To: Claudio Imbrenda Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, aarcange@redhat.com, minchan@kernel.org, kirill.shutemov@linux.intel.com, linux-mm@kvack.org, hughd@google.com, borntraeger@de.ibm.com, gerald.schaefer@de.ibm.com, stable@vger.kernel.org Subject: Re: [PATCH v1 1/1] mm/ksm: fix inconsistent accounting of zero pages Message-ID: <20180405135002.GA23486@kroah.com> References: <1522931274-15552-1-git-send-email-imbrenda@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522931274-15552-1-git-send-email-imbrenda@linux.vnet.ibm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 05, 2018 at 02:27:54PM +0200, Claudio Imbrenda wrote: > When using KSM with use_zero_pages, we replace anonymous pages > containing only zeroes with actual zero pages, which are not anonymous. > We need to do proper accounting of the mm counters, otherwise we will > get wrong values in /proc and a BUG message in dmesg when tearing down > the mm. > > Fixes: e86c59b1b1 ("mm/ksm: improve deduplication of zero pages with colouring") > > Signed-off-by: Claudio Imbrenda > --- > mm/ksm.c | 7 +++++++ > 1 file changed, 7 insertions(+) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.