Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1661312pxf; Fri, 2 Apr 2021 18:14:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysndfg0LWpE8QDOww3nn0JRnaKkC3pNbd9zIzRzHv6wTrG3LZHPQJ81wrSXx5WChNkoaDF X-Received: by 2002:a05:6402:3587:: with SMTP id y7mr19176970edc.54.1617412476952; Fri, 02 Apr 2021 18:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617412476; cv=none; d=google.com; s=arc-20160816; b=FXkOX7lt7lKLJF7xOxbdhjOJegvLMTjvrxPvch6zA+Rzzh3hJ3eL0wFDWqL79LhSpW r9JiNtvdmh4gZ3IIWJWjPtYCKkkzZkP8Fc7L5IJjuZZ6X1saQyiFyxHTq/fbieHbxv8q AEpIRGzzju4Q0FtKeMHkjCaoJ4B79WPC579ZxWgC+bbcljFIutRJfZ0OJF9goh+76kaJ SvDb7R5VoQHryEP62Lf88hNmlBND0iZFAV5WsBr3X3ZiEcIpiArtX2OVJZ1B9l1EiLl2 kR7qjEpT4sjZ5SANlNMqMUA4IxZ9bPZAzkL+DYN9Gm9OQjMxY50nNpcTo6t7QDhIYBRr V72A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=f4qgLvucY0towbKBWbt2D03ufnCif8gBNVZdzFUpcrc=; b=HxuN7jEYep4UIcvTiwuVXjjhVdk4NNxdFHiYChLRMVCKnKKVwCV78PfDQNIOvjzEjT 6weJnHiuPpFq0/xJv4aIZtera8RQzYCUjhiUaAzhBG2MCzDp9WseHFp/yDKExoJICLfU pRSs9tGYOpjE4ZKeB3rJP4lAH2KMM056olzonepr+3Yoe9+3fGkYZxXXZyRlpYIi9LQm 6w2EpIJtjVDi98GxkK8XpOVntdGhq1dFGScsRzuWa6km6l/J/nkPV2Grh524r5VdDu/D 9JqnH3L4puzpjXkY3i/qbEhJyfpXSfYtkRLx/mw7QPV0VVOM5wim9nWruSI73FwWgSKI ETUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eXrvkjPS; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx17si7785776edb.495.2021.04.02.18.14.14; Fri, 02 Apr 2021 18:14:36 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=eXrvkjPS; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235473AbhDCBLJ (ORCPT + 99 others); Fri, 2 Apr 2021 21:11:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234821AbhDCBLI (ORCPT ); Fri, 2 Apr 2021 21:11:08 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 972EAC0613E6 for ; Fri, 2 Apr 2021 18:11:06 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 12so9555207lfq.13 for ; Fri, 02 Apr 2021 18:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f4qgLvucY0towbKBWbt2D03ufnCif8gBNVZdzFUpcrc=; b=eXrvkjPSf/fPPB1l4l26YyJ+bAarsI9LJVJvwYkGHWtyQrsOGRf/klTPoIVH1noGlc +MwmIDXs6iO8QfBebmm7/VfligvMvD6x0xgKlUKZggb2DRrgJukpGxOfy3/2sTMyReV+ VUn6XkbUPdbFHGFviNBZyhHlKwZzZabP2BFbwf72cEPY7QBmuupufoy9NMXOq3FrJVra bSFbirOr4jWNGdpexHXzmLGwJ+mwNkBlZYMqpGol7GGg7zZYAOZG/FxsQ2dc2lChTVfq OdmdXmgr7mCspUb6pwyhqJUzAfkfJc8B1PQf9oPmJ9sm8btSoSPhtGkGwDX4oS3rM2CX QYTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f4qgLvucY0towbKBWbt2D03ufnCif8gBNVZdzFUpcrc=; b=RiylTO8k3JB34573IHoQZ4ZXM9GwB1lxSz3JmdSobx3gekWVODea7PtCCs9Ni8SSVE ebDygGEIp/wauaugpIPOCvOMqsX26v/CyK2JgnOB8oakkpbdOGMIfcnKiEGXWlAtreIw XOcDlkZqwqM9oP4Ql7BMER+n4tuVHvTyIePx1HmOvhXwO2KWW11CM9DRzudHqyXhd95e N2xoh2oymjQtc6a98cV5aH/ajzm/YSJY/LHycawLNGj4w1wJ/9KFy+ggoxVYRAzpGme0 7+BL8m0vdJ5zljkRnmXtMa6mOMcvUBKiriE8744WL4vK0ZvEmc+AViPxljsNjhHLLTy7 idBw== X-Gm-Message-State: AOAM533wyuL3O1oF77APfz1TiqUK3Mf+0L66FrScO/LNbQXCjFUsKUYb ZmEcUoyU1she8TaFVIJr/eMEoxTGBKk/uwHVRQho3g== X-Received: by 2002:a05:6512:c04:: with SMTP id z4mr10396546lfu.299.1617412259753; Fri, 02 Apr 2021 18:10:59 -0700 (PDT) MIME-Version: 1.0 References: <20210401030141.37061-1-songmuchun@bytedance.com> <5c183fe6-637f-151c-67f0-fe19a0ce3356@huawei.com> <20210402180454.c28395d38396b58659c15fcc@linux-foundation.org> In-Reply-To: <20210402180454.c28395d38396b58659c15fcc@linux-foundation.org> From: Shakeel Butt Date: Fri, 2 Apr 2021 18:10:48 -0700 Message-ID: Subject: Re: [PATCH] mm: memcontrol: fix forget to obtain the ref to objcg in split_page_memcg To: Andrew Morton Cc: Roman Gushchin , Miaohe Lin , Muchun Song , LKML , Linux MM , Xiongchun duan , Christian Borntraeger , Johannes Weiner , Michal Hocko , Vladimir Davydov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 2, 2021 at 6:04 PM Andrew Morton wrote: > > On Wed, 31 Mar 2021 20:35:02 -0700 Roman Gushchin wrote: > > > On Thu, Apr 01, 2021 at 11:31:16AM +0800, Miaohe Lin wrote: > > > On 2021/4/1 11:01, Muchun Song wrote: > > > > Christian Borntraeger reported a warning about "percpu ref > > > > (obj_cgroup_release) <= 0 (-1) after switching to atomic". > > > > Because we forgot to obtain the reference to the objcg and > > > > wrongly obtain the reference of memcg. > > > > > > > > Reported-by: Christian Borntraeger > > > > Signed-off-by: Muchun Song > > > > > > Thanks for the patch. > > > Is a Fixes tag needed? > > > > No, as the original patch hasn't been merged into the Linus's tree yet. > > So the fix can be simply squashed. > > Help. Which is "the original patch"? "mm: memcontrol: use obj_cgroup APIs to charge kmem pages"