Received: by 10.192.165.148 with SMTP id m20csp1092226imm; Thu, 10 May 2018 05:37:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr189G++FbmaegcI4BpLO9lZEGg6VvecCrVLL4x3VY5+AT1V1n3SYSf3y8gEy93Xdojjtln X-Received: by 2002:a17:902:624:: with SMTP id 33-v6mr1227275plg.361.1525955847760; Thu, 10 May 2018 05:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525955847; cv=none; d=google.com; s=arc-20160816; b=sBBYJ6Id9Af/OYY2ODZwS7HUhqS61uOJ6FlyFgwOdNiIB6BIRH6hW+oTD3VGZ5tynz +svW0VITSx+D8IM2MvCHfKByR1WoyxgMVYshKv4C2MaRbpb575mLh81iEm+VFdqEfJy0 I8U+soLxSVFVtCH6uBKbMCKI9VhzhEowi5CTawuzt0O1YlDBr090tKoAai453mfg4YsP oCWp0cFDqYUkJVQ9ZjqTbXAtM+7zUaLkZAA+OsMU7QmLQzX8WNlh9wl5SvwKaVFiDO3M DKslye312FmY+GX2QRxfyD3MOzlVqokezUI/8kYLuLlu5Lf8oaIotYcdhFYw4Dh2Ohqg ysYw== 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:dkim-signature:arc-authentication-results; bh=nwqj6HmmwVL9Ugb3NFpG4GbUNKahTmlOKG0gIzZQ26U=; b=togE093K/kNaLS4RWKEQ5M0fjgBRNeT9tmDsBgJN9F7jBqpsGmhxg2C3O0m6NdYBrV ljiLdivAX5PdjdfZv3HjM9o3G9Azy3mq7rKTxAWdIGqZmzi3B5ZMfspqVHQmHh3dvucC sRErKj4EL68nF5T04oCAjQM8Vi0AXUUndmoFpDxdGNM9JxXTqRHk3B/q5sxVngUeNWo3 aSp+ZvKKuMWsTCQ6V2VWA/+dSPAUySDum4rSWBmNdaMxGqlYgbzp09T/lE4Wd+WgqYze dEPd19ZR5Q9TwWQkK/9kjDOr7cx1+4U2eB0p79PFIzpBAz+iZ2p8UhpsvjU7TNZck6dD B2Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vf6tYILq; 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 g31-v6si654268pld.3.2018.05.10.05.37.12; Thu, 10 May 2018 05:37:27 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vf6tYILq; 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 S1757355AbeEJMfs (ORCPT + 99 others); Thu, 10 May 2018 08:35:48 -0400 Received: from mail-yb0-f195.google.com ([209.85.213.195]:43810 "EHLO mail-yb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757217AbeEJMfq (ORCPT ); Thu, 10 May 2018 08:35:46 -0400 Received: by mail-yb0-f195.google.com with SMTP id v12-v6so585863ybl.10 for ; Thu, 10 May 2018 05:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nwqj6HmmwVL9Ugb3NFpG4GbUNKahTmlOKG0gIzZQ26U=; b=vf6tYILqeVnsL5Ll35Z2uhhpTrthjSiRAmUbOZOoDaDeJ1gRq1WcBEHeDngbj/sEqq I6MbJsmEUsKRchKqqQhbqqhDy5Va7yG8gnm9GNGpIDWqUgsNQ00w6vzMUl3qakxMrbVy W8UKeDsm2HxaswI325jpkX3moAysuUv+gPrbo1pLoLepjUrD/zwcJ3er6zQIy927E8U9 vRrIi6A02XoatAENo2dl5l3oNH3D/yM1NRcyA2wD4jBAlDtjOteWaB4+rd9n8pjAPnuf mVYGZ6o42DV2jiLPQEcxHgMYRvYqpigb5sJsgYKAVdyYXVEkF2fFJ4fKw76eJMx6MM0C LkbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=nwqj6HmmwVL9Ugb3NFpG4GbUNKahTmlOKG0gIzZQ26U=; b=Qy1w9EIt3D7ngAPS8ig+DJh/4OtljnNpZ5YvCYY4zyXQzAzA0PBcVxyYkiyz5OANZx CKgLkzQpUPj4uIMzeA8/D8LX0hCABJa7OspfROMOsijZzqFOyf1jYNR98gQtpbnjjDZ/ KsJYfvtMP/lODMEzIksxg6fBgFHsfAyibS3zaTqgfAZOaPl5CMfgITsQuUyf52tdkJhU YUuLNBcmHkP/HrXt67Msea/ZOnrp3jeq369AxYHM2G2x2gqfxOFK/ea9SHKEMGiZPfxK cCeNePNVoHr1cDA8v9xBIcoL/JLFM1vLtMiZB1qNAmr4PFzjyj31nQ1XLpjXEWyTnbTf bq8w== X-Gm-Message-State: ALKqPwd4WzHXX/TII8bNi7jjNjPV3WSAn4K1QwmX12PL3XpWtCF1TJBO VRXOtnEAgpZDMBS3uxrFp+M= X-Received: by 2002:a25:830d:: with SMTP id s13-v6mr613690ybk.95.1525955745711; Thu, 10 May 2018 05:35:45 -0700 (PDT) Received: from localhost ([2620:10d:c091:180::1:1a51]) by smtp.gmail.com with ESMTPSA id d194-v6sm214928ywe.55.2018.05.10.05.35.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 May 2018 05:35:44 -0700 (PDT) Date: Thu, 10 May 2018 05:35:41 -0700 From: Tejun Heo To: Oleg Nesterov Cc: "Eric W. Biederman" , Johannes Weiner , Michal Hocko , Kirill Tkhai , akpm@linux-foundation.org, 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 Subject: Re: [RFC][PATCH] cgroup: Don't mess with tasks in exec Message-ID: <20180510123541.GO2368884@devbig577.frc2.facebook.com> References: <20180504145435.GA26573@redhat.com> <87y3gzfmjt.fsf@xmission.com> <20180504162209.GB26573@redhat.com> <871serfk77.fsf@xmission.com> <20180507143358.GA3071@redhat.com> <87vabyvnw0.fsf@xmission.com> <20180509144016.GA25742@redhat.com> <87vabwp5p6.fsf@xmission.com> <871sekp378.fsf_-_@xmission.com> <20180510121531.GA29222@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180510121531.GA29222@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Thu, May 10, 2018 at 02:15:32PM +0200, Oleg Nesterov wrote: > > So avoid the problems by simply blocking cgroup migration over the > > entirety of exec. > > This patch, even if it was correct, will bring much more problems. > > If nothing else exec() is very slow. If it races with migration which needs > this sem for writing the new readers will be blocked. This means that clone(), > exit(), or another exec() will block too. Agreed. I don't think it's a good idea to expand threadgroup coverage larger than it already is. I'd much prefer either working around the copy_string case specifically or just ignoring it. Thanks. -- tejun