Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2344692pxf; Sat, 20 Mar 2021 12:27:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAlfVzUFzmTht5Jm16626T2EYlFRrb8t2Sr84btbQgeY7h1sEDtKrwKjuN4mBHm/LahjX0 X-Received: by 2002:a17:906:edca:: with SMTP id sb10mr10770377ejb.398.1616268457649; Sat, 20 Mar 2021 12:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616268457; cv=none; d=google.com; s=arc-20160816; b=TTyJ+OOztM1rtaPHZfjsmGddBiDg97DQZeFlkM3TSjX9P6iSuX46f7xHGyNAhvlkaY bo3/8a7YyYQVsdj01HjZIww8ISE5E2yMoTT0zslc635Vbp6wF84U+zdQag3bubR3HXcJ sRbeCPg2IRR7Z9UYXPTuzaXg2DPyiL22PHM/XbmMKt/S81CkWiiR7luj0TeW5Uy436YR rfCIQuYYmRD9k1TAQpWxv36wORACxpiZMhvPJLgIqw09i6EUAfP3v8+yGoGjV2ojAWW9 qVA0v3SsZHPgzhMVKacRteVtArxuknl7W+9Ft6fRV8NccEJLRTZZmVg4MEmskgmmkcOr by1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date :references:subject:cc:to:from; bh=Sr71lHtdE7BU9KPF9rMJQxAiwJYgS9eDMfmZ0vXdqYw=; b=vmYS73zoH29Uwa1uRkBq0Bu3qikp2pCgkmFR0Zt19WrPpU7Jdqwe8Oglrt9L69r9VU 6U89t3p/SvdzKGyaX7N0zA60tSCmxPBkVr6zvG9dzxNY4f+XQ0wl57kPA951JKt90DOM x1swHqwQt1/6hEOeQzkz3QgcS/LQac3PLm3pQe1dP2GgbAygkwa136PRbBYqTzeuLyrE 5biPKz0VArvZYdLvjEblDxOc0Z91mUHLdsk/tVGo7KQ7HcLmRbcvcoduhXOcHPNqguqU JtH65HTiCM9sjCuCcu6SzEZ9Jfrm040/F06kxU19GkQPsexiYBGh4NYJ+XSjWEBAEUid a5ig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si7077195edw.69.2021.03.20.12.27.14; Sat, 20 Mar 2021 12:27:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbhCTT0K (ORCPT + 99 others); Sat, 20 Mar 2021 15:26:10 -0400 Received: from albireo.enyo.de ([37.24.231.21]:46276 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbhCTTZh (ORCPT ); Sat, 20 Mar 2021 15:25:37 -0400 X-Greylist: delayed 304 seconds by postgrey-1.27 at vger.kernel.org; Sat, 20 Mar 2021 15:25:36 EDT Received: from [172.17.203.2] (port=58237 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1lNh9B-0007LV-FW; Sat, 20 Mar 2021 19:20:29 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1lNh9B-00035B-Aa; Sat, 20 Mar 2021 20:20:29 +0100 From: Florian Weimer To: Alexey Dobriyan Cc: Andy Lutomirski , Andrew Morton , LKML , Linux API Subject: Re: [PATCH] Document that PF_KTHREAD _is_ ABI References: Date: Sat, 20 Mar 2021 20:20:29 +0100 In-Reply-To: (Alexey Dobriyan's message of "Sat, 20 Mar 2021 20:39:09 +0300") Message-ID: <87pmztzl6q.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Alexey Dobriyan: > Some aren't -- PF_FORKNOEXEC. However it is silly for userspace to query it > because programs knows if it forked but didn't exec without external help. Libraries typically lack that knowledge, and may have reasons to detect forks. But there are probably better ways than this flag, like a MADV_WIPEONFORK mapping, or comparing counters in MAP_PRIVATE and MAP_SHARED mappings.