From patchwork Tue Oct 27 08:02:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muchun Song X-Patchwork-Id: 11859625 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 308C761C for ; Tue, 27 Oct 2020 08:03:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6C15D2224E for ; Tue, 27 Oct 2020 08:03:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=bytedance-com.20150623.gappssmtp.com header.i=@bytedance-com.20150623.gappssmtp.com header.b="CvS4lGhb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C15D2224E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bytedance.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7B08B6B005D; Tue, 27 Oct 2020 04:03:16 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 7636F6B0062; Tue, 27 Oct 2020 04:03:16 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 62ACA6B006C; Tue, 27 Oct 2020 04:03:16 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0182.hostedemail.com [216.40.44.182]) by kanga.kvack.org (Postfix) with ESMTP id 339296B005D for ; Tue, 27 Oct 2020 04:03:16 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id CDF7D1EE6 for ; Tue, 27 Oct 2020 08:03:15 +0000 (UTC) X-FDA: 77416965150.11.man50_0914eec2727a Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id B1A42180F8B82 for ; Tue, 27 Oct 2020 08:03:15 +0000 (UTC) X-Spam-Summary: 1,0,0,2ee5599f9822e656,d41d8cd98f00b204,songmuchun@bytedance.com,,RULES_HIT:41:69:355:379:541:966:988:989:1260:1311:1314:1345:1437:1515:1534:1539:1568:1711:1714:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3865:3867:3868:3870:4385:4605:5007:6261:6653:6737:10004:11026:11658:11914:12043:12048:12291:12297:12438:12517:12519:12679:12683:12895:13069:13311:13357:13894:14384:14394:21080:21444:21451:21627:21740:21990:30012:30054,0,RBL:209.85.214.196:@bytedance.com:.lbl8.mailshell.net-62.2.0.100 66.100.201.201;04yr7dup8cecax45n439n49woiwwrop4m6fq1p7q7f6jermf69u3jncyy5ojctr.anqp7x1qjmtowh1xgbqh5y3jzzkqtg7x6imcpninwj19yz9spauqm6wgcipkwhw.4-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: man50_0914eec2727a X-Filterd-Recvd-Size: 3874 Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Tue, 27 Oct 2020 08:03:15 +0000 (UTC) Received: by mail-pl1-f196.google.com with SMTP id h2so331512pll.11 for ; Tue, 27 Oct 2020 01:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kG6PqPw8H5tvrqd/aB6QZ20Kiu7xsv86CzlJPEIAW18=; b=CvS4lGhbaduFgXwzlkmjhkqLZ9Hbub8RGApcEu/x2HgIai6Ow8JRCxzFzMUUer/bQg l3YlphLdok80JRdVICtVtMdnrz7E/IIzYX5Z2KHV/3FFu9czYXaAQooNmjalAPgReeds rH7pI0kvJZA2YpVpZgkR4ymZIcCCRP/nzIFHLHEjBT25oI0fXea8GFaTc48z56evVCOK GISXlr7jEVbdJufRsIEkvdWmvWOWP2zvoo52TV8Y4Y8qzFA/sgMKuWm8k1CICy9F5ydZ 9HJir1FdSLBiNegj458SP8b65nBbm0M7xW7k6qafuo08INH1fvs1djvDOwMtmqaEaFO6 EyVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kG6PqPw8H5tvrqd/aB6QZ20Kiu7xsv86CzlJPEIAW18=; b=X8Nye6HWPXN3uO3U697fkJMFiB/5x9qNzUkcIa2swm/HcNxX+Pr8dB6rbf/5g9/CjG jORHHPLosCa0coslJNmnJsIYYy/kIYe+HY2MuboL3JHFUF5+ooslLxUsn4/CAwtpfGEL PljdOrVsdo0JJH6nwQfaH8BimtOUPf6Th2EyGZd8ZgH/M9nTFzPvXFE5Gr2D88HXAHEd WYw9n+kmrMO/WhU+mA/es5CNzj2+SmUarPwFVMSEZf7XzVNYZZYuCp/yeY+1eE9dzO85 qtoH2ZgN00OsxhcPcFM8Rnx2qPlQz9CX8X6TSDXNG3YVdT0e696o+13LBf+NrMD8HOgv ASqQ== X-Gm-Message-State: AOAM533y4WmLLuu4gQgwSPx/aNy4Uq4gmw1qjsOk8kHfcF+D0kJ6Qmkg xIZGIPgA9C0up88y3tuEjGZgyA== X-Google-Smtp-Source: ABdhPJzbXiMQsBgYxlsjt2Io4BYixEljD+9tk1ro5+5ZbEcMHWoNgcTxsqBcL9t2bgs7uBV4yTMXqw== X-Received: by 2002:a17:90b:e96:: with SMTP id fv22mr907206pjb.134.1603785793701; Tue, 27 Oct 2020 01:03:13 -0700 (PDT) Received: from Smcdef-MBP.local.net ([103.136.220.89]) by smtp.gmail.com with ESMTPSA id p8sm1039580pgs.34.2020.10.27.01.03.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Oct 2020 01:03:12 -0700 (PDT) From: Muchun Song To: hannes@cmpxchg.org, mhocko@kernel.org, vdavydov.dev@gmail.com, akpm@linux-foundation.org, shakeelb@google.com, guro@fb.com, iamjoonsoo.kim@lge.com, laoar.shao@gmail.com, chris@chrisdown.name, christian.brauner@ubuntu.com, peterz@infradead.org, mingo@kernel.org, keescook@chromium.org, tglx@linutronix.de, esyr@redhat.com, surenb@google.com, areber@redhat.com, elver@google.com Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, Muchun Song Subject: [PATCH 0/5] Fix some bugs in memcg/slab Date: Tue, 27 Oct 2020 16:02:51 +0800 Message-Id: <20201027080256.76497-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.21.0 (Apple Git-122) MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000017, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This patch series fixes some bugs and simplify the code in the memcontrol.c. Muchun Song (5): mm: memcg/slab: Fix return child memcg objcg for root memcg mm: memcg/slab: Fix use after free in obj_cgroup_charge mm: memcg/slab: Rename *_lruvec_slab_state to *_lruvec_kmem_state mm: memcg/slab: Fix root memcg vmstats mm: memcontrol: Simplify the mem_cgroup_page_lruvec include/linux/memcontrol.h | 62 +++++++++++++++++++++++++------------- kernel/fork.c | 2 +- mm/memcontrol.c | 61 ++++++++++--------------------------- mm/workingset.c | 8 ++--- 4 files changed, 62 insertions(+), 71 deletions(-)