From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3763FC433E0 for ; Sat, 20 Mar 2021 19:26:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E765D61946 for ; Sat, 20 Mar 2021 19:26:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229817AbhCTT0N (ORCPT ); Sat, 20 Mar 2021 15:26:13 -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.