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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham 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 7521FC282C2 for ; Thu, 7 Feb 2019 15:20:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48E9B2175B for ; Thu, 7 Feb 2019 15:20:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726651AbfBGPUJ (ORCPT ); Thu, 7 Feb 2019 10:20:09 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:37684 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbfBGPUJ (ORCPT ); Thu, 7 Feb 2019 10:20:09 -0500 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.91 #2 (Red Hat Linux)) id 1grlT8-0007Ip-R7; Thu, 07 Feb 2019 15:20:02 +0000 Date: Thu, 7 Feb 2019 15:20:02 +0000 From: Al Viro To: Miklos Szeredi Cc: Jens Axboe , Jann Horn , linux-aio , linux-block@vger.kernel.org, Linux API , Christoph Hellwig , Jeff Moyer , Avi Kivity , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 13/18] io_uring: add file set registration Message-ID: <20190207152002.GC2217@ZenIV.linux.org.uk> References: <20190204025612.GR2217@ZenIV.linux.org.uk> <785c6db4-095e-65b0-ded5-72b41af5174e@kernel.dk> <2b2137ed-8107-f7b6-f0ca-202dcfb87c97@kernel.dk> <40b27e78-9ee8-1395-feb3-a73aac87c9a7@kernel.dk> <20190206005638.GU2217@ZenIV.linux.org.uk> <8f124de2-d6da-d656-25e4-b4d9e58f880e@kernel.dk> <20190207040058.GW2217@ZenIV.linux.org.uk> <20190207092253.GD19821@veci.piliscsaba.redhat.com> <20190207133135.GZ2217@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, Feb 07, 2019 at 03:20:06PM +0100, Miklos Szeredi wrote: > > Am I right assuming that this queue-modifying operation is accept(), removing > > an embryo unix_sock from the queue of listener and thus hiding SCM_RIGHTS in > > _its_ queue from scan_children()? > > Hmm... How about just receiving an SCM_RIGHTS socket (which was a > candidate) from the queue of the peeked socket? Right, skb unlinked before unix_detach_fds(). I was actually thinking of a stream case, where unlink is done after that... *grumble* The entire thing is far too brittle for my taste ;-/