Message ID | 20191116013443.bdFrXzwW-%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=d32k=ZI=kvack.org=owner-linux-mm@kernel.org> 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 DD82C930 for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 16 Nov 2019 01:34:46 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AAB042073C for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 16 Nov 2019 01:34:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="cQFszwHw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AAB042073C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9A5046B000A; Fri, 15 Nov 2019 20:34:45 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 957FB6B000C; Fri, 15 Nov 2019 20:34:45 -0500 (EST) 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 86C076B000D; Fri, 15 Nov 2019 20:34:45 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0131.hostedemail.com [216.40.44.131]) by kanga.kvack.org (Postfix) with ESMTP id 72F146B000A for <linux-mm@kvack.org>; Fri, 15 Nov 2019 20:34:45 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 3925A181AEF1E for <linux-mm@kvack.org>; Sat, 16 Nov 2019 01:34:45 +0000 (UTC) X-FDA: 76160421330.28.pig19_c5b364e01b0f X-Spam-Summary: 2,0,0,af08ef588c9dafb9,d41d8cd98f00b204,akpm@linux-foundation.org,:akpm@linux-foundation.org:guro@fb.com:hannes@cmpxchg.org::mhocko@kernel.org:mkoutny@suse.com:mm-commits@vger.kernel.org:shakeeb@google.com:stable@vger.kernel.org:tj@kernel.org:torvalds@linux-foundation.org,RULES_HIT:41:355:379:800:960:967:973:988:989:1260:1263:1345:1381:1431:1437:1534:1542:1711:1730:1747:1777:1792:2194:2199:2393:2525:2559:2563:2682:2685:2741:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6261:6653:6737:7576:7903:8599:9025:9545:10004:10913:11026:11473:11658:11914:12043:12048:12114:12296:12297:12438:12517:12519:12555:12679:12783:12895:12986:13161:13229:14181:14721:14849:21063:21080:21451:21611:21627:21795:21939:30051:30054:30064:30070:30075,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0 ,DNSBL:n X-HE-Tag: pig19_c5b364e01b0f X-Filterd-Recvd-Size: 4058 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf42.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Sat, 16 Nov 2019 01:34:44 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 95F91207FA; Sat, 16 Nov 2019 01:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573868084; bh=RRKnxqH/UF5xqW+DkjcMaAJpH5mIXzSIhZsl5Lyjvo4=; h=Date:From:To:Subject:From; b=cQFszwHwprJHX1i1mzvfhtKY/0oLTiIhfFhjc23a8UPifuKbfoQ91sFPflFsAKvzh Goe4aJiLPDzhjFMF3zWm4ygg1KTd7m+7YVfJ0cqfN/H/DuZugJI44QwHktD7/fHW9t 6V4+/QtPG4dpjeDhXsefjf/nSVdzVmTOmjIYSfj8= Date: Fri, 15 Nov 2019 17:34:43 -0800 From: akpm@linux-foundation.org To: akpm@linux-foundation.org, guro@fb.com, hannes@cmpxchg.org, linux-mm@kvack.org, mhocko@kernel.org, mkoutny@suse.com, mm-commits@vger.kernel.org, shakeeb@google.com, stable@vger.kernel.org, tj@kernel.org, torvalds@linux-foundation.org Subject: [patch 04/11] mm: memcg: switch to css_tryget() in get_mem_cgroup_from_mm() Message-ID: <20191116013443.bdFrXzwW-%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/11] mm: mempolicy: fix the wrong return value and potential pages leak of mbind
|
expand
|
--- a/mm/memcontrol.c~mm-memcg-switch-to-css_tryget-in-get_mem_cgroup_from_mm +++ a/mm/memcontrol.c @@ -960,7 +960,7 @@ struct mem_cgroup *get_mem_cgroup_from_m if (unlikely(!memcg)) memcg = root_mem_cgroup; } - } while (!css_tryget_online(&memcg->css)); + } while (!css_tryget(&memcg->css)); rcu_read_unlock(); return memcg; }