Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp865190ybz; Wed, 22 Apr 2020 09:17:52 -0700 (PDT) X-Google-Smtp-Source: APiQypL3ZIr2E1dGttTAOSjWDJCSwdq0tCNdhQSuC2M7pku6MusbNONay3VjBWh/UvS58/07fyKU X-Received: by 2002:a17:906:5608:: with SMTP id f8mr27728197ejq.190.1587572272418; Wed, 22 Apr 2020 09:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587572272; cv=none; d=google.com; s=arc-20160816; b=guSyaLZS3zcUI9IKVFFrrgm9AU8xZilOtInkT5lkDXFXzqM6JXxHcvJbx6Ek7tp/S7 tGJhwRPlPBVZQaoBmZVXd/3R1ujKC3wkjM1CHEeLinDkK8cckEwX40JNZ0HM2S9nqyxN kKEhIHiX+B4EbLAKiuIzIgAtIIXF3HYt7NZczoMoEXfKKCsTB61H4hJcleLpBE3r3esS 7NUWNy6kbi4+5uP8SHQ5LGx9tlt3Q5ivFSXAuhKXZ1xB/dWfe6lRhb2fx4nG2iOJtvD4 bS0n5of5Yv1h/aEq+OY0hDXPmmElnGFdJ/vIE0QZwYch23zVoBYjKDLBzs6xlPEf9F4R pDUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WBdvTlWPTCl5Vs5lDqSO35p6m7GX+422pd9axMxt7lM=; b=Ssj+QzVMs3v9toB0RZA2pjYsTs2tbR2wKFF28WOT3TNoqrkP1l3Wxv7Fa1g9qsQ/ke L58L2PQU8lGd6PPD3KJt9absGxHm02mpGNThT5hEFsflGk2vSXloVmFm+e5QXgtw/7cJ OqGNtKJRclnEroMWV+qK3JZG882HuBAy2kpKXEEwxrcseRHla2FonBhrCF3GLF5Ur6x8 F9FcVNS9N+OTTKidAPaaW5iZPskLpRGFBUCCtQw4w8b1HHZzAZm1ICm4ii4TdLWt1b8H HCXvPCFSfifLBUIkMVBWPFK+d9FWDkBgBK6sB8D9jPyV3hfOVlAfBw6zonTySn+4vGP3 8YqQ== 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 g15si339733edr.14.2020.04.22.09.17.22; Wed, 22 Apr 2020 09:17:52 -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 S1726881AbgDVQOB (ORCPT + 99 others); Wed, 22 Apr 2020 12:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726667AbgDVQOA (ORCPT ); Wed, 22 Apr 2020 12:14:00 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 040F6C03C1A9; Wed, 22 Apr 2020 09:14:00 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jRI0N-008ZHc-IT; Wed, 22 Apr 2020 16:13:43 +0000 Date: Wed, 22 Apr 2020 17:13:43 +0100 From: Al Viro To: Matthew Wilcox Cc: Nate Karstens , Jeff Layton , "J. Bruce Fields" , Arnd Bergmann , Richard Henderson , Ivan Kokshaysky , Matt Turner , "James E.J. Bottomley" , Helge Deller , "David S. Miller" , Jakub Kicinski , linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Changli Gao Subject: Re: Implement close-on-fork Message-ID: <20200422161343.GM23230@ZenIV.linux.org.uk> References: <20200420071548.62112-1-nate.karstens@garmin.com> <20200422150107.GK23230@ZenIV.linux.org.uk> <20200422151815.GT5820@bombadil.infradead.org> <20200422160032.GL23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422160032.GL23230@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 05:00:32PM +0100, Al Viro wrote: > *snort* > > Alan Coopersmith in that thread: > || https://lwn.net/Articles/785430/ suggests AIX, BSD, & MacOS have also defined > || it, and though it's been proposed multiple times for Linux, never adopted there. > > Now, look at the article in question. You'll see that it should've been > "someone's posting in the end of comments thread under LWN article says that > apparently it exists on AIX, BSD, ..." > > The strength of evidence aside, that got me curious; I have checked the > source of FreeBSD, NetBSD and OpenBSD. No such thing exists in either of > their kernels, so at least that part can be considered an urban legend. > > As for the original problem... what kind of exclusion is used between > the reaction to netlink notifications (including closing every socket, > etc.) and actual IO done on those sockets? Not an idle question, BTW - unlike Solaris we do NOT (and will not) have close(2) abort IO on the same descriptor from another thread. So if one thread sits in recvmsg(2) while another does close(2), the socket will *NOT* actually shut down until recvmsg(2) returns.