Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4388484imm; Wed, 30 May 2018 04:54:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIi2T+Wz2X2KmD/f3sqpuvQVXz+vATA+1F3IrraI251I/0REBHHglqFzzAaeFl8nwg/kXbh X-Received: by 2002:a65:65c8:: with SMTP id y8-v6mr2015096pgv.320.1527681243417; Wed, 30 May 2018 04:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527681243; cv=none; d=google.com; s=arc-20160816; b=zvPSpwd20lxDnwxpC+tucqViQaVN2qbw7tABNKmWxM+YdXBJKPWTr4/DeqMzgHCWNc zKxvP5/OfP92xVljnvZz7tB77SSEJgU9bZcUIZL1HnyYKodWwa0YpRiw4Tm76vgJzzix crbrDZCot+6LUt1ugVVoMG6ZUQg+qqVDdMbZ1SboQ/Fn8PHU8y5vmwzbpXsHJux/64k9 BrvMVIAbM7j3nYfZaCpJjrTgk09YOTNJz0C9OSqKZfcLXS0HCLZX/iVCNHMZkQsGmDRt cexMXYdfs20Qm4w0ZfgPU/a7AeMONhPyKDeEB/pDEfwOfjbrDHVyMaD+67cs0Lqvt2/O dh+g== 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:arc-authentication-results; bh=LBRWD4+YbT9Y6ZfzbIZAKha7bCv476bTkpBynSV22U0=; b=ZueufrXZ24oemMpLWD1n+mrT5XsMYWf6NNXn5bL/1SWDH7249FwQVof7fNYlD/2JBn 8BqAkcqY6ogt7oyNmNKgej4iL2K9E0DCQgZSTQ2EsmwrRv/2B0rZbrHQUtzLYhPBB9GJ L/LX5wltR3wXklWRwGHGVWqOhP3FGm6grvHuFSaVXyg3NW60OWOO77rZrio3BEXQbztK +gPTWJnDRD/fwlNPlskgOM/CcrWvTl+RAvKlAjwaRfvSjE8Pw/l2SpsIWqMavL9IkZy0 0wnd2AUiLtgq1sS2H2KBijMHWlqpuYePyoZoWdk0d0RHVB34DsONkECcnwTGslNOQh21 M6Tg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si18151075plq.341.2018.05.30.04.53.48; Wed, 30 May 2018 04:54:03 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752752AbeE3Lwu (ORCPT + 99 others); Wed, 30 May 2018 07:52:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:39609 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817AbeE3Lwt (ORCPT ); Wed, 30 May 2018 07:52:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DF139AEC2; Wed, 30 May 2018 11:52:47 +0000 (UTC) Date: Wed, 30 May 2018 13:52:46 +0200 From: Michal Hocko To: "Eric W. Biederman" Cc: Andrew Morton , Johannes Weiner , Kirill Tkhai , peterz@infradead.org, viro@zeniv.linux.org.uk, mingo@kernel.org, paulmck@linux.vnet.ibm.com, keescook@chromium.org, riel@redhat.com, tglx@linutronix.de, kirill.shutemov@linux.intel.com, marcos.souza.org@gmail.com, hoeun.ryu@gmail.com, pasha.tatashin@oracle.com, gs051095@gmail.com, dhowells@redhat.com, rppt@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, Balbir Singh , Tejun Heo , Oleg Nesterov Subject: Re: [PATCH 0/2] mm->owner to mm->memcg fixes Message-ID: <20180530115246.GB20910@dhcp22.suse.cz> References: <20180504142056.GA26151@redhat.com> <87r2mrh4is.fsf@xmission.com> <20180504145435.GA26573@redhat.com> <87y3gzfmjt.fsf@xmission.com> <20180504162209.GB26573@redhat.com> <871serfk77.fsf@xmission.com> <87tvrncoyc.fsf_-_@xmission.com> <20180510121418.GD5325@dhcp22.suse.cz> <20180522125757.GL20020@dhcp22.suse.cz> <87wovu889o.fsf@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wovu889o.fsf@xmission.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 23-05-18 14:46:43, Eric W. Biederman wrote: [...] > As two processes sharing an mm is useless and highly unlikely there is > no need to handle this case well, it just needs to be handled well > enough to prevent an indefinite loop. So when css_tryget_online fails > just treat the mm as belong to the root memory cgroup. Does that mean that a malicious user can construct such a task and runaway from its limits? -- Michal Hocko SUSE Labs