Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4138797yba; Wed, 17 Apr 2019 05:32:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqylwbsEv80OP1H9VKmKXQvVQh6JptBoirTTDqOJcdeO2Szv53qhgGLObP1HJtjrwNQfU/Hx X-Received: by 2002:a62:6fc6:: with SMTP id k189mr70783081pfc.154.1555504335148; Wed, 17 Apr 2019 05:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555504335; cv=none; d=google.com; s=arc-20160816; b=JgS//bzBfUn2QZOiEHbH5CefokhCEFU8j1zYvT78OziNWTCnf57EbSZH63H++Zmz07 ZlUTg90V2zdYBSjc0/2iV24rqcDxIgEr6i1fp9kFtZ5HGlCw7qVIN75/DnNkTjTdPj+O 5a+XAfGLpgxoQB5Ti1KktmL1Tkl7dWRz2n2oo+kKAnDlCDFd5k0HaJYt4AeBNExL68/a 2yd/Cap5NLlziyTWITdIJs2dS5Fjsxhke/Q4Jz8+KNcEQugk7aBVbMbPOPNs9s98TCz6 kG2I1tFik4RKFjEqHzKtBdoqDGxzVQdJFBhx+6EnZqaMBbjdXLGlzDzCQdmc87Xe8I7j Q0OQ== 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:message-id:subject:cc:to:from:date; bh=qvBfW0BqSLeQXUu5t4fui2yE3iBZsBoGwzoNWrgotU8=; b=SVwB3KswAFvmYnzTGVL0Y5L3kzz/49LbYOR+fWpPntXJq91PGSYiZhE7Fu6KXf1YVm QGwuH3CCLZfU9d0LWWrAWsEo3+hqlwhd2c4TWr4GUHAjklYCIO0ksTAlOlLzhRABaT5K dCRGogLqVLx5cNCq4bcjeonSmy1U+CNdwpb2jVkQq/Ix8mbJ6kbNeb3BB7ZfUuQ9VpEO V1uENjz31VuJX3goBKqfC+5qfOkpUEAqS635DlQULwEMBrGSKwBq2sgGOrdWy/ru0jTq oOAdvCPsl7Xdl4aHPTVPSlsFOlALPUhV22jcn7lW3OHJd1G9vKV0M2g1elbFOAVgfGx/ mcyQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22si34747137pfm.151.2019.04.17.05.31.58; Wed, 17 Apr 2019 05:32:15 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732118AbfDQMX6 (ORCPT + 99 others); Wed, 17 Apr 2019 08:23:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:48918 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731960AbfDQMX5 (ORCPT ); Wed, 17 Apr 2019 08:23:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id F3B44AD72; Wed, 17 Apr 2019 12:23:55 +0000 (UTC) Date: Wed, 17 Apr 2019 14:23:50 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Andrew Morton , Cyrill Gorcunov Cc: Sergey Senozhatsky , kbuild-all@01.org, LKML , Michal Hocko , Randy Dunlap , Andrey Vagin , Andrew Morton , Pavel Emelyanov , Michael Kerrisk , Yang Shi , kbuild test robot Subject: Re: [PATCH] prctl: Don't compile some of prctl functions when CRUI Message-ID: <20190417122349.GA15498@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180420140044.478b4c88d3cf238bd440f2a7@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. I see this discussion somewhat faded away since the previous year. There was rework [1] that reduced (ab)use of mmap_sem in prctl functions. Actually, there still remains the down_write() in prctl_set_mm. I considered at least replacing it with the mm_struct.arg_lock + down_read() but then I learnt about this thread intending to remove that part completely. I wouldn't oppose if CRIU is the sole (aware) user. Ad the bot build issue, I could build the kernel both with CONFIG_CHECKPOINT_RESTORE and without CONFIG_CHECKPOINT_RESTORE just fine after applying the two proposed patches. What is the current state? Perhaps, this change should be CCed to linux-api@vger.kernel.org(?). Thanks, Michal [1] https://lore.kernel.org/lkml/1523730291-109696-1-git-send-email-yang.shi@linux.alibaba.com/T/