Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp531969pxu; Tue, 5 Jan 2021 19:12:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEJkrWrck0PXVG/CVI8XAFPrIJpTsqWSWQqrckKqpgguTk8YgHulGdeQVIcZ9VYkpoSSiB X-Received: by 2002:a05:6402:168f:: with SMTP id a15mr2598598edv.376.1609902771976; Tue, 05 Jan 2021 19:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609902771; cv=none; d=google.com; s=arc-20160816; b=mzJZQkvNXSDpyn5xdktSbikC2idioSJQbpy2St3/O4VZQKSceNStRBtrDYjkzNGBFz ZZUVHLG78PgbK0O6QMoeFXcv9ZAnH8quvfHlYuwsu4DLvIdnkxqMS5g6bQFtbIYLj0xI PdqTsXXPcxgKC8I4wcReeUBvqOpE3Azt8My/Q5bhBv7J/BsdNV1VzVEk72VRnF4iU6hm E3QuY6o7IUd8Hf2fZby0MRuiRZInzS5K6j988/VUQe6ZauWd+kNIhllK2C3VOIgRnlWR UjyDSSDkfTMjyqKIXbZmsJ2ec/POqJ8rDGbTdfi+bw+0KpBsiCNcsqJZr8Lcm0jtelQA VZsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=W/PpEKlUbN28jcfj5YrFvkIXjBCbIDL7mYlBH/tOtfs=; b=wZGuYhLs5WafhcTdkp4GlNCDwA1WQeur50SwvVcHvddbQcs/PhvEt+peEEOkTaWyw9 Ae397FL1JlE//vK327W75B3xpJY5yAVZhupCbtBhuWq0E267qCnzpiOVRAMfEoKMu69g y5DPJh0OGPnwyyls8WptCRVekipen3Zae9ejTLsl3E7CV2V/v3TM65+eesL9ezVWfwDi h//+P7oteqnJLD383BkjTd1E3f/J6fnB/+d+CYQ4FN03+G27YhsoWtrXlbACMMBW6+Po l1fCmdDbs/40BfoLzD2tk+21WasaS/o7r1fCVtqBNDdVynULpuCrSYg1Wh4XxGuP8Zf2 BdfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bmoh1VQZ; 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 l16si409084ejr.711.2021.01.05.19.12.28; Tue, 05 Jan 2021 19:12:51 -0800 (PST) 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=bmoh1VQZ; 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 S1726313AbhAFDK4 (ORCPT + 99 others); Tue, 5 Jan 2021 22:10:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbhAFDK4 (ORCPT ); Tue, 5 Jan 2021 22:10:56 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D58C2C06134C for ; Tue, 5 Jan 2021 19:10:15 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id s75so2051097oih.1 for ; Tue, 05 Jan 2021 19:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=W/PpEKlUbN28jcfj5YrFvkIXjBCbIDL7mYlBH/tOtfs=; b=bmoh1VQZHSZjSrOM6u1ba6MIirJY9CfW1kYiAp9WYOf/riWyAnLCEGxk/5FH3HjjpE pYap8ubcX3zHFbkOERTsYBbzxYK7rH+ZsL88OuIAwJl2BWR2FyddP6Eb6+k8KfDnrLGd 2fjyOIK+OXv5qRpdFTIJOC+SSSk6qdmSazk/6zHuESaSbyhyLWM8Nmn2MX5G/LkSdZu0 i8d8eXZ+UG+wCxiHc4J8coLbNuOHX6k7dBvxkeTf2WdxrmLjb41ACPKpYp6SFcie82FK gLUHYI2dBDx0VRGINwGa1rxqAreOsOVQKJZmp2Eri5C1uU0UzFHGtSLXJwDBUD30L+lV nTfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=W/PpEKlUbN28jcfj5YrFvkIXjBCbIDL7mYlBH/tOtfs=; b=RUlQQk7SAwxbOkDET0ScFnkAUnABuV5HZhBA8w3WYYc/3GjqizU+PDZqN/SY36AvV4 eTEBlUtRmt1LcfFlDkgTxlin32hRvavDDzTTdB7sYE3BxAS/IuUZ2k90UiCo23WkoG4k EDzvezj8NvGGYjDvJDLmBC9vxWzRmbx0d1bzd0ZYU/+rioGZfyUNIJjqMoQRksFzbhb+ S40rSGSmVKPsVBdUa547YsoosaBitOB2qX01V87DN11WxIKo3IyxrL/NQnCSXfTpflnS pK5PzT/8DOVJvi1Iq6OpFPlMuOUn7aDRgjn/YYh9KKDXLZlHO6vdDMy/0fU6TILcyhWV m2Rg== X-Gm-Message-State: AOAM5305yTxTHGbo1JZQqRat6i9If7SqziWU2lNFNAYe8qfxQp32xh1A /GOJwsgnfUtWmB9AMqgV60AUzg== X-Received: by 2002:aca:c697:: with SMTP id w145mr1828526oif.117.1609902614989; Tue, 05 Jan 2021 19:10:14 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id i8sm341755oih.2.2021.01.05.19.10.12 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Tue, 05 Jan 2021 19:10:14 -0800 (PST) Date: Tue, 5 Jan 2021 19:10:01 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Qian Cai cc: Hugh Dickins , Shakeel Butt , Alex Shi , Andrew Morton , Mel Gorman , Tejun Heo , Konstantin Khlebnikov , Daniel Jordan , Matthew Wilcox , Johannes Weiner , kernel test robot , Linux MM , LKML , Cgroups , Joonsoo Kim , Wei Yang , "Kirill A. Shutemov" , alexander.duyck@gmail.com, kernel test robot , Michal Hocko , Vladimir Davydov , Yang Shi Subject: Re: [PATCH v21 00/19] per memcg lru lock In-Reply-To: Message-ID: References: <1604566549-62481-1-git-send-email-alex.shi@linux.alibaba.com> <49be27f2652d4658f80c95bea171142c35513761.camel@redhat.com> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 5 Jan 2021, Qian Cai wrote: > On Tue, 2021-01-05 at 13:35 -0800, Hugh Dickins wrote: > > This patchset went into mmotm 2020-11-16-16-23, so probably linux-next > > on 2020-11-17: you'll have had three trouble-free weeks testing with it > > in, so it's not a likely suspect. I haven't looked yet at your report, > > to think of a more likely suspect: will do. > > Probably my memory was bad then. Unfortunately, I had 2 weeks holidays before > the Thanksgiving as well. I have tried a few times so far and only been able to > reproduce once. Looks nasty... I have not found a likely suspect. What it smells like is a defect in cloning anon_vma during fork, such that mappings of the THP can get added even after all that could be found were unmapped (tree lookup ordering should prevent that). But I've not seen any recent change there. It would be very easily fixed by deleting the whole BUG() block, which is only there as a sanity check for developers: but we would not want to delete it without understanding why it has gone wrong (and would also have to reconsider two related VM_BUG_ON_PAGEs). It is possible that b6769834aac1 ("mm/thp: narrow lru locking") of this patchset has changed the timing and made a pre-existing bug more likely in some situations: it used to hold an lru_lock before that BUG() on total_mapcount(), and now does not; but that's not a lock which should be relevant to the check. When you get more info (or not), please repost the bugstack in a new email thread: this thread is not really useful for pursuing it. Hugh