Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5048510ybc; Fri, 15 Nov 2019 13:59:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyi5IW3r3GmPull0z0ixSJO1vbZO8gv9FpMDu+DFz+kjmZOqQXzBE020iud2Lk5t2eSjbdJ X-Received: by 2002:a17:906:d939:: with SMTP id rn25mr4040902ejb.147.1573855167077; Fri, 15 Nov 2019 13:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573855167; cv=none; d=google.com; s=arc-20160816; b=di98j/SKDAJFSzzv5Jfe8/UiOpDyohcYR3gQthYj6NDGPvaexaZcYFkb4CJaAcgWs/ gAo0zX7LwsSsbwLySW9mST+m7LP7AMdwRphV/wjSNorsg1XXoPNWsVGMUW2DZnH51g18 0qooseJe4nodFPCj1TG8Svs/kiP//IZ9N5enWxrqIOwYaE0rpqSPJ9xISvKRP+XnEmd7 kKHdiIY7OZ4oHpWpCHZJRs3GrtIlyovAqfqUx+YHF8+kjJKLBmwIwlGUnMQ0KN3aswnl LWVc1FqMIa39giZKinnSWlk+OmvrHAOZtSwFYdPnhpOWrDvYhaSX0yPARfsaAugtuNnw ALHw== 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; bh=zDJQqV14uzEihQXEpY7fuGIQSC23HgxbcUZqBOWf+Nw=; b=k1cGha8AcPQpBTWcRXg2KFsO8VZhrskKqf0VcDYG9U7c4O13JGaIsvOYXy39xFqS7f CSbR7XHQHNDbxS1ACuHJ8ykWv4fhYXDH1v0hUe0C1O+El7RosrgxgJWA8aKctFICKsJM ELowJe+tezh3MNcvSAOMRwcU5/UHzWNX60lGLIdWtWzfAjfEUehAVsjFA6XKfHG8vE2u DcpqDttOJX+s9TGdHglYwhmRA9PA1bwqWX0kACQwu1W27rgRkah1mhdYZWHxs5nxnmka mwSnwKEL+gsP5Hk7O+/7BcbACRC77CAR7FN6xBiNAng63MCdF0G0zR4oyN1NP25cz+1v sGCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fy5U+R1x; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si7740946edb.341.2019.11.15.13.59.02; Fri, 15 Nov 2019 13:59:27 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=Fy5U+R1x; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727031AbfKOVzA (ORCPT + 99 others); Fri, 15 Nov 2019 16:55:00 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34410 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbfKOVy7 (ORCPT ); Fri, 15 Nov 2019 16:54:59 -0500 Received: by mail-pg1-f193.google.com with SMTP id z188so6606524pgb.1 for ; Fri, 15 Nov 2019 13:54:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zDJQqV14uzEihQXEpY7fuGIQSC23HgxbcUZqBOWf+Nw=; b=Fy5U+R1xvEOuYKVgnuCEwCPMd3SfQNlaFTyjq0mFtKU1qjz0Dv0Fe6H7jYiQ3QKcyh r9Pyxw7I7nHXrMKRxP3GUNZdOuds6TQpF7dj0nIxsX3gqjbhT22+grKTugbSm8/gQkxI 9ep2HgGKOFOi7viRHE/WY7raBu8QIkwZXYnI1pKqyIaSajotLHgRWrXrxWw4Emcv43up W95na9gzOjAdCMFHIS/l2wgeUoslrB4bcUiOESFjvL65ycv0c3wq/rEFU/uWhzR/FrP3 IExTZh9OQ6Ash9au44/rvKQpX0ycOECDO2vWr8ALSO0GoMTWh/vF3fIHv6pLNHvl5mBt u7pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zDJQqV14uzEihQXEpY7fuGIQSC23HgxbcUZqBOWf+Nw=; b=sJldEA/rVLRgcCeQUeJsvloU6YrjdFuZbeMQIK5/8yKD6Y2f51CnO0ADWrfBiwykGa F1MJw8W4/0YfM+FjVdAlNV1rLGzjD/8FuBWpRjcQQTRU34GiBo/dGFi4v4AlCDIXCtPB DFKEFT7Fw93QUU5d/X9MSEa3nGAZKkKbgkwfCAgg54/p7FjGCKWLNlMQeIZNDSLlgzzi tLD3e7fqHBTuYaUQdrCTZgRGVFdGdiL0Tq94ERQaQ/1QDrxn4pxDwY4jCOaRAJdIQx5P SacdnwVhheSbVHRZIzPjxitHoPJrz5EXN2dG3pgUdjDXUqIsVKW5kKPkjQge6hW2e/yE KjYQ== X-Gm-Message-State: APjAAAUyqwhd5kOqoFmmPOna+4EKoYMqFIMuZe7vNdgUAOEwaBDZ2QaD YaZGjf09z2pvwonL3L1JazY= X-Received: by 2002:a63:712:: with SMTP id 18mr18278499pgh.384.1573854898495; Fri, 15 Nov 2019 13:54:58 -0800 (PST) Received: from gmail.com ([2620:0:1009:fd00:e14f:8808:551a:63ec]) by smtp.gmail.com with ESMTPSA id i2sm11369820pgt.34.2019.11.15.13.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Nov 2019 13:54:57 -0800 (PST) Date: Fri, 15 Nov 2019 13:54:56 -0800 From: Andrei Vagin To: Adrian Reber Cc: Christian Brauner , Eric Biederman , Pavel Emelyanov , Jann Horn , Oleg Nesterov , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , linux-kernel@vger.kernel.org, Mike Rapoport , Radostin Stoyanov Subject: Re: [PATCH v11 1/2] fork: extend clone3() to support setting a PID Message-ID: <20191115215456.GA353836@gmail.com> References: <20191115123621.142252-1-areber@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20191115123621.142252-1-areber@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 15, 2019 at 01:36:20PM +0100, Adrian Reber wrote: > > v11: > - abort alloc_pid() correctly if one of the PIDs specified in > set_pid[] is invalid (Andrei) > --- > include/linux/pid.h | 3 +- > include/linux/pid_namespace.h | 2 + > include/linux/sched/task.h | 3 ++ > include/uapi/linux/sched.h | 53 +++++++++++++++++--------- > kernel/fork.c | 24 +++++++++++- > kernel/pid.c | 72 +++++++++++++++++++++++++++-------- > kernel/pid_namespace.c | 2 - > 7 files changed, 122 insertions(+), 37 deletions(-) Acked-by: Andrei Vagin Thanks, Andrei