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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 7149CC4CECD for ; Mon, 27 Apr 2020 20:10:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5790B206E2 for ; Mon, 27 Apr 2020 20:10:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="qk+yNGJQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgD0UKp (ORCPT ); Mon, 27 Apr 2020 16:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726442AbgD0UKo (ORCPT ); Mon, 27 Apr 2020 16:10:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E08C0610D5; Mon, 27 Apr 2020 13:10:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=6pD6p9aux5pF6FGW8nXxgJwlIf6ft9bSmHybrTl2pyE=; b=qk+yNGJQ5uDzUXXVzPR6QHPxyL kee0kwt1BnMU3Ir5irHRMhQMZmPpygVzeD0Dkf3cCk0RD0UO2s+voqtRDjpWzQgtMNQZ2xHttQTn3 eVurZdlMYr4KGn3WwulYVRyqV/M79WSUuYJR2vCW5M8CliXz5UAUVecAzdGfE3AYPlHt7RFtw8V7q EOgAQEbbEvC2fvtOJbPllzgSoAOGB+y/P2Pr4C0tTJEkuqwUTQqutI2ZokZlVffZ9a7f+445PjLLW pd6AfECpRmYJKgy0E5Zkuk8ZBPt59lvdfUbrgjhYVRnfQZP7/3H+B4A31ZHHhbzYE0mgKTr1SuIS7 VQCAMAOg==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jTA5T-00052J-3e; Mon, 27 Apr 2020 20:10:43 +0000 Date: Mon, 27 Apr 2020 13:10:43 -0700 From: Christoph Hellwig To: Jens Axboe Cc: Jann Horn , Andreas Smas , linux-fsdevel , io-uring Subject: Re: io_uring, IORING_OP_RECVMSG and ancillary data Message-ID: <20200427201043.GA6292@infradead.org> References: <45d7558a-d0c8-4d3f-c63a-33fd2fb073a5@kernel.dk> <217dc782-161f-7aea-2d18-4e88526b8e1d@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <217dc782-161f-7aea-2d18-4e88526b8e1d@kernel.dk> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Mon, Apr 27, 2020 at 02:08:25PM -0600, Jens Axboe wrote: > Possibly... Totally untested, maybe I forgot to mention that :-) > I'll check. > > The question was more "in principle" if this was a viable approach. The > whole cmsg_type and cmsg_level is really a mess. FYI, I have a series in the works to sort out the set_fs and casting to/from __user mess around msg_control. It needs a little more work, but hopefully I can find some time the next days.