Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1305044pxb; Wed, 6 Apr 2022 14:24:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU6fCQqUIQ4UMlQbxzT5PXYPT7awkH6SufUmnEPmFXad6xt9a9YwZmwM6+kdAPCaSyCduq X-Received: by 2002:a17:90b:314d:b0:1c7:b159:28b5 with SMTP id ip13-20020a17090b314d00b001c7b15928b5mr12233951pjb.110.1649280267078; Wed, 06 Apr 2022 14:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649280267; cv=none; d=google.com; s=arc-20160816; b=PFEsTamrWNAgrzZJUI2Zcgn9iJc8vEwRbSIqt70khXXryMqI0oRqFxer0PqDg7Gbll byaUTR/bcb/CtKWmpT9mQkL6tOiohYKLBWWV+MA3F7F+GLMS5Vre0QiIopkLpn6IE3wd iayl7fBVwO3yXd2RNIHu68hkwvPDjDiuGLCGXpZsr1dGHhTLmg/MAey0yKcKJ1aOYLHO ZAcmbbUn1Tq12+Zv/TG85T1Bcgco/X3vdOIBHlIppdZI3nL/vbCaqe7SoqaeRpE5IK06 nYrR3QLbHhIy4cY52yyXxTpXWssQAAHNXSeY76VP2Dgmx+PY2+hRv1jIMOzG+5nGJCPX 62BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=iu6MPxqoRml8OFzXx+GLxZc5HYFamy88AoTVTPLpcvk=; b=H1GeJOL+3A8am9RZykOeVsGrlWNipIHyGfdhit3SxgI7xbo6wOAQzilkGMp3jzItrP KU7KIa5NGSo2+EIqaze6pJMpfWwbOgXsEVcoatY54ovELGmzOu747c53tZDjvYF37/GD s8ac9KidNugpn81dKlmFWjLF8WVjLCqrdx7orXKVWlRVzXmelY9HST/tnb6rC3mXqLp7 5PmSxB0ylUleVr8Mi0fDOrVBUYZa2j4uMsemXxOU9XE7QbT4+Hpx39QnrtUWX512Tx4z AMcI+xWwYUZzPWfX66l87C76nhIGkPaz3ldE2sk0G1Z5QKrHG7GZPiFRW9p3FDaDuAm/ wOhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=n7IZEXBX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c26-20020aa78c1a000000b004fe5da23ce0si1720245pfd.99.2022.04.06.14.24.12; Wed, 06 Apr 2022 14:24:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=n7IZEXBX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231219AbiDFU6c (ORCPT + 99 others); Wed, 6 Apr 2022 16:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234981AbiDFU5v (ORCPT ); Wed, 6 Apr 2022 16:57:51 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49DA3AA032; Wed, 6 Apr 2022 12:22:17 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id n38-20020a05600c502600b0038e4a0fc5easo2275134wmr.3; Wed, 06 Apr 2022 12:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=iu6MPxqoRml8OFzXx+GLxZc5HYFamy88AoTVTPLpcvk=; b=n7IZEXBXrl1GhzqxvFz151kKjEIwjvfdcsQX+c45CFHMlsfAHTiJMf30bbir+2PPmR 5gPyGY55s94m/rJCSSWek6ZlCWAuz/zGz9E1Jz9jaiVv4rWN7ZhQPmbFVyfxCIsyWLZ5 70rnueAds0huqpGKdVcYsxBKDL/7ANBXBdVbMW4/9GqJfQ8U6GyZu+t7br6D/ddPwlQY 9H7hYKtqM0CZM8KgJ6iv5le+ixaZO6b3ZamIrQHcDbhhW4p5g83I3J4juuV7KR9+0NH7 BLbjFtFi1Aaz7+Owh7gE4YWRzxgMnxbMle/Eh0kS2FYhdHbRfhsJbmH7FNFRCf9olAAF 6iOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=iu6MPxqoRml8OFzXx+GLxZc5HYFamy88AoTVTPLpcvk=; b=M+xCHxOj/ICWqx5dRnypbZT7mCOevoqs316XdNQt+W6KgJeqPv3OVDScupPCqcZjA/ Bv7A9nhWNsY8PCvGOC2DYLyIujOCetY118Hwyg1JIzPg0EJXERh9wshoHv7RCDAit85L V++pDH7XcvIHbAH55T0jTR5X7pAbL9MJ2YssXdCy7lhoeCtTFYQpU+uZbquFZv2dxayr HomJCC3uP/ZcnCxnReluYNgDTkx5fZhHsde7eCR3thS/2FmO3CBYVQfJdseCMc7JSJfp tRRIQ+shoiZj+Ccf83u49m5fF/zkaOvqyT1nkNqlakgWIQtq+Rh9DECqn80sGIRx0uuZ BHCQ== X-Gm-Message-State: AOAM533lHtOjlOSu/MByjD6LLLOK0KGjRmQSyTbyaYG7PFMwhBfWOuej p0j+444RwkHm8ds9XLWDfGA= X-Received: by 2002:a05:600c:3d8d:b0:38c:6f6e:e61a with SMTP id bi13-20020a05600c3d8d00b0038c6f6ee61amr8860020wmb.101.1649272935827; Wed, 06 Apr 2022 12:22:15 -0700 (PDT) Received: from [192.168.0.160] ([170.253.36.171]) by smtp.gmail.com with ESMTPSA id b8-20020a05600c4e0800b0038c6c37efc3sm5482701wmq.12.2022.04.06.12.22.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Apr 2022 12:22:15 -0700 (PDT) Message-ID: Date: Wed, 6 Apr 2022 21:22:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: vfork(2) behavior not consistent with fork(2) (was: vfork(2) fails after unshare(CLONE_NEWTIME) (was: [Bug 215769] man 2 vfork() does not document corner case when PID == 1)) Content-Language: en-US To: Christian Brauner , Florian Weimer , Michael Kerrisk Cc: linux-kernel@vger.kernel.org, =?UTF-8?B?0JrQvtGA0LXQvdCx0LXRgNCzINCc0LA=?= =?UTF-8?B?0YDQug==?= , Andrei Vagin , Dmitry Safonov , Thomas Gleixner , Arnd Bergmann , Serge Hallyn , bugzilla-daemon@kernel.org, linux-api@vger.kernel.org References: <4fb02f5f-60f9-42af-ddd5-fe5af877231f@gmail.com> <20220404080519.pi6izyuop3mmdg2g@wittgenstein> <20220406084613.3srklyt27qxcmrcx@wittgenstein> From: Alejandro Colomar In-Reply-To: <20220406084613.3srklyt27qxcmrcx@wittgenstein> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > $ sudo ./vfork_newpid > vfork_newpid: PID: 8479 > vfork_newpid: PID 8479 exiting after execve(2): Success > print_pid: PID 1 exiting. I definitely think this is a kernel (or glibc) bug. execve(2) is supposed to _never_ return 0 (and errno 0). I submitted a new bug to discuss it. Please see