Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp217334pxk; Wed, 23 Sep 2020 00:55:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZK7uuriONc3RHybiIMkjj+kmiRDJetCItXmWABoyI4ui8Ipqu3mXY82xyaFa1U0gB9Tjy X-Received: by 2002:a17:906:c34d:: with SMTP id ci13mr8913838ejb.356.1600847743017; Wed, 23 Sep 2020 00:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600847743; cv=none; d=google.com; s=arc-20160816; b=jlo9aiB+fflFVvvs8CaD/0CKiN9PB77ub+goBytkT5lGVmgtC4c6W97G7KNn1FH3Xq SAC267PoutnXxzXo1+leBk5hHasYNousfkDBt3HVFiysp0PvQj2xb9UjDv6ABGhlgfMn 8HYEb5+cavYuB1XvMlUnu2vdNus8bZT2o/e1QT4TRAMl3biKJLh33qSjwYWWBUm7SbK6 sbOeBHOaFPiKJXvECox3JymJ6tO68Zzo6sFCJqm+GeMqnd7BI72Zr2B+m9k3Y9BED+3s 41Yp7we4wrHBxLz5SaUPJcqEoUd18SEzP2hWBs1XgAtgjsf4VUKntpTiaMkHGS1U7l3z P8+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CuHUMp2i3TRP7V8scoazcWiRgaPQjjBjBbbJZmwakt8=; b=ck49AVRDTmK3vfhmuQj4nIDyVGlLNrEr8g4FVv1P4OSEyzFlghOtxrtmE2SN2ub9R/ lqSG8QZ6DIcvArY9uTiCSWXESVhYTP/D2VlQt3mBBkUqhdEQ3v2CvP6ULttXaSJSrvqR fVc7Ecy8KjKvsYvX/+ojd7aeLWhaPBAnw/xIZDEhHiyC3UCk8di9s5GNUZrUugdRbmCe CbLtgB1I2jJbMnPAJykXelULX59uWMGKBTdGfBj9ajan5jk0sLXJhY7RpK7gjH3ACl1c J3OjI+u3C4PVtq4rKudHHd3V/pUtk5QhaphTO38Cyi0wSxkQ7CBz8Rhq7+D2uyrWltu8 54xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=er+muJI7; 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=NONE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e25si12498768edv.202.2020.09.23.00.55.19; Wed, 23 Sep 2020 00:55:43 -0700 (PDT) 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=@suse.com header.s=susede1 header.b=er+muJI7; 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=NONE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726314AbgIWHxd (ORCPT + 99 others); Wed, 23 Sep 2020 03:53:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:41266 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbgIWHxc (ORCPT ); Wed, 23 Sep 2020 03:53:32 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1600847610; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CuHUMp2i3TRP7V8scoazcWiRgaPQjjBjBbbJZmwakt8=; b=er+muJI71Xard5EO7GqXt1gwtHwqYgVtxN6WAIy2EocdMMAYI7jTm8vyYdPCK8zXvHzxUm 84lqDh/YaVIQPW29KGk24fGId98opcrqh6ac1oxf+24m6mHUwGSOiA79xdf7/7OjRdnTHD c/47TeDNosuJJW0DFDqYNU5ajsqHL8c= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id BE171AE0D; Wed, 23 Sep 2020 07:54:07 +0000 (UTC) Date: Wed, 23 Sep 2020 09:53:29 +0200 From: Michal Hocko To: Christian Brauner Cc: Tejun Heo , Peter Xu , Linus Torvalds , Jason Gunthorpe , John Hubbard , Leon Romanovsky , Linux-MM , Linux Kernel Mailing List , "Maya B . Gokhale" , Yang Shi , Marty Mcfadden , Kirill Shutemov , Oleg Nesterov , Jann Horn , Jan Kara , Kirill Tkhai , Andrea Arcangeli , Christoph Hellwig , Andrew Morton Subject: Re: [PATCH 1/4] mm: Trial do_wp_page() simplification Message-ID: <20200923075329.GC4887@dhcp22.suse.cz> References: <20200918164032.GA5962@xz-x1> <20200921134200.GK12990@dhcp22.suse.cz> <20200921141830.GE5962@xz-x1> <20200921142834.GL12990@dhcp22.suse.cz> <20200921143847.GB4268@mtj.duckdns.org> <20200921144355.mrzc66lina3dkfjq@wittgenstein> <20200921145537.GM12990@dhcp22.suse.cz> <20200921150450.3mjjb3p3jwgatn4v@wittgenstein> <20200921160643.GP12990@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921160643.GP12990@dhcp22.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 21-09-20 18:06:44, Michal Hocko wrote: [...] > Thanks a lot for this clarification! So I believe the only existing bug > is in documentation which should be explicit that the cgroup fd read > access is not sufficient because it also requires to have a write access > for cgroup.procs in the same directory at the time of fork. I will send > a patch if I find some time for that. I have reread the man page and concluded that the current wording is not bugy. It is referring to cgroups(7) which has all the information but it takes quite some to drill down to the important point. On the other hand there are many details (like delegation, namespaces) which makes it quite complex to be concise in clone(2) so it is very likely better to leave as it is. -- Michal Hocko SUSE Labs